diff options
Diffstat (limited to 'lib/ssluse.h')
-rw-r--r-- | lib/ssluse.h | 46 |
1 files changed, 31 insertions, 15 deletions
diff --git a/lib/ssluse.h b/lib/ssluse.h index 25278eba6..00345317d 100644 --- a/lib/ssluse.h +++ b/lib/ssluse.h @@ -22,27 +22,43 @@ * * $Id$ ***************************************************************************/ + +/* + * This header should only be needed to get included by sslgen.c and ssluse.c + */ + #include "urldata.h" -CURLcode Curl_SSLConnect(struct connectdata *conn, int sockindex); +CURLcode Curl_ossl_connect(struct connectdata *conn, int sockindex); +void Curl_ossl_close(struct connectdata *conn); /* close a SSL connection */ +/* tell OpenSSL to close down all open information regarding connections (and + thus session ID caching etc) */ +int Curl_ossl_close_all(struct SessionHandle *data); +/* Sets an OpenSSL engine */ +CURLcode Curl_ossl_set_engine(struct SessionHandle *data, const char *engine); -int Curl_SSL_init(void); /* Global SSL init */ -void Curl_SSL_cleanup(void); /* Global SSL cleanup */ +/* function provided for the generic SSL-layer, called when a session id + should be freed */ +void Curl_ossl_session_free(void *ptr); -/* init the SSL session ID cache */ -CURLcode Curl_SSL_InitSessions(struct SessionHandle *, long); -void Curl_SSL_Close(struct connectdata *conn); /* close a SSL connection */ +/* Sets engine as default for all SSL operations */ +CURLcode Curl_ossl_set_engine_default(struct SessionHandle *data); -/* tell the SSL stuff to close down all open information regarding - connections (and thus session ID caching etc) */ -int Curl_SSL_Close_All(struct SessionHandle *data); +/* Build list of OpenSSL engines */ +struct curl_slist *Curl_ossl_engines_list(struct SessionHandle *data); -/* Sets an OpenSSL engine */ -CURLcode Curl_SSL_set_engine(struct SessionHandle *data, const char *engine); +int Curl_ossl_init(void); +void Curl_ossl_cleanup(void); -/* Sets above engine as default for all SSL operations */ -CURLcode Curl_SSL_set_engine_default(struct SessionHandle *data); +int Curl_ossl_send(struct connectdata *conn, + int sockindex, + void *mem, + size_t len); +ssize_t Curl_ossl_recv(struct connectdata *conn, /* connection data */ + int num, /* socketindex */ + char *buf, /* store read data here */ + size_t buffersize, /* max amount to read */ + bool *wouldblock); -/* Build list of OpenSSL engines */ -struct curl_slist *Curl_SSL_engines_list(struct SessionHandle *data); +size_t Curl_ossl_version(char *buffer, size_t size); #endif |