mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
re-arrange some code to prevent warnings on unreachable code
This commit is contained in:
parent
7ae3f0e70c
commit
2fc70e2c5d
11
lib/sslgen.c
11
lib/sslgen.c
@ -170,10 +170,9 @@ int Curl_ssl_init(void)
|
||||
return Curl_gtls_init();
|
||||
#else
|
||||
/* no SSL support */
|
||||
return 1;
|
||||
#endif /* USE_GNUTLS */
|
||||
#endif /* USE_SSLEAY */
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@ -384,12 +383,14 @@ CURLcode Curl_ssl_set_engine(struct SessionHandle *data, const char *engine)
|
||||
/* FIX: add code here */
|
||||
(void)data;
|
||||
(void)engine;
|
||||
return CURLE_FAILED_INIT;
|
||||
#else
|
||||
/* no SSL layer */
|
||||
(void)data;
|
||||
(void)engine;
|
||||
return CURLE_FAILED_INIT;
|
||||
#endif /* USE_GNUTLS */
|
||||
#endif /* USE_SSLEAY */
|
||||
return CURLE_FAILED_INIT;
|
||||
}
|
||||
|
||||
/* Selects an (Open?)SSL crypto engine
|
||||
@ -402,11 +403,13 @@ CURLcode Curl_ssl_set_engine_default(struct SessionHandle *data)
|
||||
#ifdef USE_GNUTLS
|
||||
/* FIX: add code here */
|
||||
(void)data;
|
||||
return CURLE_FAILED_INIT;
|
||||
#else
|
||||
/* No SSL layer */
|
||||
(void)data;
|
||||
return CURLE_FAILED_INIT;
|
||||
#endif /* USE_GNUTLS */
|
||||
#endif /* USE_SSLEAY */
|
||||
return CURLE_FAILED_INIT;
|
||||
}
|
||||
|
||||
/* Return list of OpenSSL crypto engine names. */
|
||||
|
Loading…
Reference in New Issue
Block a user