Wrap get_ct_scts_nid() in preproc in order to avoid error: unused function 'get_ct_scts_nid' [-Werror,-Wunused-function] in maint mode
@@ -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)
{
