Lines Matching refs:nid
39 int nid; /* The attribute id */
74 int CMS_signed_get_attr_by_NID(const CMS_SignerInfo *si, int nid, int lastpos)
76 return X509at_get_attr_by_NID(si->signedAttrs, nid, lastpos);
112 int nid, int type, const void *bytes, int len)
114 if (X509at_add1_attr_by_NID(&si->signedAttrs, nid, type, bytes, len))
140 int CMS_unsigned_get_attr_by_NID(const CMS_SignerInfo *si, int nid,
143 return X509at_get_attr_by_NID(si->unsignedAttrs, nid, lastpos);
179 int nid, int type,
182 if (X509at_add1_attr_by_NID(&si->unsignedAttrs, nid, type, bytes, len))
204 * Retrieve an attribute by nid from a stack of attributes starting at index
209 static X509_ATTRIBUTE *cms_attrib_get(int nid,
216 loc = X509at_get_attr_by_NID(attrs, nid, *lastpos);
225 static int cms_check_attribute(int nid, int flags, int type,
230 X509_ATTRIBUTE *at = cms_attrib_get(nid, attrs, &lastpos);
239 && cms_attrib_get(nid, attrs, &lastpos) != NULL)
273 int nid = cms_attribute_properties[i].nid;
276 if (!cms_check_attribute(nid, flags, CMS_ATTR_F_SIGNED,
278 || !cms_check_attribute(nid, flags, CMS_ATTR_F_UNSIGNED,