diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libssl/ssl.h | 9 | ||||
| -rw-r--r-- | src/lib/libssl/ssl_lib.c | 20 |
2 files changed, 27 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index b2a576bf55..4117d90e89 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl.h,v 1.198 2021/09/08 12:56:14 tb Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.199 2021/09/08 17:24:23 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 | * |
| @@ -853,6 +853,13 @@ size_t SSL_get_peer_finished(const SSL *s, void *buf, size_t count); | |||
| 853 | #define SSL_VERIFY_PEER 0x01 | 853 | #define SSL_VERIFY_PEER 0x01 |
| 854 | #define SSL_VERIFY_FAIL_IF_NO_PEER_CERT 0x02 | 854 | #define SSL_VERIFY_FAIL_IF_NO_PEER_CERT 0x02 |
| 855 | #define SSL_VERIFY_CLIENT_ONCE 0x04 | 855 | #define SSL_VERIFY_CLIENT_ONCE 0x04 |
| 856 | #if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL) | ||
| 857 | #define SSL_VERIFY_POST_HANDSHAKE 0x08 | ||
| 858 | |||
| 859 | int SSL_verify_client_post_handshake(SSL *s); | ||
| 860 | void SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val); | ||
| 861 | void SSL_set_post_handshake_auth(SSL *s, int val); | ||
| 862 | #endif | ||
| 856 | 863 | ||
| 857 | #define OpenSSL_add_ssl_algorithms() SSL_library_init() | 864 | #define OpenSSL_add_ssl_algorithms() SSL_library_init() |
| 858 | #define SSLeay_add_ssl_algorithms() SSL_library_init() | 865 | #define SSLeay_add_ssl_algorithms() SSL_library_init() |
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index ef2a92ffe3..d53bb66b57 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.265 2021/09/08 12:32:07 tb Exp $ */ | 1 | /* $OpenBSD: ssl_lib.c,v 1.266 2021/09/08 17:24:23 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 | * |
| @@ -2967,6 +2967,24 @@ SSL_get_verify_result(const SSL *ssl) | |||
| 2967 | } | 2967 | } |
| 2968 | 2968 | ||
| 2969 | int | 2969 | int |
| 2970 | SSL_verify_client_post_handshake(SSL *ssl) | ||
| 2971 | { | ||
| 2972 | return 0; | ||
| 2973 | } | ||
| 2974 | |||
| 2975 | void | ||
| 2976 | SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val) | ||
| 2977 | { | ||
| 2978 | return; | ||
| 2979 | } | ||
| 2980 | |||
| 2981 | void | ||
| 2982 | SSL_set_post_handshake_auth(SSL *ssl, int val) | ||
| 2983 | { | ||
| 2984 | return; | ||
| 2985 | } | ||
| 2986 | |||
| 2987 | int | ||
| 2970 | SSL_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | 2988 | SSL_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, |
| 2971 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func) | 2989 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func) |
| 2972 | { | 2990 | { |
