diff options
author | Matt Caswell <matt@openssl.org> | 2017-06-12 15:59:00 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-06-21 14:45:35 +0100 |
commit | f46184bd90aea1d71e46a598038215a7fcb359c6 (patch) | |
tree | 49a7b7ca9a50279e17631af2d6a664ac6f36ce4b /include | |
parent | 9368f86526d9feb1f511fab9c0eee8e8dc869b87 (diff) |
Add public API functions for setting TLSv1.3 PSK callbacks
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3670)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/ssl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index 41edb380b8..9928781f2f 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -780,6 +780,13 @@ const char *SSL_get_psk_identity_hint(const SSL *s); const char *SSL_get_psk_identity(const SSL *s); # endif +void SSL_set_psk_find_session_callback(SSL *s, SSL_psk_find_session_cb_func cb); +void SSL_CTX_set_psk_find_session_callback(SSL_CTX *ctx, + SSL_psk_find_session_cb_func cb); +void SSL_set_psk_use_session_callback(SSL *s, SSL_psk_use_session_cb_func cb); +void SSL_CTX_set_psk_use_session_callback(SSL_CTX *ctx, + SSL_psk_use_session_cb_func cb); + /* Register callbacks to handle custom TLS Extensions for client or server. */ __owur int SSL_CTX_has_client_custom_ext(const SSL_CTX *ctx, |