gtls.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_GTLS_H
00002 #define HEADER_CURL_GTLS_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 
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  /* close a SSL connection */
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, /* input */
00050                       size_t tmplen,
00051                       unsigned char *md5sum, /* output */
00052                       size_t md5len);
00053 void Curl_gtls_sha256sum(const unsigned char *tmp, /* input */
00054                       size_t tmplen,
00055                       unsigned char *sha256sum, /* output */
00056                       size_t sha256len);
00057 
00058 bool Curl_gtls_cert_status_request(void);
00059 
00060 /* Support HTTPS-proxy */
00061 #define HTTPS_PROXY_SUPPORT 1
00062 
00063 /* Set the API backend definition to GnuTLS */
00064 #define CURL_SSL_BACKEND CURLSSLBACKEND_GNUTLS
00065 
00066 /* this backend supports the CAPATH option */
00067 #define have_curlssl_ca_path 1
00068 
00069 /* this backend supports CURLOPT_CERTINFO */
00070 #define have_curlssl_certinfo 1
00071 
00072 /* this backend supports CURLOPT_PINNEDPUBLICKEY */
00073 #define have_curlssl_pinnedpubkey 1
00074 
00075 /* API setup for GnuTLS */
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 /* USE_GNUTLS */
00096 #endif /* HEADER_CURL_GTLS_H */


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