Changeset View
Changeset View
Standalone View
Standalone View
contrib/ldns/ldns/dane.h
Show All 37 Lines | |||||
/** | /** | ||||
* The different "Certificate usage" rdata field values for a TLSA RR. | * The different "Certificate usage" rdata field values for a TLSA RR. | ||||
*/ | */ | ||||
enum ldns_enum_tlsa_certificate_usage | enum ldns_enum_tlsa_certificate_usage | ||||
{ | { | ||||
/** CA constraint */ | /** CA constraint */ | ||||
LDNS_TLSA_USAGE_PKIX_TA = 0, | LDNS_TLSA_USAGE_PKIX_TA = 0, | ||||
LDNS_TLSA_USAGE_CA_CONSTRAINT = 0, | LDNS_TLSA_USAGE_CA_CONSTRAINT = 0, | ||||
/** Sevice certificate constraint */ | /** Service certificate constraint */ | ||||
LDNS_TLSA_USAGE_PKIX_EE = 1, | LDNS_TLSA_USAGE_PKIX_EE = 1, | ||||
LDNS_TLSA_USAGE_SERVICE_CERTIFICATE_CONSTRAINT = 1, | LDNS_TLSA_USAGE_SERVICE_CERTIFICATE_CONSTRAINT = 1, | ||||
/** Trust anchor assertion */ | /** Trust anchor assertion */ | ||||
LDNS_TLSA_USAGE_DANE_TA = 2, | LDNS_TLSA_USAGE_DANE_TA = 2, | ||||
LDNS_TLSA_USAGE_TRUST_ANCHOR_ASSERTION = 2, | LDNS_TLSA_USAGE_TRUST_ANCHOR_ASSERTION = 2, | ||||
/** Domain issued certificate */ | /** Domain issued certificate */ | ||||
LDNS_TLSA_USAGE_DANE_EE = 3, | LDNS_TLSA_USAGE_DANE_EE = 3, | ||||
LDNS_TLSA_USAGE_DOMAIN_ISSUED_CERTIFICATE = 3, | LDNS_TLSA_USAGE_DOMAIN_ISSUED_CERTIFICATE = 3, | ||||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
#if LDNS_BUILD_CONFIG_USE_DANE | #if LDNS_BUILD_CONFIG_USE_DANE | ||||
/** | /** | ||||
* Creates a dname consisting of the given name, prefixed by the service port | * 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>. | * and type of transport: _<EM>port</EM>._<EM>transport</EM>.<EM>name</EM>. | ||||
* | * | ||||
* \param[out] tlsa_owner The created dname. | * \param[out] tlsa_owner The created dname. | ||||
* \param[in] name The dname that should be prefixed. | * \param[in] name The dname that should be prefixed. | ||||
* \param[in] port The service port number for wich the name should be created. | * \param[in] port The service port number for which the name should be created. | ||||
* \param[in] transport The transport for which the name should be created. | * \param[in] transport The transport for which the name should be created. | ||||
* \return LDNS_STATUS_OK on success or an error code otherwise. | * \return LDNS_STATUS_OK on success or an error code otherwise. | ||||
*/ | */ | ||||
ldns_status ldns_dane_create_tlsa_owner(ldns_rdf** tlsa_owner, | ldns_status ldns_dane_create_tlsa_owner(ldns_rdf** tlsa_owner, | ||||
const ldns_rdf* name, uint16_t port, | const ldns_rdf* name, uint16_t port, | ||||
ldns_dane_transport transport); | ldns_dane_transport transport); | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |