• Home
  • Raw
  • Download

Lines Matching refs:cid

28     ESS_CERT_ID *cid = NULL;  in OSSL_ESS_signing_cert_new_init()  local
38 if ((cid = ESS_CERT_ID_new_init(signcert, set_issuer_serial)) == NULL in OSSL_ESS_signing_cert_new_init()
39 || !sk_ESS_CERT_ID_push(sc->cert_ids, cid)) in OSSL_ESS_signing_cert_new_init()
44 if ((cid = ESS_CERT_ID_new_init(cert, 1)) == NULL in OSSL_ESS_signing_cert_new_init()
45 || !sk_ESS_CERT_ID_push(sc->cert_ids, cid)) in OSSL_ESS_signing_cert_new_init()
52 ESS_CERT_ID_free(cid); in OSSL_ESS_signing_cert_new_init()
60 ESS_CERT_ID *cid = NULL; in ESS_CERT_ID_new_init() local
64 if ((cid = ESS_CERT_ID_new()) == NULL) in ESS_CERT_ID_new_init()
68 if (!ASN1_OCTET_STRING_set(cid->hash, cert_sha1, SHA_DIGEST_LENGTH)) in ESS_CERT_ID_new_init()
73 return cid; in ESS_CERT_ID_new_init()
75 if (cid->issuer_serial == NULL in ESS_CERT_ID_new_init()
76 && (cid->issuer_serial = ESS_ISSUER_SERIAL_new()) == NULL) in ESS_CERT_ID_new_init()
83 if (!sk_GENERAL_NAME_push(cid->issuer_serial->issuer, name)) in ESS_CERT_ID_new_init()
86 ASN1_INTEGER_free(cid->issuer_serial->serial); in ESS_CERT_ID_new_init()
87 if ((cid->issuer_serial->serial = in ESS_CERT_ID_new_init()
91 return cid; in ESS_CERT_ID_new_init()
94 ESS_CERT_ID_free(cid); in ESS_CERT_ID_new_init()
105 ESS_CERT_ID_V2 *cid = NULL; in OSSL_ESS_signing_cert_v2_new_init() local
111 cid = ESS_CERT_ID_V2_new_init(hash_alg, signcert, set_issuer_serial); in OSSL_ESS_signing_cert_v2_new_init()
112 if (cid == NULL) in OSSL_ESS_signing_cert_v2_new_init()
114 if (!sk_ESS_CERT_ID_V2_push(sc->cert_ids, cid)) in OSSL_ESS_signing_cert_v2_new_init()
116 cid = NULL; in OSSL_ESS_signing_cert_v2_new_init()
121 if ((cid = ESS_CERT_ID_V2_new_init(hash_alg, cert, 1)) == NULL) in OSSL_ESS_signing_cert_v2_new_init()
123 if (!sk_ESS_CERT_ID_V2_push(sc->cert_ids, cid)) in OSSL_ESS_signing_cert_v2_new_init()
125 cid = NULL; in OSSL_ESS_signing_cert_v2_new_init()
131 ESS_CERT_ID_V2_free(cid); in OSSL_ESS_signing_cert_v2_new_init()
140 ESS_CERT_ID_V2 *cid; in ESS_CERT_ID_V2_new_init() local
148 if ((cid = ESS_CERT_ID_V2_new()) == NULL) in ESS_CERT_ID_V2_new_init()
158 cid->hash_alg = alg; in ESS_CERT_ID_V2_new_init()
161 cid->hash_alg = NULL; in ESS_CERT_ID_V2_new_init()
167 if (!ASN1_OCTET_STRING_set(cid->hash, hash, hash_len)) in ESS_CERT_ID_V2_new_init()
171 return cid; in ESS_CERT_ID_V2_new_init()
173 if ((cid->issuer_serial = ESS_ISSUER_SERIAL_new()) == NULL) in ESS_CERT_ID_V2_new_init()
180 if (!sk_GENERAL_NAME_push(cid->issuer_serial->issuer, name)) in ESS_CERT_ID_V2_new_init()
183 ASN1_INTEGER_free(cid->issuer_serial->serial); in ESS_CERT_ID_V2_new_init()
184 cid->issuer_serial->serial = ASN1_INTEGER_dup(X509_get0_serialNumber(cert)); in ESS_CERT_ID_V2_new_init()
185 if (cid->issuer_serial->serial == NULL) in ESS_CERT_ID_V2_new_init()
188 return cid; in ESS_CERT_ID_V2_new_init()
192 ESS_CERT_ID_V2_free(cid); in ESS_CERT_ID_V2_new_init()
217 static int find(const ESS_CERT_ID *cid, const ESS_CERT_ID_V2 *cid_v2, in find() argument
229 if (cid == NULL && cid_v2 == NULL) { in find()
234 if (cid != NULL) in find()
257 cid_hash_len = cid != NULL ? cid->hash->length : cid_v2->hash->length; in find()
264 if (memcmp(cid != NULL ? cid->hash->data : cid_v2->hash->data, in find()
266 is = cid != NULL ? cid->issuer_serial : cid_v2->issuer_serial; in find()