vtls: make Curl_ssl_backend() return the enum type curl_sslbackend
To fix the icc warning enumerated type mixed with another type Closes #9179
This commit is contained in:
parent
3f5b66c13d
commit
336f7cd5af
@ -219,13 +219,13 @@ void Curl_free_primary_ssl_config(struct ssl_primary_config *sslc)
|
||||
static int multissl_setup(const struct Curl_ssl *backend);
|
||||
#endif
|
||||
|
||||
int Curl_ssl_backend(void)
|
||||
curl_sslbackend Curl_ssl_backend(void)
|
||||
{
|
||||
#ifdef USE_SSL
|
||||
multissl_setup(NULL);
|
||||
return Curl_ssl->info.id;
|
||||
#else
|
||||
return (int)CURLSSLBACKEND_NONE;
|
||||
return CURLSSLBACKEND_NONE;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -200,7 +200,7 @@ void Curl_free_primary_ssl_config(struct ssl_primary_config *sslc);
|
||||
ssl_connect_2_writing. */
|
||||
int Curl_ssl_getsock(struct connectdata *conn, curl_socket_t *socks);
|
||||
|
||||
int Curl_ssl_backend(void);
|
||||
curl_sslbackend Curl_ssl_backend(void);
|
||||
|
||||
#ifdef USE_SSL
|
||||
int Curl_ssl_init(void);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user