• Home
  • Raw
  • Download

Lines Matching refs:cid

739     ESS_CERT_ID *cid;  in ess_SIGNING_CERT_new_init()  local
749 if ((cid = ess_CERT_ID_new_init(signcert, 0)) == NULL in ess_SIGNING_CERT_new_init()
750 || !sk_ESS_CERT_ID_push(sc->cert_ids, cid)) in ess_SIGNING_CERT_new_init()
754 if ((cid = ess_CERT_ID_new_init(cert, 1)) == NULL in ess_SIGNING_CERT_new_init()
755 || !sk_ESS_CERT_ID_push(sc->cert_ids, cid)) in ess_SIGNING_CERT_new_init()
768 ESS_CERT_ID *cid = NULL; in ess_CERT_ID_new_init() local
774 if ((cid = ESS_CERT_ID_new()) == NULL) in ess_CERT_ID_new_init()
778 if (!ASN1_OCTET_STRING_set(cid->hash, cert_sha1, SHA_DIGEST_LENGTH)) in ess_CERT_ID_new_init()
783 if (cid->issuer_serial == NULL in ess_CERT_ID_new_init()
784 && (cid->issuer_serial = ESS_ISSUER_SERIAL_new()) == NULL) in ess_CERT_ID_new_init()
791 if (!sk_GENERAL_NAME_push(cid->issuer_serial->issuer, name)) in ess_CERT_ID_new_init()
794 ASN1_INTEGER_free(cid->issuer_serial->serial); in ess_CERT_ID_new_init()
795 if (!(cid->issuer_serial->serial = in ess_CERT_ID_new_init()
800 return cid; in ess_CERT_ID_new_init()
803 ESS_CERT_ID_free(cid); in ess_CERT_ID_new_init()
868 ESS_CERT_ID_V2 *cid = NULL; in ess_signing_cert_v2_new_init() local
874 if ((cid = ess_cert_id_v2_new_init(hash_alg, signcert, 0)) == NULL) in ess_signing_cert_v2_new_init()
876 if (!sk_ESS_CERT_ID_V2_push(sc->cert_ids, cid)) in ess_signing_cert_v2_new_init()
878 cid = NULL; in ess_signing_cert_v2_new_init()
883 if ((cid = ess_cert_id_v2_new_init(hash_alg, cert, 1)) == NULL) in ess_signing_cert_v2_new_init()
885 if (!sk_ESS_CERT_ID_V2_push(sc->cert_ids, cid)) in ess_signing_cert_v2_new_init()
887 cid = NULL; in ess_signing_cert_v2_new_init()
893 ESS_CERT_ID_V2_free(cid); in ess_signing_cert_v2_new_init()
901 ESS_CERT_ID_V2 *cid = NULL; in ess_cert_id_v2_new_init() local
909 if ((cid = ESS_CERT_ID_V2_new()) == NULL) in ess_cert_id_v2_new_init()
919 cid->hash_alg = alg; in ess_cert_id_v2_new_init()
922 cid->hash_alg = NULL; in ess_cert_id_v2_new_init()
928 if (!ASN1_OCTET_STRING_set(cid->hash, hash, hash_len)) in ess_cert_id_v2_new_init()
932 if ((cid->issuer_serial = ESS_ISSUER_SERIAL_new()) == NULL) in ess_cert_id_v2_new_init()
939 if (!sk_GENERAL_NAME_push(cid->issuer_serial->issuer, name)) in ess_cert_id_v2_new_init()
942 ASN1_INTEGER_free(cid->issuer_serial->serial); in ess_cert_id_v2_new_init()
943 cid->issuer_serial->serial = in ess_cert_id_v2_new_init()
945 if (cid->issuer_serial->serial == NULL) in ess_cert_id_v2_new_init()
949 return cid; in ess_cert_id_v2_new_init()
953 ESS_CERT_ID_V2_free(cid); in ess_cert_id_v2_new_init()