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

NAME

6       X509_new, X509_free - X509 certificate ASN1 allocation functions
7

SYNOPSIS

9        X509 *X509_new(void);
10        void X509_free(X509 *a);
11

DESCRIPTION

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

RETURN VALUES

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

SEE ALSO

28       ERR_get_error(3), d2i_X509(3)
29

HISTORY

31       X509_new() and X509_free() are available in all versions of SSLeay and
32       OpenSSL.
33
34
35
360.9.8b                            2002-11-12                       X509_new(3)
Impressum