PKCS12_ADD_FRIENDLYNAME_ASC(3ossl)

πŸ“¦
version 15.1 Β· 3 versions
, in freebsd 15.1

🌸 NAME 🌸

okay so bestie, welcome to the manual page for PKCS12_ADD_FRIENDLYNAME_ASC(3ossl) from OpenSSL β€” it's giving friendlyname energy and I'm obsessed. πŸ’…

PKCS12_add_friendlyname_asc, PKCS12_add_friendlyname_utf8, PKCS12_add_friendlyname_uni β€” Functions to add the friendlyname attribute to a PKCS#12 safeBag. periodt. ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <openssl/pkcs12.h>

int PKCS12_add_friendlyname_asc(PKCS12_SAFEBAG *bag, const char *name,
                                int namelen);

int PKCS12_add_friendlyname_utf8(PKCS12_SAFEBAG *bag, const char *name,
                                int namelen);

int PKCS12_add_friendlyname_uni(PKCS12_SAFEBAG *bag,
                                const unsigned char *name, int namelen);

πŸ’– DESCRIPTION πŸ’–

So these three functions are basically the friend-group of friendlyname adders: all of them add a PKCS#9 friendlyName attribute to a PKCS#12 safeBag, but each one is speaking its own string language. iconic behavior, honestly. 🌈

  • PKCS12_add_friendlyname_asc() β€” adds an ASCII string representation of the PKCS#9 friendlyName attribute to a PKCS#12 safeBag. ASCII bestie has entered the chat. 🫢
  • PKCS12_add_friendlyname_utf8() β€” adds a UTF-8 string representation of the PKCS#9 friendlyName attribute to a PKCS#12 safeBag. UTF-8 girlie is thriving. πŸ¦‹
  • PKCS12_add_friendlyname_uni() β€” adds a Unicode string representation of the PKCS#9 friendlyName attribute to a PKCS#12 safeBag. Unicode bestie understood the assignment. πŸ‘‘

And like, bag is the PKCS12_SAFEBAG to add the attribute to. that's the whole vibe. ✨


πŸ”₯ RETURN VALUES πŸ”₯

Returns 1 for success or 0 for failure. no cap, that's the tea. πŸ’–


πŸ¦‹ SEE ALSO πŸ¦‹


Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html.

legal bestie has left the group chat, but respectfully. πŸ’…

mwah πŸ’‹ this page is from OpenSSL 3.5.6, dated 2026-04-07 β€” bye bestie, go slay your safeBags! πŸŽ€πŸŒΈπŸ’–

πŸ“¦ where this page comes from