diff options
author | tb <> | 2018-08-24 20:30:21 +0000 |
---|---|---|
committer | tb <> | 2018-08-24 20:30:21 +0000 |
commit | 24d8534c6d28231884edd9cd4f92d3c159d7529d (patch) | |
tree | 178f87a146a07d41a49712b685a292a7bd8a6362 /src/lib/libssl/ssl.h | |
parent | 2e9cc12db341d66727099e500ca968482802fde1 (diff) | |
download | openbsd-24d8534c6d28231884edd9cd4f92d3c159d7529d.tar.gz openbsd-24d8534c6d28231884edd9cd4f92d3c159d7529d.tar.bz2 openbsd-24d8534c6d28231884edd9cd4f92d3c159d7529d.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 'src/lib/libssl/ssl.h')
-rw-r--r-- | src/lib/libssl/ssl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index c3b553fa2f..324691485b 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl.h,v 1.158 2018/05/01 13:30:24 tb Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.159 2018/08/24 20:30:21 tb 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 | * |
@@ -1311,7 +1311,7 @@ long SSL_SESSION_get_time(const SSL_SESSION *s); | |||
1311 | long SSL_SESSION_set_time(SSL_SESSION *s, long t); | 1311 | long SSL_SESSION_set_time(SSL_SESSION *s, long t); |
1312 | long SSL_SESSION_get_timeout(const SSL_SESSION *s); | 1312 | long SSL_SESSION_get_timeout(const SSL_SESSION *s); |
1313 | long SSL_SESSION_set_timeout(SSL_SESSION *s, long t); | 1313 | long SSL_SESSION_set_timeout(SSL_SESSION *s, long t); |
1314 | void SSL_copy_session_id(SSL *to, const SSL *from); | 1314 | int SSL_copy_session_id(SSL *to, const SSL *from); |
1315 | X509 *SSL_SESSION_get0_peer(SSL_SESSION *s); | 1315 | X509 *SSL_SESSION_get0_peer(SSL_SESSION *s); |
1316 | int SSL_SESSION_set1_id(SSL_SESSION *s, const unsigned char *sid, | 1316 | int SSL_SESSION_set1_id(SSL_SESSION *s, const unsigned char *sid, |
1317 | unsigned int sid_len); | 1317 | unsigned int sid_len); |