Add ctrl and utility functions to retrieve raw cipher list sent by client in

client hello message. Previously this could only be retrieved on an initial
connection and it was impossible to determine the cipher IDs of any uknown
ciphersuites.
(backport from HEAD)
This commit is contained in:
Dr. Stephen Henson
2012-12-26 16:25:06 +00:00
parent 2001129f09
commit 1520e6c084
8 changed files with 55 additions and 10 deletions

View File

@@ -409,6 +409,8 @@ CERT *ssl_cert_dup(CERT *cert)
ret->chain_store = cert->chain_store;
}
ret->ciphers_raw = NULL;
return(ret);
#if !defined(OPENSSL_NO_DH) || !defined(OPENSSL_NO_ECDH)
@@ -511,6 +513,8 @@ void ssl_cert_free(CERT *c)
X509_STORE_free(c->verify_store);
if (c->chain_store)
X509_STORE_free(c->chain_store);
if (c->ciphers_raw)
OPENSSL_free(c->ciphers_raw);
OPENSSL_free(c);
}