Lines Matching refs:cert
19 #include "dnscrypt/cert.h"
67 /** the client_magic used by the client, this is associated to 1 cert only */
237 * \param[in] cert the cert that matches this encrypted query.
245 const dnsccert *cert,
270 cert->magic_query,
277 cert->magic_query,
291 cert->magic_query,
298 cert->es_version[1],
300 cert->keypair->crypt_secretkey);
309 if(cert->es_version[1] == 2) {
313 cert->keypair->crypt_secretkey) != 0) {
322 cert->keypair->crypt_secretkey) != 0) {
340 if(cert->es_version[1] == 2) {
452 * \param[in] cert the dnsccert that matches this encrypted query.
461 dnscrypt_server_curve(const dnsccert *cert,
491 cert->keypair->crypt_secretkey);
499 if(cert->es_version[1] == 2) {
615 verbose(VERB_OPS, "Loaded cert %s", head->str);
647 * Find the cert matching a DNSCrypt query.
651 * \return a dnsccert * if we found a cert matching the magic_number of the
686 // Insert 'local-zone: "2.dnscrypt-cert.example.com" deny'
696 // 2.dnscrypt-cert.example.com 86400 IN TXT "DNSC......"
703 struct SignedCert *cert = dnscenv->signed_certs + i;
706 if(cert == dnscenv->rotated_certs[j]) {
711 memcpy(&serial, cert->serial, sizeof serial);
715 "DNSCrypt: not adding cert with serial #%"
724 verbose(VERB_OPS, "cert #%" PRIu32 " is too long", serial);
739 int c = (int)*((const uint8_t *) cert + j);
747 "DNSCrypt: adding cert with serial #%"
828 // find the cert matching this key
967 fatal_exit("dnsc_apply_cfg: no cert file loaded");