xref: /freebsd/crypto/openssl/doc/man3/PKCS12_add_localkeyid.pod (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1=pod
2
3=head1 NAME
4
5PKCS12_add_localkeyid - Add the localKeyId attribute to a PKCS#12 safeBag
6
7=head1 SYNOPSIS
8
9 #include <openssl/pkcs12.h>
10
11 int PKCS12_add_localkeyid(PKCS12_SAFEBAG *bag, const char *name,
12                           int namelen);
13
14=head1 DESCRIPTION
15
16PKCS12_add_localkeyid() adds an octet string representation of the PKCS#9
17localKeyId attribute to a PKCS#12 safeBag.
18
19I<bag> is the B<PKCS12_SAFEBAG> to add the attribute to.
20
21=head1 RETURN VALUES
22
23Returns 1 for success or 0 for failure.
24
25=head1 SEE ALSO
26
27L<PKCS12_add_friendlyname_asc(3)>
28
29=head1 COPYRIGHT
30
31Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
32
33Licensed under the Apache License 2.0 (the "License").  You may not use
34this file except in compliance with the License.  You can obtain a copy
35in the file LICENSE in the source distribution or at
36L<https://www.openssl.org/source/license.html>.
37
38=cut
39