boost2020
boost2020
the handshake State judgment is not completely accurate on boringssl with the branch main-with-bazel
如果用20时 ,debug的信息是如下: ``` if (ssl3_hs_state.state < 20) { // not finished yet. return 0; } cat /sys/kernel/debug/tracing/trace_pipe -37497 [001] .... 25640037.438187: 0: client_version:0, state:0, tls13_state:0 -37497 [001] .... 25640037.438193: 0:...
the handshake State judgment is not completely accurate on boringssl with the branch main-with-bazel
但是确实有点奇怪,从客户端看确实状态到了20 ``` * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none } [5 bytes data] * TLSv1.3 (OUT), TLS handshake,...
the handshake State judgment is not completely accurate on boringssl with the branch main-with-bazel
That's right, I changed the max to 18 to output the key. I'll debug it again
the handshake State judgment is not completely accurate on boringssl with the branch main-with-bazel
gdb了nginx看了一下,boringssl中ssl_in_init这个貌似只到了18就结束,也就是后面的19,20都没有到ssl_in_init   所以这应该是bosringssl_masterkey.h中我把它改小到18才能输出key的原因。
the handshake State judgment is not completely accurate on boringssl with the branch main-with-bazel
再次确认ssl_in_init在state 19后不再调用,确切的证据:     在state 18时调用了3次ssl_in_init,所以在我这种情景下,只能用18,否则无法取到key if (ssl3_hs_state.state < 18) { // not finished yet. return 0; }