summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2014-05-25 13:27:38 +0000
committerjsing <>2014-05-25 13:27:38 +0000
commitfc3ae41e6c3f587c173aca34af47208c06c01668 (patch)
tree1981463f492523e729cbfd564646012bb0a6574c /src/lib/libssl/ssl_locl.h
parent272e873b19ba05dbb966cb20a3fa0ca5533b84e2 (diff)
downloadopenbsd-fc3ae41e6c3f587c173aca34af47208c06c01668.tar.gz
openbsd-fc3ae41e6c3f587c173aca34af47208c06c01668.tar.bz2
openbsd-fc3ae41e6c3f587c173aca34af47208c06c01668.zip
The ssl_ciper_get_evp() function is currently overloaded to also return the
compression associated with the SSL session. Based on one of Adam Langley's chromium diffs, factor out the compression handling code into a separate ssl_cipher_get_comp() function. Rewrite the compression handling code to avoid pointless duplication and so that failures are actually returned to and detectable by the caller. ok miod@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 3a4656ef62..06f37b69e6 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -599,9 +599,9 @@ STACK_OF(SSL_CIPHER) *ssl_create_cipher_list(const SSL_METHOD *meth,
599 STACK_OF(SSL_CIPHER) **pref, STACK_OF(SSL_CIPHER) **sorted, 599 STACK_OF(SSL_CIPHER) **pref, STACK_OF(SSL_CIPHER) **sorted,
600 const char *rule_str); 600 const char *rule_str);
601void ssl_update_cache(SSL *s, int mode); 601void ssl_update_cache(SSL *s, int mode);
602int ssl_cipher_get_comp(const SSL_SESSION *s, SSL_COMP **comp);
602int ssl_cipher_get_evp(const SSL_SESSION *s, const EVP_CIPHER **enc, 603int ssl_cipher_get_evp(const SSL_SESSION *s, const EVP_CIPHER **enc,
603 const EVP_MD **md, int *mac_pkey_type, int *mac_secret_size, 604 const EVP_MD **md, int *mac_pkey_type, int *mac_secret_size);
604 SSL_COMP **comp);
605int ssl_get_handshake_digest(int i, long *mask, const EVP_MD **md); 605int ssl_get_handshake_digest(int i, long *mask, const EVP_MD **md);
606 606
607int ssl_verify_cert_chain(SSL *s, STACK_OF(X509) *sk); 607int ssl_verify_cert_chain(SSL *s, STACK_OF(X509) *sk);