Skip to content

Commit

Permalink
[openssl] drop unrequired OPENSSL_config
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Sep 19, 2017
1 parent 4d48095 commit b41c58d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions libknet/crypto_openssl.c
Expand Up @@ -36,7 +36,6 @@ static void *openssl_lib;
* symbols remapping
*/
void (*_int_OPENSSL_add_all_algorithms_noconf)(void);
void (*_int_OPENSSL_config)(const char *config_name);

void (*_int_ERR_load_crypto_strings)(void);
unsigned long (*_int_ERR_get_error)(void);
Expand Down Expand Up @@ -76,7 +75,6 @@ void (*_int_EVP_cleanup)(void);
static void clean_openssl_syms(void)
{
_int_OPENSSL_add_all_algorithms_noconf = NULL;
_int_OPENSSL_config = NULL;
_int_ERR_load_crypto_strings = NULL;
_int_ERR_get_error = NULL;
_int_ERR_error_string_n = NULL;
Expand Down Expand Up @@ -113,14 +111,6 @@ static int opensslcrypto_remap_symbols(knet_handle_t knet_h)
goto out;
}

_int_OPENSSL_config = dlsym(openssl_lib, "OPENSSL_config");
if (!_int_OPENSSL_config) {
error = dlerror();
log_err(knet_h, KNET_SUB_OPENSSLCRYPTO, "unable to map OPENSSL_config: %s", error);
err = -1;
goto out;
}

_int_ERR_load_crypto_strings = dlsym(openssl_lib, "ERR_load_crypto_strings");
if (!_int_ERR_load_crypto_strings) {
error = dlerror();
Expand Down Expand Up @@ -329,7 +319,6 @@ int opensslcrypto_load_lib(

(*_int_ERR_load_crypto_strings)();
(*_int_OPENSSL_add_all_algorithms_noconf)();
(*_int_OPENSSL_config)(NULL);
}

out:
Expand Down

0 comments on commit b41c58d

Please sign in to comment.