Lines Matching refs:si
70 int CMS_signed_get_attr_count(const CMS_SignerInfo *si) in CMS_signed_get_attr_count() argument
72 return X509at_get_attr_count(si->signedAttrs); in CMS_signed_get_attr_count()
75 int CMS_signed_get_attr_by_NID(const CMS_SignerInfo *si, int nid, int lastpos) in CMS_signed_get_attr_by_NID() argument
77 return X509at_get_attr_by_NID(si->signedAttrs, nid, lastpos); in CMS_signed_get_attr_by_NID()
80 int CMS_signed_get_attr_by_OBJ(const CMS_SignerInfo *si, const ASN1_OBJECT *obj, in CMS_signed_get_attr_by_OBJ() argument
83 return X509at_get_attr_by_OBJ(si->signedAttrs, obj, lastpos); in CMS_signed_get_attr_by_OBJ()
86 X509_ATTRIBUTE *CMS_signed_get_attr(const CMS_SignerInfo *si, int loc) in CMS_signed_get_attr() argument
88 return X509at_get_attr(si->signedAttrs, loc); in CMS_signed_get_attr()
91 X509_ATTRIBUTE *CMS_signed_delete_attr(CMS_SignerInfo *si, int loc) in CMS_signed_delete_attr() argument
93 return X509at_delete_attr(si->signedAttrs, loc); in CMS_signed_delete_attr()
96 int CMS_signed_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr) in CMS_signed_add1_attr() argument
98 if (ossl_x509at_add1_attr(&si->signedAttrs, attr)) in CMS_signed_add1_attr()
103 int CMS_signed_add1_attr_by_OBJ(CMS_SignerInfo *si, in CMS_signed_add1_attr_by_OBJ() argument
107 if (ossl_x509at_add1_attr_by_OBJ(&si->signedAttrs, obj, type, bytes, len)) in CMS_signed_add1_attr_by_OBJ()
112 int CMS_signed_add1_attr_by_NID(CMS_SignerInfo *si, in CMS_signed_add1_attr_by_NID() argument
115 if (ossl_x509at_add1_attr_by_NID(&si->signedAttrs, nid, type, bytes, len)) in CMS_signed_add1_attr_by_NID()
120 int CMS_signed_add1_attr_by_txt(CMS_SignerInfo *si, in CMS_signed_add1_attr_by_txt() argument
124 if (ossl_x509at_add1_attr_by_txt(&si->signedAttrs, attrname, type, bytes, in CMS_signed_add1_attr_by_txt()
130 void *CMS_signed_get0_data_by_OBJ(const CMS_SignerInfo *si, in CMS_signed_get0_data_by_OBJ() argument
134 return X509at_get0_data_by_OBJ(si->signedAttrs, oid, lastpos, type); in CMS_signed_get0_data_by_OBJ()
137 int CMS_unsigned_get_attr_count(const CMS_SignerInfo *si) in CMS_unsigned_get_attr_count() argument
139 return X509at_get_attr_count(si->unsignedAttrs); in CMS_unsigned_get_attr_count()
142 int CMS_unsigned_get_attr_by_NID(const CMS_SignerInfo *si, int nid, in CMS_unsigned_get_attr_by_NID() argument
145 return X509at_get_attr_by_NID(si->unsignedAttrs, nid, lastpos); in CMS_unsigned_get_attr_by_NID()
148 int CMS_unsigned_get_attr_by_OBJ(const CMS_SignerInfo *si, in CMS_unsigned_get_attr_by_OBJ() argument
151 return X509at_get_attr_by_OBJ(si->unsignedAttrs, obj, lastpos); in CMS_unsigned_get_attr_by_OBJ()
154 X509_ATTRIBUTE *CMS_unsigned_get_attr(const CMS_SignerInfo *si, int loc) in CMS_unsigned_get_attr() argument
156 return X509at_get_attr(si->unsignedAttrs, loc); in CMS_unsigned_get_attr()
159 X509_ATTRIBUTE *CMS_unsigned_delete_attr(CMS_SignerInfo *si, int loc) in CMS_unsigned_delete_attr() argument
161 return X509at_delete_attr(si->unsignedAttrs, loc); in CMS_unsigned_delete_attr()
164 int CMS_unsigned_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr) in CMS_unsigned_add1_attr() argument
166 if (ossl_x509at_add1_attr(&si->unsignedAttrs, attr)) in CMS_unsigned_add1_attr()
171 int CMS_unsigned_add1_attr_by_OBJ(CMS_SignerInfo *si, in CMS_unsigned_add1_attr_by_OBJ() argument
175 if (ossl_x509at_add1_attr_by_OBJ(&si->unsignedAttrs, obj, type, bytes, len)) in CMS_unsigned_add1_attr_by_OBJ()
180 int CMS_unsigned_add1_attr_by_NID(CMS_SignerInfo *si, in CMS_unsigned_add1_attr_by_NID() argument
184 if (ossl_x509at_add1_attr_by_NID(&si->unsignedAttrs, nid, type, bytes, len)) in CMS_unsigned_add1_attr_by_NID()
189 int CMS_unsigned_add1_attr_by_txt(CMS_SignerInfo *si, in CMS_unsigned_add1_attr_by_txt() argument
193 if (ossl_x509at_add1_attr_by_txt(&si->unsignedAttrs, attrname, in CMS_unsigned_add1_attr_by_txt()
199 void *CMS_unsigned_get0_data_by_OBJ(CMS_SignerInfo *si, ASN1_OBJECT *oid, in CMS_unsigned_get0_data_by_OBJ() argument
202 return X509at_get0_data_by_OBJ(si->unsignedAttrs, oid, lastpos, type); in CMS_unsigned_get0_data_by_OBJ()
268 int ossl_cms_si_check_attributes(const CMS_SignerInfo *si) in ossl_cms_si_check_attributes() argument
271 int have_signed_attrs = (CMS_signed_get_attr_count(si) > 0); in ossl_cms_si_check_attributes()
272 int have_unsigned_attrs = (CMS_unsigned_get_attr_count(si) > 0); in ossl_cms_si_check_attributes()
279 si->signedAttrs, have_signed_attrs) in ossl_cms_si_check_attributes()
281 si->unsignedAttrs, have_unsigned_attrs)) { in ossl_cms_si_check_attributes()