diff options
-rw-r--r-- | lib/sslgen.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sslgen.c b/lib/sslgen.c index e7f0011b2..5e8f75332 100644 --- a/lib/sslgen.c +++ b/lib/sslgen.c @@ -499,6 +499,7 @@ int Curl_ssl_recv(struct connectdata *conn, /* connection data */ */ CURLcode Curl_ssl_initsessions(struct SessionHandle *data, long amount) { +#ifdef USE_SSL struct curl_ssl_session *session; if(data->state.session) @@ -517,6 +518,11 @@ CURLcode Curl_ssl_initsessions(struct SessionHandle *data, long amount) data->set.ssl.numsessions = amount; data->state.session = session; data->state.sessionage = 1; /* this is brand new */ +#else + /* without SSL, do nothing */ + (void)data; + (void)amount; +#endif return CURLE_OK; } |