verify_server_name, name);
break;
+#ifdef USE_DANE_VERIFY
case VERIFY:
#if OPENSSL_VERSION_NUMBER < 0x10100000
if (! dane_verify(tlsas, address,
ssl_interact(ssl);
}
break;
+#endif /* USE_DANE_VERIFY */
default: break; /* suppress warning */
}
int
main(int argc, char **argv)
{
+ (void)argc;
+ (void)argv;
+
fprintf(stderr, "dane support was disabled with this build of ldns, "
"and has not been compiled in\n");
return 1;
#ifndef LDNS_DANE_H
#define LDNS_DANE_H
-#if LDNS_BUILD_CONFIG_USE_DANE
#include <ldns/common.h>
#include <ldns/rdata.h>
typedef enum ldns_enum_dane_transport ldns_dane_transport;
+#if LDNS_BUILD_CONFIG_USE_DANE
/**
* Creates a dname consisting of the given name, prefixed by the service port
* and type of transport: _<EM>port</EM>._<EM>transport</EM>.<EM>name</EM>.
X509* cert, STACK_OF(X509)* extra_certs,
X509_STORE* pkix_validation_store);
#endif /* LDNS_BUILD_CONFIG_HAVE_SSL */
+#endif /* LDNS_BUILD_CONFIG_USE_DANE */
#ifdef __cplusplus
}
#endif
-#endif /* LDNS_BUILD_CONFIG_USE_DANE */
#endif /* LDNS_DANE_H */