1X509_new(3)                         OpenSSL                        X509_new(3)
2
3
4

NAME

6       X509_new, X509_free - X509 certificate ASN1 allocation functions
7

SYNOPSIS

9        #include <openssl/x509.h>
10
11        X509 *X509_new(void);
12        void X509_free(X509 *a);
13

DESCRIPTION

15       The X509 ASN1 allocation routines, allocate and free an X509 structure,
16       which represents an X509 certificate.
17
18       X509_new() allocates and initializes a X509 structure.
19
20       X509_free() frees up the X509 structure a.
21

RETURN VALUES

23       If the allocation fails, X509_new() returns NULL and sets an error code
24       that can be obtained by ERR_get_error(3).  Otherwise it returns a
25       pointer to the newly allocated structure.
26
27       X509_free() returns no value.
28

SEE ALSO

30       ERR_get_error(3), d2i_X509(3)
31

HISTORY

33       X509_new() and X509_free() are available in all versions of SSLeay and
34       OpenSSL.
35
36
37
381.0.2o                            2018-03-27                       X509_new(3)
Impressum