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

GENERAL_NAME, GENERAL_NAME_set1_X509_NAME - GENERAL_NAME method routines

Description

GENERAL_NAME_set1_X509_NAME() creates a new GENERAL_NAME of type GEN_DIRNAME and populates it based on
       provided X509_NAME src which can be NULL.  tgt must not be NULL. If successful, *tgt will be set to point
       to the newly created GENERAL_NAME.

History

GENERAL_NAME_set1_X509_NAME() was added in OpenSSL 3.4.

Name

       GENERAL_NAME, GENERAL_NAME_set1_X509_NAME - GENERAL_NAME method routines

Return Values

GENERAL_NAME_set1_X509_NAME() return 1 on success, 0 on error.

Synopsis

        #include <openssl/x509v3.h>

        typedef struct GENERAL_NAME_st GENERAL_NAME;

        int GENERAL_NAME_set1_X509_NAME(GENERAL_NAME **tgt, const X509_NAME *src);