nssg.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_NSSG_H
00002 #define HEADER_CURL_NSSG_H
00003 /***************************************************************************
00004  *                                  _   _ ____  _
00005  *  Project                     ___| | | |  _ \| |
00006  *                             / __| | | | |_) | |
00007  *                            | (__| |_| |  _ <| |___
00008  *                             \___|\___/|_| \_\_____|
00009  *
00010  * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
00011  *
00012  * This software is licensed as described in the file COPYING, which
00013  * you should have received as part of this distribution. The terms
00014  * are also available at https://curl.haxx.se/docs/copyright.html.
00015  *
00016  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00017  * copies of the Software, and permit persons to whom the Software is
00018  * furnished to do so, under the terms of the COPYING file.
00019  *
00020  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00021  * KIND, either express or implied.
00022  *
00023  ***************************************************************************/
00024 #include "curl_setup.h"
00025 
00026 #ifdef USE_NSS
00027 /*
00028  * This header should only be needed to get included by vtls.c and nss.c
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 /* close a SSL connection */
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 /* initialize NSS library if not already */
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, /* input */
00055                      size_t tmplen,
00056                      unsigned char *md5sum, /* output */
00057                      size_t md5len);
00058 
00059 void Curl_nss_sha256sum(const unsigned char *tmp, /* input */
00060                      size_t tmplen,
00061                      unsigned char *sha256sum, /* output */
00062                      size_t sha256len);
00063 
00064 bool Curl_nss_cert_status_request(void);
00065 
00066 bool Curl_nss_false_start(void);
00067 
00068 /* Support HTTPS-proxy */
00069 #define HTTPS_PROXY_SUPPORT 1
00070 
00071 /* Set the API backend definition to NSS */
00072 #define CURL_SSL_BACKEND CURLSSLBACKEND_NSS
00073 
00074 /* this backend supports the CAPATH option */
00075 #define have_curlssl_ca_path 1
00076 
00077 /* this backend supports CURLOPT_CERTINFO */
00078 #define have_curlssl_certinfo 1
00079 
00080 /* this backends supports CURLOPT_PINNEDPUBLICKEY */
00081 #define have_curlssl_pinnedpubkey 1
00082 
00083 /* API setup for NSS */
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 /* NSS has its own session ID cache */
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 /* NSS has no shutdown function provided and thus always fail */
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 /* USE_NSS */
00108 #endif /* HEADER_CURL_NSSG_H */


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:05