summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2022-08-21 17:54:38 +0000
committerjsing <>2022-08-21 17:54:38 +0000
commitd58559eafcd772ecb4569040cf44ba5dbc793c65 (patch)
tree475ad99c4b6f52147955dcdb4f93fc3de9e4c8e7 /src
parent3cd11a51725bbc4b9a97499ca4e730ca06566b43 (diff)
downloadopenbsd-d58559eafcd772ecb4569040cf44ba5dbc793c65.tar.gz
openbsd-d58559eafcd772ecb4569040cf44ba5dbc793c65.tar.bz2
openbsd-d58559eafcd772ecb4569040cf44ba5dbc793c65.zip
Prepare to provide SSL_ERROR_WANT_{ASYNC,ASYNC_JOB,CLIENT_HELLO_CB}
LibreSSL will not return these values, however software is starting to check for these as return values from SSL_get_error(). ok tb@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/ssl.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h
index e649a6972e..7ce873de3f 100644
--- a/src/lib/libssl/ssl.h
+++ b/src/lib/libssl/ssl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl.h,v 1.223 2022/08/17 18:43:17 tb Exp $ */ 1/* $OpenBSD: ssl.h,v 1.224 2022/08/21 17:54:38 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 *
@@ -823,15 +823,20 @@ int PEM_write_SSL_SESSION(FILE *fp, SSL_SESSION *x);
823/* Offset to get an SSL_R_... value from an SSL_AD_... value. */ 823/* Offset to get an SSL_R_... value from an SSL_AD_... value. */
824#define SSL_AD_REASON_OFFSET 1000 824#define SSL_AD_REASON_OFFSET 1000
825 825
826#define SSL_ERROR_NONE 0 826#define SSL_ERROR_NONE 0
827#define SSL_ERROR_SSL 1 827#define SSL_ERROR_SSL 1
828#define SSL_ERROR_WANT_READ 2 828#define SSL_ERROR_WANT_READ 2
829#define SSL_ERROR_WANT_WRITE 3 829#define SSL_ERROR_WANT_WRITE 3
830#define SSL_ERROR_WANT_X509_LOOKUP 4 830#define SSL_ERROR_WANT_X509_LOOKUP 4
831#define SSL_ERROR_SYSCALL 5 /* look at error stack/return value/errno */ 831#define SSL_ERROR_SYSCALL 5
832#define SSL_ERROR_ZERO_RETURN 6 832#define SSL_ERROR_ZERO_RETURN 6
833#define SSL_ERROR_WANT_CONNECT 7 833#define SSL_ERROR_WANT_CONNECT 7
834#define SSL_ERROR_WANT_ACCEPT 8 834#define SSL_ERROR_WANT_ACCEPT 8
835#if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
836#define SSL_ERROR_WANT_ASYNC 9
837#define SSL_ERROR_WANT_ASYNC_JOB 10
838#define SSL_ERROR_WANT_CLIENT_HELLO_CB 11
839#endif
835 840
836#define SSL_CTRL_NEED_TMP_RSA 1 841#define SSL_CTRL_NEED_TMP_RSA 1
837#define SSL_CTRL_SET_TMP_RSA 2 842#define SSL_CTRL_SET_TMP_RSA 2