diff options
author | beck <> | 2017-05-07 04:22:24 +0000 |
---|---|---|
committer | beck <> | 2017-05-07 04:22:24 +0000 |
commit | 3b455600d14ddcf2be0dcd2d4765d1b7854cd1c5 (patch) | |
tree | 9f980ffff8490ca0af628971a6d8ceb4a23d3b99 /src/lib/libssl/ssl_err.c | |
parent | 2145114fc4f04a6a75134ef92bc551a976292150 (diff) | |
download | openbsd-3b455600d14ddcf2be0dcd2d4765d1b7854cd1c5.tar.gz openbsd-3b455600d14ddcf2be0dcd2d4765d1b7854cd1c5.tar.bz2 openbsd-3b455600d14ddcf2be0dcd2d4765d1b7854cd1c5.zip |
Move state from ssl->internal to the handshake structure.
while we are at it, convert SSLerror to use a function
internally, so that we may later allocate the handshake
structure and check for it
ok jsing@
Diffstat (limited to 'src/lib/libssl/ssl_err.c')
-rw-r--r-- | src/lib/libssl/ssl_err.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_err.c b/src/lib/libssl/ssl_err.c index f9e450125b..d61660c934 100644 --- a/src/lib/libssl/ssl_err.c +++ b/src/lib/libssl/ssl_err.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_err.c,v 1.33 2017/02/07 02:08:38 beck Exp $ */ | 1 | /* $OpenBSD: ssl_err.c,v 1.34 2017/05/07 04:22:24 beck Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -63,6 +63,8 @@ | |||
63 | #include <openssl/err.h> | 63 | #include <openssl/err.h> |
64 | #include <openssl/ssl.h> | 64 | #include <openssl/ssl.h> |
65 | 65 | ||
66 | #include "ssl_locl.h" | ||
67 | |||
66 | /* BEGIN ERROR CODES */ | 68 | /* BEGIN ERROR CODES */ |
67 | #ifndef OPENSSL_NO_ERR | 69 | #ifndef OPENSSL_NO_ERR |
68 | 70 | ||
@@ -667,3 +669,10 @@ SSL_state_func_code(int state) { | |||
667 | } | 669 | } |
668 | return 0xfff; | 670 | return 0xfff; |
669 | } | 671 | } |
672 | |||
673 | void | ||
674 | SSL_error_internal(const SSL *s, int r, char *f, int l) | ||
675 | { | ||
676 | ERR_PUT_error(ERR_LIB_SSL, | ||
677 | (SSL_state_func_code(S3I(s)->hs.state)), r, f, l); | ||
678 | } | ||