PKCS12_GET_FRIENDLYNAME(3ossl)
π NAME π
PKCS12_get_friendlyname β the glow-up function that grabs the friendlyname attribute off a PKCS#12 safeBag π
(and yes bestie, this is the 3ossl page, so you know it's the real OpenSSL one β¨)
πΈ SYNOPSIS πΈ
#include <openssl/pkcs12.h>
char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag);
π¦ DESCRIPTION π¦
okay so picture this: PKCS12_get_friendlyname() reaches in and retrieves a UTF-8 string representation of the PKCS#9 friendlyName attribute, but only for a PKCS#12 safeBag item. that's it, that's the whole vibe π
bag is the PKCS12_SAFEBAG you want to pull the attribute from. literally just hand it your safeBag and it does the thing π«Ά
β RETURN VALUES β
you get back a UTF-8 string, or NULL if the attribute was either not present or an error occurred. so like, NULL is doing double duty here, no cap π
heads up bestie: the returned string is allocated by OpenSSL, so you have to free it yourself. it's giving "borrowed the aux cord but you're responsible for unplugging it" π§
π SEE ALSO π
PKCS12_add_friendlyname_asc(3)β the other half of this friendship, go read it too π
π 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>.
okay that's the whole page, mwah π this was 3.5.6, dated 2026-04-07, living its best life as PKCS12_GET_FRIENDLYNAME(3ossl) β slay, go free your strings, periodt π§ββοΈβ¨π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms