-/* dane.h */
/*
* Written by Viktor Dukhovni (viktor@openssl.org) for the OpenSSL project
* 2015.
/*
* Per connection DANE state
*/
-struct dane_st {
+struct ssl_dane_st {
struct dane_ctx_st *dctx;
STACK_OF(danetls_record) *trecs;
STACK_OF(X509) *certs; /* DANE-TA(2) Cert(0) Full(0) certs */
int pdpth; /* Depth of PKIX trust */
};
-#define DANETLS_ENABLED(dane) ((dane) && ((dane)->trecs != NULL))
+#define DANETLS_ENABLED(dane) ((dane) != NULL && ((dane)->trecs != NULL))
#define DANETLS_USAGE_BIT(u) (((uint32_t)1) << u)