Lines Matching defs:nid
20 static int add_attribute(STACK_OF(X509_ATTRIBUTE) **sk, int nid, int atrtype,
22 static ASN1_TYPE *get_attribute(const STACK_OF(X509_ATTRIBUTE) *sk, int nid);
28 int nid = OBJ_obj2nid(p7->type);
30 switch (nid) {
677 static BIO *PKCS7_find_digest(EVP_MD_CTX **pmd, BIO *bio, int nid)
690 if (EVP_MD_CTX_get_type(*pmd) == nid)
1161 ASN1_TYPE *PKCS7_get_signed_attribute(const PKCS7_SIGNER_INFO *si, int nid)
1163 return get_attribute(si->auth_attr, nid);
1166 ASN1_TYPE *PKCS7_get_attribute(const PKCS7_SIGNER_INFO *si, int nid)
1168 return get_attribute(si->unauth_attr, nid);
1171 static ASN1_TYPE *get_attribute(const STACK_OF(X509_ATTRIBUTE) *sk, int nid)
1175 idx = X509at_get_attr_by_NID(sk, nid, -1);
1226 int PKCS7_add_signed_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int atrtype,
1229 return add_attribute(&(p7si->auth_attr), nid, atrtype, value);
1232 int PKCS7_add_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int atrtype,
1235 return add_attribute(&(p7si->unauth_attr), nid, atrtype, value);
1238 static int add_attribute(STACK_OF(X509_ATTRIBUTE) **sk, int nid, int atrtype,
1247 if ((attr = X509_ATTRIBUTE_create(nid, atrtype, value)) == NULL)
1258 if (OBJ_obj2nid(X509_ATTRIBUTE_get0_object(attr)) == nid) {
1260 attr = X509_ATTRIBUTE_create(nid, atrtype, value);