sslutils: Address compiler warning

SSLv23_client_method() and friends return a pointer to a const-qualified
SSL_METHOD.
This commit is contained in:
Holger Weiss 2016-11-21 09:31:08 +01:00
parent 6d0c111631
commit 8b727baec5

View file

@ -48,7 +48,7 @@ int np_net_ssl_init_with_hostname_and_version(int sd, char *host_name, int versi
}
int np_net_ssl_init_with_hostname_version_and_cert(int sd, char *host_name, int version, char *cert, char *privkey) {
SSL_METHOD *method = NULL;
const SSL_METHOD *method = NULL;
long options = 0;
switch (version) {