summaryrefslogtreecommitdiffhomepage
path: root/auto/ssltls
diff options
context:
space:
mode:
authorAndrey Suvorov <a.suvorov@f5.com>2021-05-26 11:19:47 -0700
committerAndrey Suvorov <a.suvorov@f5.com>2021-05-26 11:19:47 -0700
commit3f7ccf142ff4d1a11b807a344bcb1e3cb6c3284b (patch)
tree0262e65fe3a943ba90d5e377b7b4c9b4faa42096 /auto/ssltls
parent3efffddd95e564fe10f59e1de45afc2b551a5cba (diff)
downloadunit-3f7ccf142ff4d1a11b807a344bcb1e3cb6c3284b.tar.gz
unit-3f7ccf142ff4d1a11b807a344bcb1e3cb6c3284b.tar.bz2
Enabling SSL_CTX configuration by using SSL_CONF_cmd().
To perform various configuration operations on SSL_CTX, OpenSSL provides SSL_CONF_cmd(). Specifically, to configure ciphers for a listener, "CipherString" and "Ciphersuites" file commands are used: https://www.openssl.org/docs/man1.1.1/man3/SSL_CONF_cmd.html This feature can be configured in the "tls/conf_commands" section.
Diffstat (limited to '')
-rw-r--r--auto/ssltls14
1 files changed, 14 insertions, 0 deletions
diff --git a/auto/ssltls b/auto/ssltls
index f034b758..f9363dde 100644
--- a/auto/ssltls
+++ b/auto/ssltls
@@ -52,6 +52,20 @@ if [ $NXT_OPENSSL = YES ]; then
$echo
exit 1;
fi
+
+
+ nxt_feature="OpenSSL SSL_CONF_cmd()"
+ nxt_feature_name=NXT_HAVE_OPENSSL_CONF_CMD
+ nxt_feature_run=
+ nxt_feature_incs=
+ nxt_feature_libs="$NXT_OPENSSL_LIBS"
+ nxt_feature_test="#include <openssl/ssl.h>
+
+ int main() {
+ SSL_CONF_cmd(NULL, NULL, NULL);
+ return 0;
+ }"
+ . auto/feature
fi