Skip to content
Snippets Groups Projects
Commit 2fc70e2c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

re-arrange some code to prevent warnings on unreachable code

parent 7ae3f0e7
No related branches found
No related tags found
No related merge requests found
...@@ -170,10 +170,9 @@ int Curl_ssl_init(void) ...@@ -170,10 +170,9 @@ int Curl_ssl_init(void)
return Curl_gtls_init(); return Curl_gtls_init();
#else #else
/* no SSL support */ /* no SSL support */
return 1;
#endif /* USE_GNUTLS */ #endif /* USE_GNUTLS */
#endif /* USE_SSLEAY */ #endif /* USE_SSLEAY */
return 1;
} }
...@@ -384,12 +383,14 @@ CURLcode Curl_ssl_set_engine(struct SessionHandle *data, const char *engine) ...@@ -384,12 +383,14 @@ CURLcode Curl_ssl_set_engine(struct SessionHandle *data, const char *engine)
/* FIX: add code here */ /* FIX: add code here */
(void)data; (void)data;
(void)engine; (void)engine;
return CURLE_FAILED_INIT;
#else #else
/* no SSL layer */
(void)data; (void)data;
(void)engine; (void)engine;
return CURLE_FAILED_INIT;
#endif /* USE_GNUTLS */ #endif /* USE_GNUTLS */
#endif /* USE_SSLEAY */ #endif /* USE_SSLEAY */
return CURLE_FAILED_INIT;
} }
/* Selects an (Open?)SSL crypto engine /* Selects an (Open?)SSL crypto engine
...@@ -402,11 +403,13 @@ CURLcode Curl_ssl_set_engine_default(struct SessionHandle *data) ...@@ -402,11 +403,13 @@ CURLcode Curl_ssl_set_engine_default(struct SessionHandle *data)
#ifdef USE_GNUTLS #ifdef USE_GNUTLS
/* FIX: add code here */ /* FIX: add code here */
(void)data; (void)data;
return CURLE_FAILED_INIT;
#else #else
/* No SSL layer */
(void)data; (void)data;
return CURLE_FAILED_INIT;
#endif /* USE_GNUTLS */ #endif /* USE_GNUTLS */
#endif /* USE_SSLEAY */ #endif /* USE_SSLEAY */
return CURLE_FAILED_INIT;
} }
/* Return list of OpenSSL crypto engine names. */ /* Return list of OpenSSL crypto engine names. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment