summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
authorbeck <>2017-05-07 04:22:24 +0000
committerbeck <>2017-05-07 04:22:24 +0000
commit3b455600d14ddcf2be0dcd2d4765d1b7854cd1c5 (patch)
tree9f980ffff8490ca0af628971a6d8ceb4a23d3b99 /src/lib/libssl/s3_lib.c
parent2145114fc4f04a6a75134ef92bc551a976292150 (diff)
downloadopenbsd-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/s3_lib.c')
-rw-r--r--src/lib/libssl/s3_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c
index f728eb7648..697ac6c7c5 100644
--- a/src/lib/libssl/s3_lib.c
+++ b/src/lib/libssl/s3_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_lib.c,v 1.142 2017/05/06 22:24:57 beck Exp $ */ 1/* $OpenBSD: s3_lib.c,v 1.143 2017/05/07 04:22:24 beck Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -2540,7 +2540,7 @@ ssl3_shutdown(SSL *s)
2540 * Don't do anything much if we have not done the handshake or 2540 * Don't do anything much if we have not done the handshake or
2541 * we don't want to send messages :-) 2541 * we don't want to send messages :-)
2542 */ 2542 */
2543 if ((s->internal->quiet_shutdown) || (s->internal->state == SSL_ST_BEFORE)) { 2543 if ((s->internal->quiet_shutdown) || (S3I(s)->hs.state == SSL_ST_BEFORE)) {
2544 s->internal->shutdown = (SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN); 2544 s->internal->shutdown = (SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN);
2545 return (1); 2545 return (1);
2546 } 2546 }
@@ -2704,7 +2704,7 @@ ssl3_renegotiate_check(SSL *s)
2704 * to SSL_ST_ACCEPT. 2704 * to SSL_ST_ACCEPT.
2705 */ 2705 */
2706 /* SSL_ST_ACCEPT */ 2706 /* SSL_ST_ACCEPT */
2707 s->internal->state = SSL_ST_RENEGOTIATE; 2707 S3I(s)->hs.state = SSL_ST_RENEGOTIATE;
2708 S3I(s)->renegotiate = 0; 2708 S3I(s)->renegotiate = 0;
2709 S3I(s)->num_renegotiations++; 2709 S3I(s)->num_renegotiations++;
2710 S3I(s)->total_renegotiations++; 2710 S3I(s)->total_renegotiations++;