diff options
author | Daniel Fiala <daniel@openssl.org> | 2022-10-07 13:24:20 +0200 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2022-10-13 13:21:54 +0100 |
commit | 9eaf07ffe39e76aca2dfb8e22b8060c75fcbd8e0 (patch) | |
tree | a79c10891b9107a9f5a694f3d01c5a76399abea1 /crypto/pkcs12/p12_attr.c | |
parent | af6379368f81025808689e843a5d86c6402a63a7 (diff) |
PKCS12_SAFEBAG_set0_attrs: Remove const from function signature
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19359)
Diffstat (limited to 'crypto/pkcs12/p12_attr.c')
-rw-r--r-- | crypto/pkcs12/p12_attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/pkcs12/p12_attr.c b/crypto/pkcs12/p12_attr.c index 74cb55a8b5..ea0d027c10 100644 --- a/crypto/pkcs12/p12_attr.c +++ b/crypto/pkcs12/p12_attr.c @@ -120,10 +120,10 @@ PKCS12_SAFEBAG_get0_attrs(const PKCS12_SAFEBAG *bag) return bag->attrib; } -void PKCS12_SAFEBAG_set0_attrs(PKCS12_SAFEBAG *bag, const STACK_OF(X509_ATTRIBUTE) *attrs) +void PKCS12_SAFEBAG_set0_attrs(PKCS12_SAFEBAG *bag, STACK_OF(X509_ATTRIBUTE) *attrs) { if (bag->attrib != attrs) sk_X509_ATTRIBUTE_free(bag->attrib); - bag->attrib = (STACK_OF(X509_ATTRIBUTE) *)attrs; + bag->attrib = attrs; } |