loudmouth/lm-ssl-openssl.c
changeset 732 8588b5fd084a
parent 719 647363d68e7a
equal deleted inserted replaced
731:bf83410db875 732:8588b5fd084a
   360 {
   360 {
   361     static gboolean initialized = FALSE;
   361     static gboolean initialized = FALSE;
   362     /*const char *cert_file = NULL;*/
   362     /*const char *cert_file = NULL;*/
   363 
   363 
   364     if (!initialized) {
   364     if (!initialized) {
       
   365 #if OPENSSL_VERSION_NUMBER < 0x10100000L
   365         SSL_library_init();
   366         SSL_library_init();
   366         /* FIXME: Is this needed when we are not in debug? */
   367         /* FIXME: Is this needed when we are not in debug? */
   367         SSL_load_error_strings();
   368         SSL_load_error_strings();
       
   369 #endif
   368         initialized = TRUE;
   370         initialized = TRUE;
   369     }
   371     }
   370 
   372 
   371     /* don't use TLSv1_client_method() because otherwise we don't get
   373     /* don't use TLSv1_client_method() because otherwise we don't get
   372      * connections to TLS1_1 and TLS1_2 only servers
   374      * connections to TLS1_1 and TLS1_2 only servers