summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_err.c
diff options
context:
space:
mode:
authorjsing <>2014-05-25 13:27:38 +0000
committerjsing <>2014-05-25 13:27:38 +0000
commita26ab58294e030cd16e09f09139a602c114d495e (patch)
tree1981463f492523e729cbfd564646012bb0a6574c /src/lib/libssl/ssl_err.c
parent4742830abc4156a69bf5e7e604c4087367c1ffb1 (diff)
downloadopenbsd-a26ab58294e030cd16e09f09139a602c114d495e.tar.gz
openbsd-a26ab58294e030cd16e09f09139a602c114d495e.tar.bz2
openbsd-a26ab58294e030cd16e09f09139a602c114d495e.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_err.c')
-rw-r--r--src/lib/libssl/ssl_err.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/libssl/ssl_err.c b/src/lib/libssl/ssl_err.c
index 67ba3c7699..7bea7fafa1 100644
--- a/src/lib/libssl/ssl_err.c
+++ b/src/lib/libssl/ssl_err.c
@@ -344,6 +344,7 @@ static ERR_STRING_DATA SSL_str_reasons[]= {
344 {ERR_REASON(SSL_R_CERT_LENGTH_MISMATCH) , "cert length mismatch"}, 344 {ERR_REASON(SSL_R_CERT_LENGTH_MISMATCH) , "cert length mismatch"},
345 {ERR_REASON(SSL_R_CHALLENGE_IS_DIFFERENT), "challenge is different"}, 345 {ERR_REASON(SSL_R_CHALLENGE_IS_DIFFERENT), "challenge is different"},
346 {ERR_REASON(SSL_R_CIPHER_CODE_WRONG_LENGTH), "cipher code wrong length"}, 346 {ERR_REASON(SSL_R_CIPHER_CODE_WRONG_LENGTH), "cipher code wrong length"},
347 {ERR_REASON(SSL_R_CIPHER_COMPRESSION_UNAVAILABLE), "cipher compression unavailable"},
347 {ERR_REASON(SSL_R_CIPHER_OR_HASH_UNAVAILABLE), "cipher or hash unavailable"}, 348 {ERR_REASON(SSL_R_CIPHER_OR_HASH_UNAVAILABLE), "cipher or hash unavailable"},
348 {ERR_REASON(SSL_R_CIPHER_TABLE_SRC_ERROR), "cipher table src error"}, 349 {ERR_REASON(SSL_R_CIPHER_TABLE_SRC_ERROR), "cipher table src error"},
349 {ERR_REASON(SSL_R_CLIENTHELLO_TLSEXT) , "clienthello tlsext"}, 350 {ERR_REASON(SSL_R_CLIENTHELLO_TLSEXT) , "clienthello tlsext"},