summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <>2018-08-30 16:56:16 +0000
committerjsing <>2018-08-30 16:56:16 +0000
commitaa46916ffff53f4d8fa6bd701c96da70c82b1547 (patch)
tree031b7e3310063f352295a693ac1da2c62ad5d8f1 /src/lib/libssl/ssl_lib.c
parent6f960c595dec72229260d0e58fb8c9de5a26062e (diff)
downloadopenbsd-aa46916ffff53f4d8fa6bd701c96da70c82b1547.tar.gz
openbsd-aa46916ffff53f4d8fa6bd701c96da70c82b1547.tar.bz2
openbsd-aa46916ffff53f4d8fa6bd701c96da70c82b1547.zip
Nuke ssl_pending/ssl_shutdown function pointers.
ssl3_pending() is used for all protocols and dtls1_shutdown() just calls ssl3_shutdown(), so just call the appropriate function directly instead. ok beck@ inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r--src/lib/libssl/ssl_lib.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 0dbc7b3707..938139e18e 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.186 2018/08/24 20:30:21 tb Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.187 2018/08/30 16:56:16 jsing 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 *
@@ -809,7 +809,7 @@ SSL_pending(const SSL *s)
809 * (Note that SSL_pending() is often used as a boolean value, 809 * (Note that SSL_pending() is often used as a boolean value,
810 * so we'd better not return -1.) 810 * so we'd better not return -1.)
811 */ 811 */
812 return (s->method->internal->ssl_pending(s)); 812 return (ssl3_pending(s));
813} 813}
814 814
815X509 * 815X509 *
@@ -1015,10 +1015,10 @@ SSL_shutdown(SSL *s)
1015 return (-1); 1015 return (-1);
1016 } 1016 }
1017 1017
1018 if ((s != NULL) && !SSL_in_init(s)) 1018 if (s != NULL && !SSL_in_init(s))
1019 return (s->method->internal->ssl_shutdown(s)); 1019 return (ssl3_shutdown(s));
1020 else 1020
1021 return (1); 1021 return (1);
1022} 1022}
1023 1023
1024int 1024int