MirOS Manual: OpenSSL_add_ssl_algorithms(3), SSLeay_add_ssl_algorithms(3), SSL_library_init(3)


SSL_LIBRARY_INIT(3)          OpenSSL          SSL_LIBRARY_INIT(3)

NAME

     SSL_library_init, OpenSSL_add_ssl_algorithms,
     SSLeay_add_ssl_algorithms - initialize SSL library by regis-
     tering algorithms

SYNOPSIS

      #include <openssl/ssl.h>

      int SSL_library_init(void);
      #define OpenSSL_add_ssl_algorithms()    SSL_library_init()
      #define SSLeay_add_ssl_algorithms()     SSL_library_init()

DESCRIPTION

     SSL_library_init() registers the available ciphers and dig-
     ests.

     OpenSSL_add_ssl_algorithms() and SSLeay_add_ssl_algorithms()
     are synonyms for SSL_library_init().

NOTES

     SSL_library_init() must be called before any other action
     takes place.

WARNING

     SSL_library_init() only registers ciphers. Another important
     initialization is the seeding of the PRNG (Pseudo Random
     Number Generator), which has to be performed separately.

EXAMPLES

     A typical TLS/SSL application will start with the library
     initialization, will provide readable error messages and
     will seed the PRNG.

      SSL_load_error_strings();                /* readable error messages */
      SSL_library_init();                      /* initialize library */
      actions_to_seed_PRNG();

RETURN VALUES

     SSL_library_init() always returns "1", so it is safe to dis-
     card the return value.

SEE ALSO

     ssl(3), SSL_load_error_strings(3), RAND_add(3)

MirOS BSD #10-current      2005-02-05                           1

Generated on 2012-02-20 02:47:02 by $MirOS: src/scripts/roff2htm,v 1.70 2011/12/03 18:21:12 tg Exp $

These manual pages and other documentation are copyrighted by their respective writers; their source is available at our CVSweb, AnonCVS, and other mirrors. The rest is Copyright © 2002‒2011 The MirOS Project, Germany.
This product includes material provided by Thorsten Glaser.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.