Home
last modified time | relevance | path

Searched refs:cert_pin (Results 1 – 6 of 6) sorted by relevance

/dports/dns/knot3-lib/knot-3.1.5/src/utils/common/
H A Dtls.c143 static bool check_pin(const uint8_t *cert_pin, size_t cert_pin_len, const list_t *pins) in check_pin() argument
153 memcmp(cert_pin, &pin[1], cert_pin_len) == 0) { in check_pin()
328 uint8_t cert_pin[CERT_PIN_LEN] = { 0 }; in check_certificates() local
329 ret = cert_get_pin(cert, cert_pin, sizeof(cert_pin)); in check_certificates()
336 bool match = check_pin(cert_pin, sizeof(cert_pin), pins); in check_certificates()
342 ret = knot_base64_encode_alloc(cert_pin, sizeof(cert_pin), &txt_pin); in check_certificates()
/dports/dns/knot3/knot-3.1.5/src/utils/common/
H A Dtls.c143 static bool check_pin(const uint8_t *cert_pin, size_t cert_pin_len, const list_t *pins) in check_pin() argument
153 memcmp(cert_pin, &pin[1], cert_pin_len) == 0) { in check_pin()
328 uint8_t cert_pin[CERT_PIN_LEN] = { 0 }; in check_certificates() local
329 ret = cert_get_pin(cert, cert_pin, sizeof(cert_pin)); in check_certificates()
336 bool match = check_pin(cert_pin, sizeof(cert_pin), pins); in check_certificates()
342 ret = knot_base64_encode_alloc(cert_pin, sizeof(cert_pin), &txt_pin); in check_certificates()
/dports/security/zeronet/ZeroNet-0.7.1/src/Connection/
H A DConnection.py27 self.cert_pin = None
29 ip, self.cert_pin = ip.split("#")
153 if self.cert_pin:
154 … self.sock = CryptConnection.manager.wrapSocket(self.sock, "tls-rsa", cert_pin=self.cert_pin)
464 …lf.sock = CryptConnection.manager.wrapSocket(self.sock, self.crypt, server, cert_pin=self.cert_pin)
468 if not self.sock_wrapped and self.cert_pin:
494 …lf.sock = CryptConnection.manager.wrapSocket(self.sock, self.crypt, server, cert_pin=self.cert_pin)
502 if not self.sock_wrapped and self.cert_pin:
H A DConnectionServer.py233 … if connection.cert_pin and self.ips.get(connection.ip + "#" + connection.cert_pin) == connection:
234 del self.ips[connection.ip + "#" + connection.cert_pin]
/dports/security/zeronet/ZeroNet-0.7.1/src/Crypt/
H A DCryptConnection.py80 def wrapSocket(self, sock, crypt, server=False, cert_pin=None): argument
86 if cert_pin:
88 if cert_hash != cert_pin:
89 … raise Exception("Socket certificate does not match (%s != %s)" % (cert_hash, cert_pin))
/dports/dns/knot-resolver/knot-resolver-5.4.3/daemon/
H A Dtls.c942 char cert_pin[TLS_SHA256_RAW_LEN]; in client_verify_pin() local
944 ret = get_oob_key_pin(cert, cert_pin, sizeof(cert_pin), true); in client_verify_pin()
951 if (memcmp(cert_pin, pin, TLS_SHA256_RAW_LEN) != 0) in client_verify_pin()