Skip to content

Commit

Permalink
ssl: provide Curl_ssl_backend even if no SSL library is available
Browse files Browse the repository at this point in the history
  • Loading branch information
dfandrich committed Aug 3, 2014
1 parent 595f5f0 commit cac1dd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/vtls/vtls.c
Expand Up @@ -249,6 +249,11 @@ unsigned int Curl_rand(struct SessionHandle *data)
return (r << 16) | ((r >> 16) & 0xFFFF);
}

int Curl_ssl_backend(void)
{
return (int)CURL_SSL_BACKEND;
}

#ifdef USE_SSL

/* "global" init done? */
Expand Down Expand Up @@ -697,9 +702,4 @@ void Curl_ssl_md5sum(unsigned char *tmp, /* input */
}
#endif

int Curl_ssl_backend(void)
{
return (int)CURL_SSL_BACKEND;
}

#endif /* USE_SSL */
3 changes: 2 additions & 1 deletion lib/vtls/vtls.h
Expand Up @@ -39,6 +39,8 @@ void Curl_free_ssl_config(struct ssl_config_data* sslc);

unsigned int Curl_rand(struct SessionHandle *);

int Curl_ssl_backend(void);

#ifdef USE_SSL
int Curl_ssl_init(void);
void Curl_ssl_cleanup(void);
Expand Down Expand Up @@ -96,7 +98,6 @@ void Curl_ssl_md5sum(unsigned char *tmp, /* input */
size_t tmplen,
unsigned char *md5sum, /* output */
size_t md5len);
int Curl_ssl_backend(void);

#define SSL_SHUTDOWN_TIMEOUT 10000 /* ms */

Expand Down

0 comments on commit cac1dd5

Please sign in to comment.