diff options
author | 2018-08-24 20:30:21 +0000 | |
---|---|---|
committer | 2018-08-24 20:30:21 +0000 | |
commit | 1e7a28f35c78b2a96f391bbdce6e59bf4b46d07c (patch) | |
tree | 1d19e766eb2c15de21fdc58cc59d98c5aeb85565 /lib/libssl/ssl.h | |
parent | Add const to EVP_PKCS82PKEY(). (diff) | |
download | wireguard-openbsd-1e7a28f35c78b2a96f391bbdce6e59bf4b46d07c.tar.xz wireguard-openbsd-1e7a28f35c78b2a96f391bbdce6e59bf4b46d07c.zip |
Let SSL_copy_session_id() return an int for error checking.
Accordingly, add some error checking to SSL_copy_session_id(),
BIO_ssl_copy_session_id(), and SSL_dup().
Prompted by OpenSSL commit 17dd65e6e1f
Tested in a bulk build by sthen
ok jsing
Diffstat (limited to 'lib/libssl/ssl.h')
-rw-r--r-- | lib/libssl/ssl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/ssl.h b/lib/libssl/ssl.h index c3b553fa2f6..324691485bc 100644 --- a/lib/libssl/ssl.h +++ b/lib/libssl/ssl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.h,v 1.158 2018/05/01 13:30:24 tb Exp $ */ +/* $OpenBSD: ssl.h,v 1.159 2018/08/24 20:30:21 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1311,7 +1311,7 @@ long SSL_SESSION_get_time(const SSL_SESSION *s); long SSL_SESSION_set_time(SSL_SESSION *s, long t); long SSL_SESSION_get_timeout(const SSL_SESSION *s); long SSL_SESSION_set_timeout(SSL_SESSION *s, long t); -void SSL_copy_session_id(SSL *to, const SSL *from); +int SSL_copy_session_id(SSL *to, const SSL *from); X509 *SSL_SESSION_get0_peer(SSL_SESSION *s); int SSL_SESSION_set1_id(SSL_SESSION *s, const unsigned char *sid, unsigned int sid_len); |