[openssl] OpenSSL_1_1_1-stable update

Matt Caswell matt at openssl.org
Thu Oct 15 13:52:36 UTC 2020


The branch OpenSSL_1_1_1-stable has been updated
       via  7a23c23e4515d253d23b5c8258300873eca179c8 (commit)
      from  b316d06dd99ec55f0a5275ca8ca4188848227b3b (commit)


- Log -----------------------------------------------------------------
commit 7a23c23e4515d253d23b5c8258300873eca179c8
Author: Akshit Akhoury <akshit.akhoury at citrix.com>
Date:   Fri Oct 2 22:28:36 2020 +0530

    Changing X509at_get0_data_by_OBJ to expect const stack of X509_ATTRIBUTE
    
    CLA: trivial
    
    Reviewed-by: Kurt Roeckx <kurt at roeckx.be>
    Reviewed-by: Matt Caswell <matt at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/13062)
    
    (cherry picked from commit 796948cd733d2bd0d8acbaf2354c718bcd4352a6)

-----------------------------------------------------------------------

Summary of changes:
 crypto/x509/x509_att.c | 2 +-
 include/openssl/x509.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/x509/x509_att.c b/crypto/x509/x509_att.c
index 651aa78083..256c4fb8ef 100644
--- a/crypto/x509/x509_att.c
+++ b/crypto/x509/x509_att.c
@@ -149,7 +149,7 @@ STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE)
     return ret;
 }
 
-void *X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x,
+void *X509at_get0_data_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *x,
                               const ASN1_OBJECT *obj, int lastpos, int type)
 {
     int i;
diff --git a/include/openssl/x509.h b/include/openssl/x509.h
index b97ec342e2..3ff86ec7b5 100644
--- a/include/openssl/x509.h
+++ b/include/openssl/x509.h
@@ -933,7 +933,7 @@ STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE)
                                                   int type,
                                                   const unsigned char *bytes,
                                                   int len);
-void *X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x,
+void *X509at_get0_data_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *x,
                               const ASN1_OBJECT *obj, int lastpos, int type);
 X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_NID(X509_ATTRIBUTE **attr, int nid,
                                              int atrtype, const void *data,


More information about the openssl-commits mailing list