efl_net_ssl_conn-openssl: fix dlsym() for X509_check_ip_asc.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Fri, 9 Dec 2016 08:27:40 +0000 (06:27 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Fri, 9 Dec 2016 15:47:03 +0000 (13:47 -0200)
At least in ArchLinux the function has no "_" in the symbol name,
matching perfectly what's in the header.

If in other systems it misses such symbol, then check for both.

src/lib/ecore_con/efl_net_ssl_conn-openssl.c

index 9572a3478f0f5feccc1325ce01176843b5553f5c..050664d7299f18f000ef6d5d7970a73313c4bf17 100644 (file)
@@ -438,7 +438,7 @@ _X509_check_init(void)
    if (_sym_X509_check_host) return;
 #ifdef HAVE_DLOPEN
    _sym_X509_check_host =  dlsym(NULL, "X509_check_host");
-   _sym_X509_check_ip_asc = dlsym(NULL, "_X509_check_ip_asc");
+   _sym_X509_check_ip_asc = dlsym(NULL, "X509_check_ip_asc");
    if (_sym_X509_check_host && _sym_X509_check_ip_asc) return;
 #endif
    _sym_X509_check_host = _replace_X509_check_host;