summaryrefslogtreecommitdiffstats
path: root/modules/md
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2019-07-23 14:50:04 +0200
committerJim Jagielski <jim@apache.org>2019-07-23 14:50:04 +0200
commit692664cfe02d11bf5ce44833f0bc074a58cb7d37 (patch)
tree48e0aede9215b629f73deb4a7c91960bfbfb8730 /modules/md
parentfr doc rebuild. (diff)
downloadapache2-692664cfe02d11bf5ce44833f0bc074a58cb7d37.tar.xz
apache2-692664cfe02d11bf5ce44833f0bc074a58cb7d37.zip
Wrap get_ct_scts_nid() in preproc in order to avoid error: unused function 'get_ct_scts_nid' [-Werror,-Wunused-function] in maint mode
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1863635 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/md')
-rw-r--r--modules/md/md_crypt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/md/md_crypt.c b/modules/md/md_crypt.c
index acb62d3456..c9f73614cd 100644
--- a/modules/md/md_crypt.c
+++ b/modules/md/md_crypt.c
@@ -1485,6 +1485,7 @@ out:
#define MD_OID_CT_SCTS_SNAME "CT-SCTs"
#define MD_OID_CT_SCTS_LNAME "CT Certificate SCTs"
+#ifndef OPENSSL_NO_CT
static int get_ct_scts_nid(void)
{
int nid = OBJ_txt2nid(MD_OID_CT_SCTS_NUM);
@@ -1494,6 +1495,7 @@ static int get_ct_scts_nid(void)
}
return nid;
}
+#endif
const char *md_nid_get_sname(int nid)
{