a07c0fc8f2
SSL_get_current_cipher is documented by upstream to return the cipher actually being used. However, because it reads s->session, it returns information pertaining to the session to be offered if queried before ServerHello or early in an abbreviated handshake. Logic around s->session needs more comprehensive cleanup but for just this function, defining it to be the current outgoing cipher is close to the current semantics but for fixing the initial state (s->session->cipher is populated when sending CCS). Store it in the SSL_AEAD_CTX which seems a natural place to associate state pertaining to a connection half. BUG=484744 Change-Id: Ife8db27a16615d0dbb2aec65359537243e08af7c Reviewed-on: https://boringssl-review.googlesource.com/4733 Reviewed-by: Adam Langley <agl@google.com> |
||
---|---|---|
.. | ||
pqueue | ||
test | ||
CMakeLists.txt | ||
d1_both.c | ||
d1_clnt.c | ||
d1_lib.c | ||
d1_meth.c | ||
d1_pkt.c | ||
d1_srtp.c | ||
d1_srvr.c | ||
internal.h | ||
s3_both.c | ||
s3_clnt.c | ||
s3_enc.c | ||
s3_lib.c | ||
s3_meth.c | ||
s3_pkt.c | ||
s3_srvr.c | ||
ssl_algs.c | ||
ssl_asn1.c | ||
ssl_cert.c | ||
ssl_cipher.c | ||
ssl_lib.c | ||
ssl_rsa.c | ||
ssl_sess.c | ||
ssl_stat.c | ||
ssl_test.cc | ||
ssl_txt.c | ||
t1_enc.c | ||
t1_lib.c | ||
t1_reneg.c |