2
0

PKCS12_add_friendlyname_asc.pod 1.5 KB

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