src/lib/openssl.c
int init_crypto (void)
{
   int stat = 0;

#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
   if ((stat = openssl_init_threads()) != 0) {
      berrno be;
      Jmsg1(NULL, M_ABORT, 0,
        _("Unable to init OpenSSL threading: ERR=%s\n"), be.bstrerror(stat));
   }

   /* Load libssl and libcrypto human-readable error strings */
   SSL_load_error_strings();

   /* Initialize OpenSSL SSL  library */
   SSL_library_init();

   /* Register OpenSSL ciphers and digests */
   OpenSSL_add_all_algorithms();
#endif

   if (!openssl_seed_prng()) {
      Jmsg0(NULL, M_ERROR_TERM, 0, _("Failed to seed OpenSSL PRNG\n"));
   }

   crypto_initialized = true;

   return stat;
}
/*
 * Perform global initialization of OpenSSL
 * This function is not thread safe.
 *  Returns: 0 on success
 *           errno on failure
 */
Perform global initialization of OpenSSL
This function is not thread safe.
Returns: 0 on success
errno on failure
Perform global initialization of OpenSSL This function is not thread safe . Returns : 0 on success errno on failure
int init_crypto (void)
{
   int stat = 0;
#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
   if ((stat = openssl_init_threads()) != 0) {
      berrno be;
      Jmsg1(NULL, M_ABORT, 0,
        _("Unable to init OpenSSL threading: ERR=%s\n"), be.bstrerror(stat));
   }
   SSL_load_error_strings();
   SSL_library_init();
   OpenSSL_add_all_algorithms();
#endif
   if (!openssl_seed_prng()) {
      Jmsg0(NULL, M_ERROR_TERM, 0, _("Failed to seed OpenSSL PRNG\n"));
   }
   crypto_initialized = true;
   return stat;
}
int init_crypto ( void ) { int stat = 0 ; #if ( OPENSSL_VERSION_NUMBER < 0x10100000L ) || defined ( LIBRESSL_VERSION_NUMBER ) if ( ( stat = openssl_init_threads ( ) ) != 0 ) { berrno be ; Jmsg1 ( NULL , M_ABORT , 0 , _ ( " \n " ) , be . bstrerror ( stat ) ) ; } SSL_load_error_strings ( ) ; SSL_library_init ( ) ; OpenSSL_add_all_algorithms ( ) ; #endif if ( ! openssl_seed_prng ( ) ) { Jmsg0 ( NULL , M_ERROR_TERM , 0 , _ ( " \n " ) ) ; } crypto_initialized = true ; return stat ; }
Perform global initialization of OpenSSL
 This function is not thread safe.
Perform global initialization of OpenSSL This function is not thread safe .
/* Load libssl and libcrypto human-readable error strings */ /* Initialize OpenSSL SSL  library */ /* Register OpenSSL ciphers and digests */