summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bio_err.c
diff options
context:
space:
mode:
authortb <>2022-01-14 08:40:57 +0000
committertb <>2022-01-14 08:40:57 +0000
commit7de4d3a68913b50be213d1f95ad168ee17570641 (patch)
treef4107fef050d8e49767a68206c4485731507efa2 /src/lib/libcrypto/bio/bio_err.c
parent11d03b6dcd305ef8269fb1b034e0f623f6d08d93 (diff)
downloadopenbsd-7de4d3a68913b50be213d1f95ad168ee17570641.tar.gz
openbsd-7de4d3a68913b50be213d1f95ad168ee17570641.tar.bz2
openbsd-7de4d3a68913b50be213d1f95ad168ee17570641.zip
Implement new-style OpenSSL BIO callbacks
This provides support for new-style BIO callbacks in BIO_{read,write,gets,puts}() and a helper function to work out whether it should call the new or the old style callback. It also adds a few typedefs and minor code cleanup as well as the BIO_{get,set}_callback_ex() from jsing, ok tb
Diffstat (limited to 'src/lib/libcrypto/bio/bio_err.c')
-rw-r--r--src/lib/libcrypto/bio/bio_err.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bio/bio_err.c b/src/lib/libcrypto/bio/bio_err.c
index 2920e32103..cda693d036 100644
--- a/src/lib/libcrypto/bio/bio_err.c
+++ b/src/lib/libcrypto/bio/bio_err.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio_err.c,v 1.17 2017/01/29 17:49:22 beck Exp $ */ 1/* $OpenBSD: bio_err.c,v 1.18 2022/01/14 08:40:57 tb 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 *
@@ -92,6 +92,7 @@ static ERR_STRING_DATA BIO_str_reasons[] = {
92 {ERR_REASON(BIO_R_INVALID_PORT_NUMBER) , "invalid port number"}, 92 {ERR_REASON(BIO_R_INVALID_PORT_NUMBER) , "invalid port number"},
93 {ERR_REASON(BIO_R_IN_USE) , "in use"}, 93 {ERR_REASON(BIO_R_IN_USE) , "in use"},
94 {ERR_REASON(BIO_R_KEEPALIVE) , "keepalive"}, 94 {ERR_REASON(BIO_R_KEEPALIVE) , "keepalive"},
95 {ERR_REASON(BIO_R_LENGTH_TOO_LONG) , "too long"},
95 {ERR_REASON(BIO_R_NBIO_CONNECT_ERROR) , "nbio connect error"}, 96 {ERR_REASON(BIO_R_NBIO_CONNECT_ERROR) , "nbio connect error"},
96 {ERR_REASON(BIO_R_NO_ACCEPT_PORT_SPECIFIED), "no accept port specified"}, 97 {ERR_REASON(BIO_R_NO_ACCEPT_PORT_SPECIFIED), "no accept port specified"},
97 {ERR_REASON(BIO_R_NO_HOSTNAME_SPECIFIED) , "no hostname specified"}, 98 {ERR_REASON(BIO_R_NO_HOSTNAME_SPECIFIED) , "no hostname specified"},