PKCS12_GET_FRIENDLYNAME(3ossl)
β¨ PKCS12_GET_FRIENDLYNAME β¨
okay bestie, welcome to PKCS12_get_friendlyname(3ossl) β yes that's the manual name, it's a whole mouthful, we're saying it together π this is the OpenSSL girlie that pulls the friendly little name tag off a PKCS#12 safeBag. yes, safeBags have names. yes, they're friendly. slay.
πΈ NAME πΈ
PKCS12_get_friendlyname β retrieve the friendlyname attribute from a PKCS#12 safeBag π
π SYNOPSIS π
#include <openssl/pkcs12.h>
char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag);
π¦ DESCRIPTION π¦
so like. PKCS12_get_friendlyname() retrieves a UTF-8 string representation of the PKCS#9 friendlyName attribute for a PKCS#12 safeBag item. that's the vibe. that's the whole thing.
bag is the PKCS12_SAFEBAG you wanna retrieve the attribute from. give her the bag, get the name. iconic behaviour honestly π«Ά
π RETURN VALUES π
you get a UTF-8 string back β or NULL if the attribute was either not present or an error occurred π (both roads lead to NULL, which is a little rude of it, ngl).
β οΈ bestie listen. the returned string is allocated by OpenSSL, and it is your job to free it. not OpenSSL's. yours. free it. don't just leave it vibing in memory forever, that's not the move π
π SEE ALSO π
PKCS12_add_friendlyname_asc(3)β go add one, and then come back here and read it π
π COPYRIGHT π
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>.
and that's the whole page, no crumbs left π this was OpenSSL 3.5.9, dated 2026-09-29, and you just read PKCS12_GET_FRIENDLYNAME(3ossl) β go free that string, bestie, mwah π
β¨
π¦ where this page comes from
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms