xref: /freebsd/crypto/openssl/doc/man3/PKCS12_SAFEBAG_set0_attrs.pod (revision e7be843b4a162e68651d3911f0357ed464915629)
1*e7be843bSPierre Pronchery=pod
2*e7be843bSPierre Pronchery
3*e7be843bSPierre Pronchery=head1 NAME
4*e7be843bSPierre Pronchery
5*e7be843bSPierre ProncheryPKCS12_SAFEBAG_set0_attrs
6*e7be843bSPierre Pronchery- Set attributes for a PKCS#12 safeBag
7*e7be843bSPierre Pronchery
8*e7be843bSPierre Pronchery=head1 SYNOPSIS
9*e7be843bSPierre Pronchery
10*e7be843bSPierre Pronchery #include <openssl/pkcs12.h>
11*e7be843bSPierre Pronchery
12*e7be843bSPierre Pronchery void PKCS12_SAFEBAG_set0_attrs(PKCS12_SAFEBAG *bag, STACK_OF(X509_ATTRIBUTE) *attrs);
13*e7be843bSPierre Pronchery
14*e7be843bSPierre Pronchery=head1 DESCRIPTION
15*e7be843bSPierre Pronchery
16*e7be843bSPierre ProncheryPKCS12_SAFEBAG_set0_attrs() assigns the stack of B<X509_ATTRIBUTE>s to a
17*e7be843bSPierre ProncheryPKCS#12 safeBag. I<bag> is the B<PKCS12_SAFEBAG> to assign the attributes to.
18*e7be843bSPierre Pronchery
19*e7be843bSPierre Pronchery=head1 RETURN VALUES
20*e7be843bSPierre Pronchery
21*e7be843bSPierre ProncheryPKCS12_SAFEBAG_set0_attrs() does not return a value.
22*e7be843bSPierre Pronchery
23*e7be843bSPierre Pronchery=head1 HISTORY
24*e7be843bSPierre Pronchery
25*e7be843bSPierre ProncheryThis function was added in OpenSSL 3.2.
26*e7be843bSPierre Pronchery
27*e7be843bSPierre Pronchery=head1 COPYRIGHT
28*e7be843bSPierre Pronchery
29*e7be843bSPierre ProncheryCopyright 2019-2024 The OpenSSL Project Authors. All Rights Reserved.
30*e7be843bSPierre Pronchery
31*e7be843bSPierre ProncheryLicensed under the Apache License 2.0 (the "License").  You may not use
32*e7be843bSPierre Proncherythis file except in compliance with the License.  You can obtain a copy
33*e7be843bSPierre Proncheryin the file LICENSE in the source distribution or at
34*e7be843bSPierre ProncheryL<https://www.openssl.org/source/license.html>.
35*e7be843bSPierre Pronchery
36*e7be843bSPierre Pronchery=cut
37