diff options
author | beck <> | 2017-01-26 10:40:21 +0000 |
---|---|---|
committer | beck <> | 2017-01-26 10:40:21 +0000 |
commit | 59161dbdf4da5b82b27402f93d7007a11b2d1cc1 (patch) | |
tree | e105a2b33d3aefb54727a955e9c746cc8edb0e50 /src/lib/libssl/d1_clnt.c | |
parent | a2e1efdba084d65702b419bc510c30a144eb5d7f (diff) | |
download | openbsd-59161dbdf4da5b82b27402f93d7007a11b2d1cc1.tar.gz openbsd-59161dbdf4da5b82b27402f93d7007a11b2d1cc1.tar.bz2 openbsd-59161dbdf4da5b82b27402f93d7007a11b2d1cc1.zip |
Send the error function codes to rot in the depths of hell where they belong
We leave a single funciton code (0xFFF) to say "SSL_internal" so the public
API will not break, and we replace all internal use of the two argument
SSL_err() with the internal only SSL_error() that only takes a reason code.
ok jsing@
Diffstat (limited to 'src/lib/libssl/d1_clnt.c')
-rw-r--r-- | src/lib/libssl/d1_clnt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libssl/d1_clnt.c b/src/lib/libssl/d1_clnt.c index c0f90dce6f..fd981c5f8e 100644 --- a/src/lib/libssl/d1_clnt.c +++ b/src/lib/libssl/d1_clnt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: d1_clnt.c,v 1.71 2017/01/26 06:32:58 jsing Exp $ */ | 1 | /* $OpenBSD: d1_clnt.c,v 1.72 2017/01/26 10:40:21 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
@@ -216,7 +216,7 @@ dtls1_connect(SSL *s) | |||
216 | cb(s, SSL_CB_HANDSHAKE_START, 1); | 216 | cb(s, SSL_CB_HANDSHAKE_START, 1); |
217 | 217 | ||
218 | if ((s->version & 0xff00 ) != (DTLS1_VERSION & 0xff00)) { | 218 | if ((s->version & 0xff00 ) != (DTLS1_VERSION & 0xff00)) { |
219 | SSLerr(SSL_F_DTLS1_CONNECT, | 219 | SSLerror( |
220 | ERR_R_INTERNAL_ERROR); | 220 | ERR_R_INTERNAL_ERROR); |
221 | ret = -1; | 221 | ret = -1; |
222 | goto end; | 222 | goto end; |
@@ -571,7 +571,7 @@ dtls1_connect(SSL *s) | |||
571 | /* break; */ | 571 | /* break; */ |
572 | 572 | ||
573 | default: | 573 | default: |
574 | SSLerr(SSL_F_DTLS1_CONNECT, SSL_R_UNKNOWN_STATE); | 574 | SSLerror(SSL_R_UNKNOWN_STATE); |
575 | ret = -1; | 575 | ret = -1; |
576 | goto end; | 576 | goto end; |
577 | /* break; */ | 577 | /* break; */ |
@@ -632,7 +632,7 @@ dtls1_get_hello_verify(SSL *s) | |||
632 | goto truncated; | 632 | goto truncated; |
633 | 633 | ||
634 | if (ssl_version != s->version) { | 634 | if (ssl_version != s->version) { |
635 | SSLerr(SSL_F_DTLS1_GET_HELLO_VERIFY, SSL_R_WRONG_SSL_VERSION); | 635 | SSLerror(SSL_R_WRONG_SSL_VERSION); |
636 | s->version = (s->version & 0xff00) | (ssl_version & 0xff); | 636 | s->version = (s->version & 0xff00) | (ssl_version & 0xff); |
637 | al = SSL_AD_PROTOCOL_VERSION; | 637 | al = SSL_AD_PROTOCOL_VERSION; |
638 | goto f_err; | 638 | goto f_err; |