]> 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 12:54:21 +0000 (13:54 +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)

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

index d93d757aefa1367a0f3924254f171b1988384b42..6966d12c200e2e106f7771cb67dc6315c644b8a6 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 1c4a13aa42b40e21dfb5fdd9d771de74053b23d5..eda5ee986f2d72814929961c57bcf79b4241b851 100644 (file)
@@ -975,7 +975,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,