]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Rename CMS_si_check_attributes to ossl_cms_si_check_attributes
authorShane Lontis <shane.lontis@oracle.com>
Tue, 9 Mar 2021 04:49:27 +0000 (14:49 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Thu, 18 Mar 2021 07:52:38 +0000 (17:52 +1000)
Partial fix for #12964

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14473)

crypto/cms/cms_att.c
crypto/cms/cms_local.h
crypto/cms/cms_sd.c

index 2ac118b9e6a5e2ab9bfcf2c2ba2b2b2971a2d03d..c7a757d80b4e059436040a9a09a49024af16961f 100644 (file)
@@ -263,7 +263,7 @@ static int cms_check_attribute(int nid, int flags, int type,
  *     attributes. Only one instance of each is allowed, with each of these
  *     attributes containing a single attribute value in its set.
  */
-int CMS_si_check_attributes(const CMS_SignerInfo *si)
+int ossl_cms_si_check_attributes(const CMS_SignerInfo *si)
 {
     int i;
     int have_signed_attrs = (CMS_signed_get_attr_count(si) > 0);
index 0827c55a1c1b3fb6c02268c110928cd35e509baa..15b4a29ce03dce4535338513f26803d677fa6ffa 100644 (file)
@@ -468,7 +468,7 @@ int ossl_cms_RecipientInfo_kari_encrypt(const CMS_ContentInfo *cms,
 int ossl_cms_RecipientInfo_pwri_crypt(const CMS_ContentInfo *cms,
                                       CMS_RecipientInfo *ri, int en_de);
 /* SignerInfo routines */
-int CMS_si_check_attributes(const CMS_SignerInfo *si);
+int ossl_cms_si_check_attributes(const CMS_SignerInfo *si);
 void ossl_cms_SignerInfos_set_cmsctx(CMS_ContentInfo *cms);
 
 
index 0c3f04388bcd7380b588f3ce572fcd747bd73958..a57943513e46194d44c26c1dc56b9ae09d6f12e8 100644 (file)
@@ -734,7 +734,7 @@ int CMS_SignerInfo_sign(CMS_SignerInfo *si)
             goto err;
     }
 
-    if (!CMS_si_check_attributes(si))
+    if (!ossl_cms_si_check_attributes(si))
         goto err;
 
     if (si->pctx)
@@ -829,7 +829,7 @@ int CMS_SignerInfo_verify(CMS_SignerInfo *si)
         return -1;
     }
 
-    if (!CMS_si_check_attributes(si))
+    if (!ossl_cms_si_check_attributes(si))
         return -1;
 
     name = OBJ_nid2sn(OBJ_obj2nid(si->digestAlgorithm->algorithm));