summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_local.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2022-11-14 15:29:38 +0000
committerMatt Caswell <matt@openssl.org>2023-01-24 17:16:29 +0000
commitf6da3bbfb7342f3931d36e0c67bd9f79169fac2b (patch)
treed03268d4d107a7961d2dfee261cd0a8b4b375bfb /ssl/ssl_local.h
parent3f9175c7a46b13a3528d9b5776030a78eb1f9454 (diff)
Add the ability to add a custom extension on an SSL object
Previously we could only do this at the SSL_CTX level. We add the ability to also do this on an SSL - but only for internal code. Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19748)
Diffstat (limited to 'ssl/ssl_local.h')
-rw-r--r--ssl/ssl_local.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ssl/ssl_local.h b/ssl/ssl_local.h
index 25fa38137e..ea8f5aa8b4 100644
--- a/ssl/ssl_local.h
+++ b/ssl/ssl_local.h
@@ -2894,6 +2894,14 @@ custom_ext_method *custom_ext_find(const custom_ext_methods *exts,
void custom_ext_init(custom_ext_methods *meths);
+int ossl_tls_add_custom_ext_intern(SSL_CTX *ctx, custom_ext_methods *exts,
+ ENDPOINT role, unsigned int ext_type,
+ unsigned int context,
+ SSL_custom_ext_add_cb_ex add_cb,
+ SSL_custom_ext_free_cb_ex free_cb,
+ void *add_arg,
+ SSL_custom_ext_parse_cb_ex parse_cb,
+ void *parse_arg);
__owur int custom_ext_parse(SSL_CONNECTION *s, unsigned int context,
unsigned int ext_type,
const unsigned char *ext_data, size_t ext_size,