logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PKCS12_add_friendlyname_asc, PKCS12_add_friendlyname_utf8, PKCS12_add_friendlyname_uni - Functions to add

Description

PKCS12_add_friendlyname_asc() adds an ASCII string representation of the PKCS#9 friendlyName attribute to
       a PKCS#12 safeBag.

       PKCS12_add_friendlyname_utf8() adds a UTF-8 string representation of the PKCS#9 friendlyName attribute to
       a PKCS#12 safeBag.

       PKCS12_add_friendlyname_uni() adds a Unicode string representation of the PKCS#9 friendlyName attribute
       to a PKCS#12 safeBag.

       bag is the PKCS12_SAFEBAG to add the attribute to.

Name

       PKCS12_add_friendlyname_asc, PKCS12_add_friendlyname_utf8, PKCS12_add_friendlyname_uni - Functions to add
       the friendlyname attribute to a PKCS#12 safeBag

Return Values

       Returns 1 for success or 0 for failure.

See Also

PKCS12_get_friendlyname(3)

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);