Searched refs:cert (Results 1 – 4 of 4) sorted by relevance
23 int x509_get_sig_params(struct x509_certificate *cert) in x509_get_sig_params() argument25 struct public_key_signature *sig = cert->sig; in x509_get_sig_params()33 sig->data = cert->tbs; in x509_get_sig_params()34 sig->data_size = cert->tbs_size; in x509_get_sig_params()36 sig->s = kmemdup(cert->raw_sig, cert->raw_sig_size, GFP_KERNEL); in x509_get_sig_params()40 sig->s_size = cert->raw_sig_size; in x509_get_sig_params()48 cert->unsupported_sig = true; in x509_get_sig_params()68 ret = crypto_shash_digest(desc, cert->tbs, cert->tbs_size, sig->digest); in x509_get_sig_params()77 cert->blacklisted = true; in x509_get_sig_params()93 int x509_check_for_self_signed(struct x509_certificate *cert) in x509_check_for_self_signed() argument[all …]
20 struct x509_certificate *cert; /* Certificate being constructed */ member44 void x509_free_certificate(struct x509_certificate *cert) in x509_free_certificate() argument46 if (cert) { in x509_free_certificate()47 public_key_free(cert->pub); in x509_free_certificate()48 public_key_signature_free(cert->sig); in x509_free_certificate()49 kfree(cert->issuer); in x509_free_certificate()50 kfree(cert->subject); in x509_free_certificate()51 kfree(cert->id); in x509_free_certificate()52 kfree(cert->skid); in x509_free_certificate()53 kfree(cert); in x509_free_certificate()[all …]
55 extern void x509_free_certificate(struct x509_certificate *cert);64 extern int x509_get_sig_params(struct x509_certificate *cert);65 extern int x509_check_for_self_signed(struct x509_certificate *cert);
59 struct x509_certificate *cert; in pkcs7_free_message() local64 cert = pkcs7->certs; in pkcs7_free_message()65 pkcs7->certs = cert->next; in pkcs7_free_message()66 x509_free_certificate(cert); in pkcs7_free_message()69 cert = pkcs7->crl; in pkcs7_free_message()70 pkcs7->crl = cert->next; in pkcs7_free_message()71 x509_free_certificate(cert); in pkcs7_free_message()157 struct x509_certificate *cert = ctx->certs; in pkcs7_parse_message() local158 ctx->certs = cert->next; in pkcs7_parse_message()159 x509_free_certificate(cert); in pkcs7_parse_message()