Home
last modified time | relevance | path

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

/openbsd/sbin/iked/
H A Dca.c230 BIO *rawcert = NULL; in ca_decode_cert_bundle() local
293 if (rawcert == NULL) in ca_decode_cert_bundle()
295 cert = d2i_X509_bio(rawcert, NULL); in ca_decode_cert_bundle()
296 BIO_free(rawcert); in ca_decode_cert_bundle()
1538 BIO *rawcert = NULL; in ca_bytes_to_pkey() local
1552 } else if (BIO_reset(rawcert) == 1 && in ca_bytes_to_pkey()
1571 BIO_free(rawcert); in ca_bytes_to_pkey()
1579 BIO *rawcert = NULL; in ca_privkey_to_method() local
1615 BIO_free(rawcert); in ca_privkey_to_method()
1839 BIO *rawcert = NULL; in ca_validate_cert() local
[all …]
H A Dcrypto.c777 BIO *rawcert = NULL; in dsa_setkey() local
789 if ((rawcert = BIO_new_mem_buf(key, keylen)) == NULL) in dsa_setkey()
794 if ((cert = d2i_X509_bio(rawcert, NULL)) == NULL) in dsa_setkey()
802 if ((rsa = d2i_RSAPrivateKey_bio(rawcert, in dsa_setkey()
806 if ((rsa = d2i_RSAPublicKey_bio(rawcert, in dsa_setkey()
821 if ((ec = d2i_ECPrivateKey_bio(rawcert, NULL)) == NULL) in dsa_setkey()
824 if ((ec = d2i_EC_PUBKEY_bio(rawcert, NULL)) == NULL) in dsa_setkey()
844 BIO_free(rawcert); /* temporary for parsing */ in dsa_setkey()
857 BIO_free(rawcert); in dsa_setkey()
H A Docsp.c274 BIO *rawcert = NULL; in ocsp_validate_cert() local
291 if ((rawcert = BIO_new_mem_buf(data, len)) == NULL || in ocsp_validate_cert()
292 (cert = d2i_X509_bio(rawcert, NULL)) == NULL || in ocsp_validate_cert()
302 BIO_free(rawcert); in ocsp_validate_cert()
332 BIO_free(rawcert); in ocsp_validate_cert()
H A Dikev2.c7659 BIO *rawcert = NULL; in ikev2_log_cert_info() local
7664 if ((rawcert = BIO_new_mem_buf(ibuf_data(certid->id_buf), in ikev2_log_cert_info()
7666 (cert = d2i_X509_bio(rawcert, NULL)) == NULL) in ikev2_log_cert_info()
7672 if (rawcert) in ikev2_log_cert_info()
7673 BIO_free(rawcert); in ikev2_log_cert_info()
/openbsd/sbin/isakmpd/
H A Dike_auth.c565 u_int8_t *rawcert = 0, **hash_p, **id_cert, *id; in rsa_sig_decode_hash() local
613 if (handler->cert_obtain(id, id_len, 0, &rawcert, &rawcertlen)) { in rsa_sig_decode_hash()
615 cert = handler->cert_get(rawcert, rawcertlen); in rsa_sig_decode_hash()
636 handler->cert_insert(exchange->policy_id, rawcert); in rsa_sig_decode_hash()
637 free(rawcert); in rsa_sig_decode_hash()
/openbsd/lib/libfido2/src/
H A Dcred.c280 BIO *rawcert = NULL; in verify_attstmt() local
292 if ((rawcert = BIO_new_mem_buf(attstmt->x5c.ptr, in verify_attstmt()
294 (cert = d2i_X509_bio(rawcert, NULL)) == NULL || in verify_attstmt()
320 BIO_free(rawcert); in verify_attstmt()