]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Changing X509at_get0_data_by_OBJ to expect const stack of X509_ATTRIBUTE
authorAkshit Akhoury <akshit.akhoury@citrix.com>
Fri, 2 Oct 2020 16:58:36 +0000 (22:28 +0530)
committerMatt Caswell <matt@openssl.org>
Thu, 15 Oct 2020 13:47:21 +0000 (14:47 +0100)
CLA: trivial

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13062)

(cherry picked from commit 796948cd733d2bd0d8acbaf2354c718bcd4352a6)

crypto/x509/x509_att.c
include/openssl/x509.h

index 651aa78083093e4817ee29f028c548f7db751f71..256c4fb8ef4f7338db7bf186c3da59eacb723654 100644 (file)
@@ -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;
index b97ec342e2c9cf5d9d1fa77a63f930ac9e598b6d..3ff86ec7b54d70ed09f25ce5953adff101c93652 100644 (file)
@@ -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,