aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-08 09:25:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-08 09:25:48 +0000
commit2fc70e2c5d6cf45de85119106db96699556abd60 (patch)
tree53c0d8baac03232d853a36032a746f45625148f4
parent7ae3f0e70c90dc1c602d95a5898344548dbc8872 (diff)
re-arrange some code to prevent warnings on unreachable code
-rw-r--r--lib/sslgen.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/sslgen.c b/lib/sslgen.c
index fc1db457e..1945789a3 100644
--- a/lib/sslgen.c
+++ b/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. */