summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2021-09-08 17:24:23 +0000
committertb <>2021-09-08 17:24:23 +0000
commit5a0891266eb7faa2125a805f4656e8b451e08848 (patch)
treebfbc15d8fa0319b8f6cdbcbf7e5d6d9eb952703a /src/lib
parent3cf90a6ed0ff5924618eaa5e5bb778b4d28de985 (diff)
downloadopenbsd-5a0891266eb7faa2125a805f4656e8b451e08848.tar.gz
openbsd-5a0891266eb7faa2125a805f4656e8b451e08848.tar.bz2
openbsd-5a0891266eb7faa2125a805f4656e8b451e08848.zip
Prepare to provide API stubs for PHA
ok bcook jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libssl/ssl.h9
-rw-r--r--src/lib/libssl/ssl_lib.c20
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
859int SSL_verify_client_post_handshake(SSL *s);
860void SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val);
861void 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
2969int 2969int
2970SSL_verify_client_post_handshake(SSL *ssl)
2971{
2972 return 0;
2973}
2974
2975void
2976SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val)
2977{
2978 return;
2979}
2980
2981void
2982SSL_set_post_handshake_auth(SSL *ssl, int val)
2983{
2984 return;
2985}
2986
2987int
2970SSL_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, 2988SSL_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{