Go to the documentation of this file.00001 #ifndef HEADER_CURL_DARWINSSL_H
00002 #define HEADER_CURL_DARWINSSL_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "curl_setup.h"
00026
00027 #ifdef USE_DARWINSSL
00028
00029 CURLcode Curl_darwinssl_connect(struct connectdata *conn, int sockindex);
00030
00031 CURLcode Curl_darwinssl_connect_nonblocking(struct connectdata *conn,
00032 int sockindex,
00033 bool *done);
00034
00035
00036 void Curl_darwinssl_close(struct connectdata *conn, int sockindex);
00037
00038 void Curl_darwinssl_session_free(void *ptr);
00039 size_t Curl_darwinssl_version(char *buffer, size_t size);
00040 int Curl_darwinssl_shutdown(struct connectdata *conn, int sockindex);
00041 int Curl_darwinssl_check_cxn(struct connectdata *conn);
00042 bool Curl_darwinssl_data_pending(const struct connectdata *conn,
00043 int connindex);
00044
00045 int Curl_darwinssl_random(unsigned char *entropy,
00046 size_t length);
00047 void Curl_darwinssl_md5sum(unsigned char *tmp,
00048 size_t tmplen,
00049 unsigned char *md5sum,
00050 size_t md5len);
00051 bool Curl_darwinssl_false_start(void);
00052
00053
00054 #define CURL_SSL_BACKEND CURLSSLBACKEND_DARWINSSL
00055
00056
00057 #define curlssl_init() (1)
00058 #define curlssl_cleanup() Curl_nop_stmt
00059 #define curlssl_connect Curl_darwinssl_connect
00060 #define curlssl_connect_nonblocking Curl_darwinssl_connect_nonblocking
00061 #define curlssl_session_free(x) Curl_darwinssl_session_free(x)
00062 #define curlssl_close_all(x) ((void)x)
00063 #define curlssl_close Curl_darwinssl_close
00064 #define curlssl_shutdown(x,y) 0
00065 #define curlssl_set_engine(x,y) ((void)x, (void)y, CURLE_NOT_BUILT_IN)
00066 #define curlssl_set_engine_default(x) ((void)x, CURLE_NOT_BUILT_IN)
00067 #define curlssl_engines_list(x) ((void)x, (struct curl_slist *)NULL)
00068 #define curlssl_version Curl_darwinssl_version
00069 #define curlssl_check_cxn Curl_darwinssl_check_cxn
00070 #define curlssl_data_pending(x,y) Curl_darwinssl_data_pending(x, y)
00071 #define curlssl_random(x,y,z) ((void)x, Curl_darwinssl_random(y,z))
00072 #define curlssl_md5sum(a,b,c,d) Curl_darwinssl_md5sum(a,b,c,d)
00073 #define curlssl_false_start() Curl_darwinssl_false_start()
00074
00075 #endif
00076 #endif