Go to the documentation of this file.00001 #ifndef HEADER_CURL_NSSG_H
00002 #define HEADER_CURL_NSSG_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "curl_setup.h"
00025
00026 #ifdef USE_NSS
00027
00028
00029
00030
00031 #include "urldata.h"
00032
00033 CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex);
00034 CURLcode Curl_nss_connect_nonblocking(struct connectdata *conn,
00035 int sockindex,
00036 bool *done);
00037
00038 void Curl_nss_close(struct connectdata *conn, int sockindex);
00039
00040 int Curl_nss_init(void);
00041 void Curl_nss_cleanup(void);
00042
00043 size_t Curl_nss_version(char *buffer, size_t size);
00044 int Curl_nss_check_cxn(struct connectdata *cxn);
00045 int Curl_nss_seed(struct Curl_easy *data);
00046
00047
00048 CURLcode Curl_nss_force_init(struct Curl_easy *data);
00049
00050 int Curl_nss_random(struct Curl_easy *data,
00051 unsigned char *entropy,
00052 size_t length);
00053
00054 void Curl_nss_md5sum(unsigned char *tmp,
00055 size_t tmplen,
00056 unsigned char *md5sum,
00057 size_t md5len);
00058
00059 void Curl_nss_sha256sum(const unsigned char *tmp,
00060 size_t tmplen,
00061 unsigned char *sha256sum,
00062 size_t sha256len);
00063
00064 bool Curl_nss_cert_status_request(void);
00065
00066 bool Curl_nss_false_start(void);
00067
00068
00069 #define HTTPS_PROXY_SUPPORT 1
00070
00071
00072 #define CURL_SSL_BACKEND CURLSSLBACKEND_NSS
00073
00074
00075 #define have_curlssl_ca_path 1
00076
00077
00078 #define have_curlssl_certinfo 1
00079
00080
00081 #define have_curlssl_pinnedpubkey 1
00082
00083
00084 #define curlssl_init Curl_nss_init
00085 #define curlssl_cleanup Curl_nss_cleanup
00086 #define curlssl_connect Curl_nss_connect
00087 #define curlssl_connect_nonblocking Curl_nss_connect_nonblocking
00088
00089
00090 #define curlssl_session_free(x) Curl_nop_stmt
00091 #define curlssl_close_all(x) ((void)x)
00092 #define curlssl_close Curl_nss_close
00093
00094 #define curlssl_shutdown(x,y) ((void)x, (void)y, 1)
00095 #define curlssl_set_engine(x,y) ((void)x, (void)y, CURLE_NOT_BUILT_IN)
00096 #define curlssl_set_engine_default(x) ((void)x, CURLE_NOT_BUILT_IN)
00097 #define curlssl_engines_list(x) ((void)x, (struct curl_slist *)NULL)
00098 #define curlssl_version Curl_nss_version
00099 #define curlssl_check_cxn(x) Curl_nss_check_cxn(x)
00100 #define curlssl_data_pending(x,y) ((void)x, (void)y, 0)
00101 #define curlssl_random(x,y,z) Curl_nss_random(x,y,z)
00102 #define curlssl_md5sum(a,b,c,d) Curl_nss_md5sum(a,b,c,d)
00103 #define curlssl_sha256sum(a,b,c,d) Curl_nss_sha256sum(a,b,c,d)
00104 #define curlssl_cert_status_request() Curl_nss_cert_status_request()
00105 #define curlssl_false_start() Curl_nss_false_start()
00106
00107 #endif
00108 #endif