
ERR_free_strings() should not be called expicitly - we should leave auto-deinit to clean this up instead. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
=pod
|
|
|
|
=head1 NAME
|
|
|
|
ERR_load_crypto_strings, SSL_load_error_strings, ERR_free_strings -
|
|
load and free error strings
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
Deprecated:
|
|
|
|
#include <openssl/err.h>
|
|
|
|
#if OPENSSL_API_COMPAT < 0x10100000L
|
|
# define ERR_load_crypto_strings() \
|
|
OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)
|
|
# define ERR_free_strings()
|
|
#endif
|
|
|
|
#include <openssl/ssl.h>
|
|
|
|
#if OPENSSL_API_COMPAT < 0x10100000L
|
|
# define SSL_load_error_strings() \
|
|
OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \
|
|
| OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)
|
|
#endif
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
All of the following functions are deprecated from OpenSSL 1.1.0. No explicit
|
|
initialisation or de-initialisation is necessary. See L<OPENSSL_init_crypto(3)>
|
|
and L<OPENSSL_init_ssl(3)>.
|
|
|
|
ERR_load_crypto_strings() registers the error strings for all
|
|
B<libcrypto> functions. SSL_load_error_strings() does the same,
|
|
but also registers the B<libssl> error strings.
|
|
|
|
In versions of OpenSSL prior to 1.1.0 ERR_free_strings() freed all previously
|
|
loaded error strings. However from OpenSSL 1.1.0 it does nothing.
|
|
|
|
=head1 RETURN VALUES
|
|
|
|
ERR_load_crypto_strings(), SSL_load_error_strings() and
|
|
ERR_free_strings() return no values.
|
|
|
|
=head1 SEE ALSO
|
|
|
|
L<err(3)>, L<ERR_error_string(3)>
|
|
|
|
=head1 HISTORY
|
|
|
|
The ERR_load_crypto_strings(), SSL_load_error_strings(), and
|
|
ERR_free_strings() functions were deprecated in OpenSSL 1.1.0 by
|
|
OPENSSL_init_crypto() and OPENSSL_init_ssl().
|
|
|
|
=cut
|