From 692664cfe02d11bf5ce44833f0bc074a58cb7d37 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Tue, 23 Jul 2019 12:50:04 +0000 Subject: [PATCH] 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 --- modules/md/md_crypt.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.40.0