gskit.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_GSKIT_H
00002 #define HEADER_CURL_GSKIT_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 /*
00027  * This header should only be needed to get included by vtls.c and gskit.c
00028  */
00029 
00030 #include "urldata.h"
00031 
00032 #ifdef USE_GSKIT
00033 int Curl_gskit_init(void);
00034 void Curl_gskit_cleanup(void);
00035 CURLcode Curl_gskit_connect(struct connectdata *conn, int sockindex);
00036 CURLcode Curl_gskit_connect_nonblocking(struct connectdata *conn,
00037                                         int sockindex, bool *done);
00038 void Curl_gskit_close(struct connectdata *conn, int sockindex);
00039 int Curl_gskit_shutdown(struct connectdata *conn, int sockindex);
00040 
00041 size_t Curl_gskit_version(char *buffer, size_t size);
00042 int Curl_gskit_check_cxn(struct connectdata *cxn);
00043 
00044 /* Support HTTPS-proxy */
00045 /* TODO: add '#define HTTPS_PROXY_SUPPORT 1' and fix test #1014 (if need) */
00046 
00047 /* Set the API backend definition to GSKit */
00048 #define CURL_SSL_BACKEND CURLSSLBACKEND_GSKIT
00049 
00050 /* this backend supports CURLOPT_CERTINFO */
00051 #define have_curlssl_certinfo 1
00052 
00053 /* API setup for GSKit */
00054 #define curlssl_init Curl_gskit_init
00055 #define curlssl_cleanup Curl_gskit_cleanup
00056 #define curlssl_connect Curl_gskit_connect
00057 #define curlssl_connect_nonblocking Curl_gskit_connect_nonblocking
00058 
00059 /*  No session handling for GSKit */
00060 #define curlssl_session_free(x) Curl_nop_stmt
00061 #define curlssl_close_all(x) ((void)x)
00062 #define curlssl_close Curl_gskit_close
00063 #define curlssl_shutdown(x,y) Curl_gskit_shutdown(x,y)
00064 #define curlssl_set_engine(x,y) CURLE_NOT_BUILT_IN
00065 #define curlssl_set_engine_default(x) CURLE_NOT_BUILT_IN
00066 #define curlssl_engines_list(x) NULL
00067 #define curlssl_version Curl_gskit_version
00068 #define curlssl_check_cxn(x) Curl_gskit_check_cxn(x)
00069 #define curlssl_data_pending(x,y) 0
00070 #define curlssl_random(x,y,z) (x=x, y=y, z=z, CURLE_NOT_BUILT_IN)
00071 
00072 #endif /* USE_GSKIT */
00073 
00074 #endif /* HEADER_CURL_GSKIT_H */


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