summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_local.h
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2023-08-07 20:48:09 +0200
committerTomas Mraz <tomas@openssl.org>2023-08-14 15:55:33 +0200
commitf7b2942c041ee803557a009a4554760c56484c9d (patch)
treee5e3373e2890c696dcc7e7d504795c7ae7e964c3 /ssl/ssl_local.h
parent9d005bafacbaf9e8ac8c2e1bf90b124c4254022b (diff)
ssl_local.h: Define SSL_OP_CISCO_ANYCONNECT if undefined in public headers
Fixes #21626 Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> (Merged from https://github.com/openssl/openssl/pull/21677)
Diffstat (limited to 'ssl/ssl_local.h')
-rw-r--r--ssl/ssl_local.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/ssl_local.h b/ssl/ssl_local.h
index 82747f6dfb..d628f40262 100644
--- a/ssl/ssl_local.h
+++ b/ssl/ssl_local.h
@@ -3019,6 +3019,10 @@ void ossl_ssl_set_custom_record_layer(SSL_CONNECTION *s,
SSL_OP_SINGLE_ECDH_USE | \
SSL_OP_EPHEMERAL_RSA )
+/* This option is undefined in public headers with no-dtls1-method. */
+#ifndef SSL_OP_CISCO_ANYCONNECT
+# define SSL_OP_CISCO_ANYCONNECT 0
+#endif
/*
* Options which are no-ops under QUIC or TLSv1.3 and which are therefore
* allowed but ignored under QUIC.