Go to the documentation of this file.00001 #ifndef HEADER_CURL_GTLS_H
00002 #define HEADER_CURL_GTLS_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_GNUTLS
00028
00029 #include "urldata.h"
00030
00031 int Curl_gtls_init(void);
00032 int Curl_gtls_cleanup(void);
00033 CURLcode Curl_gtls_connect(struct connectdata *conn, int sockindex);
00034 CURLcode Curl_gtls_connect_nonblocking(struct connectdata *conn,
00035 int sockindex,
00036 bool *done);
00037 bool Curl_gtls_data_pending(const struct connectdata *conn,
00038 int connindex);
00039
00040
00041 void Curl_gtls_close(struct connectdata *conn, int sockindex);
00042
00043 void Curl_gtls_session_free(void *ptr);
00044 size_t Curl_gtls_version(char *buffer, size_t size);
00045 int Curl_gtls_shutdown(struct connectdata *conn, int sockindex);
00046 int Curl_gtls_random(struct Curl_easy *data,
00047 unsigned char *entropy,
00048 size_t length);
00049 void Curl_gtls_md5sum(unsigned char *tmp,
00050 size_t tmplen,
00051 unsigned char *md5sum,
00052 size_t md5len);
00053 void Curl_gtls_sha256sum(const unsigned char *tmp,
00054 size_t tmplen,
00055 unsigned char *sha256sum,
00056 size_t sha256len);
00057
00058 bool Curl_gtls_cert_status_request(void);
00059
00060
00061 #define HTTPS_PROXY_SUPPORT 1
00062
00063
00064 #define CURL_SSL_BACKEND CURLSSLBACKEND_GNUTLS
00065
00066
00067 #define have_curlssl_ca_path 1
00068
00069
00070 #define have_curlssl_certinfo 1
00071
00072
00073 #define have_curlssl_pinnedpubkey 1
00074
00075
00076 #define curlssl_init Curl_gtls_init
00077 #define curlssl_cleanup Curl_gtls_cleanup
00078 #define curlssl_connect Curl_gtls_connect
00079 #define curlssl_connect_nonblocking Curl_gtls_connect_nonblocking
00080 #define curlssl_session_free(x) Curl_gtls_session_free(x)
00081 #define curlssl_close_all(x) ((void)x)
00082 #define curlssl_close Curl_gtls_close
00083 #define curlssl_shutdown(x,y) Curl_gtls_shutdown(x,y)
00084 #define curlssl_set_engine(x,y) ((void)x, (void)y, CURLE_NOT_BUILT_IN)
00085 #define curlssl_set_engine_default(x) ((void)x, CURLE_NOT_BUILT_IN)
00086 #define curlssl_engines_list(x) ((void)x, (struct curl_slist *)NULL)
00087 #define curlssl_version Curl_gtls_version
00088 #define curlssl_check_cxn(x) ((void)x, -1)
00089 #define curlssl_data_pending(x,y) Curl_gtls_data_pending(x,y)
00090 #define curlssl_random(x,y,z) Curl_gtls_random(x,y,z)
00091 #define curlssl_md5sum(a,b,c,d) Curl_gtls_md5sum(a,b,c,d)
00092 #define curlssl_sha256sum(a,b,c,d) Curl_gtls_sha256sum(a,b,c,d)
00093 #define curlssl_cert_status_request() Curl_gtls_cert_status_request()
00094
00095 #endif
00096 #endif