mirror of
https://github.com/curl/curl.git
synced 2026-04-23 17:32:13 +03:00
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
2 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue