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