mirror of
https://github.com/moparisthebest/curl
synced 2025-03-01 01:41:50 -05:00
A few prototypes shouldn't be defined if SSL is disabled.
This commit is contained in:
parent
6983ba3225
commit
035a2e5479
27
lib/sslgen.h
27
lib/sslgen.h
@ -60,6 +60,20 @@ bool Curl_ssl_data_pending(const struct connectdata *conn,
|
|||||||
int connindex);
|
int connindex);
|
||||||
int Curl_ssl_check_cxn(struct connectdata *conn);
|
int Curl_ssl_check_cxn(struct connectdata *conn);
|
||||||
void Curl_ssl_free_certinfo(struct SessionHandle *data);
|
void Curl_ssl_free_certinfo(struct SessionHandle *data);
|
||||||
|
|
||||||
|
/* Functions to be used by SSL library adaptation functions */
|
||||||
|
|
||||||
|
/* extract a session ID */
|
||||||
|
int Curl_ssl_getsessionid(struct connectdata *conn,
|
||||||
|
void **ssl_sessionid,
|
||||||
|
size_t *idsize) /* set 0 if unknown */;
|
||||||
|
/* add a new session ID */
|
||||||
|
CURLcode Curl_ssl_addsessionid(struct connectdata *conn,
|
||||||
|
void *ssl_sessionid,
|
||||||
|
size_t idsize);
|
||||||
|
|
||||||
|
#define SSL_SHUTDOWN_TIMEOUT 10000 /* ms */
|
||||||
|
|
||||||
#else
|
#else
|
||||||
/* When SSL support is not present, just define away these function calls */
|
/* When SSL support is not present, just define away these function calls */
|
||||||
#define Curl_ssl_init() 1
|
#define Curl_ssl_init() 1
|
||||||
@ -82,15 +96,4 @@ void Curl_ssl_free_certinfo(struct SessionHandle *data);
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* extract a session ID */
|
#endif /* USE_SSL */
|
||||||
int Curl_ssl_getsessionid(struct connectdata *conn,
|
|
||||||
void **ssl_sessionid,
|
|
||||||
size_t *idsize) /* set 0 if unknown */;
|
|
||||||
/* add a new session ID */
|
|
||||||
CURLcode Curl_ssl_addsessionid(struct connectdata *conn,
|
|
||||||
void *ssl_sessionid,
|
|
||||||
size_t idsize);
|
|
||||||
|
|
||||||
#define SSL_SHUTDOWN_TIMEOUT 10000 /* ms */
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user