From a53bda35e9a2acf4f2432b2d1b2d44497d68971e Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sat, 24 Jun 2017 00:25:29 +0200 Subject: vtls: fold the backend ID into the Curl_ssl structure Signed-off-by: Johannes Schindelin --- lib/vtls/vtls.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/vtls/vtls.c') diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c index bc72ad31e..3e52220fc 100644 --- a/lib/vtls/vtls.c +++ b/lib/vtls/vtls.c @@ -132,7 +132,11 @@ void Curl_free_primary_ssl_config(struct ssl_primary_config* sslc) int Curl_ssl_backend(void) { - return (int)CURL_SSL_BACKEND; +#ifdef USE_SSL + return Curl_ssl->id; +#else + return (int)CURLSSLBACKEND_NONE; +#endif } #ifdef USE_SSL -- cgit v1.2.3