axtls.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_AXTLS_H
00002 #define HEADER_CURL_AXTLS_H
00003 /***************************************************************************
00004  *                                  _   _ ____  _
00005  *  Project                     ___| | | |  _ \| |
00006  *                             / __| | | | |_) | |
00007  *                            | (__| |_| |  _ <| |___
00008  *                             \___|\___/|_| \_\_____|
00009  *
00010  * Copyright (C) 2010, DirecTV, Contact: Eric Hu <ehu@directv.com>
00011  * Copyright (C) 2010 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
00012  *
00013  * This software is licensed as described in the file COPYING, which
00014  * you should have received as part of this distribution. The terms
00015  * are also available at https://curl.haxx.se/docs/copyright.html.
00016  *
00017  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00018  * copies of the Software, and permit persons to whom the Software is
00019  * furnished to do so, under the terms of the COPYING file.
00020  *
00021  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00022  * KIND, either express or implied.
00023  *
00024  ***************************************************************************/
00025 
00026 #ifdef USE_AXTLS
00027 #include "curl/curl.h"
00028 #include "urldata.h"
00029 
00030 int Curl_axtls_init(void);
00031 int Curl_axtls_cleanup(void);
00032 CURLcode Curl_axtls_connect(struct connectdata *conn, int sockindex);
00033 CURLcode Curl_axtls_connect_nonblocking(
00034     struct connectdata *conn,
00035     int sockindex,
00036     bool *done);
00037 
00038  /* close a SSL connection */
00039 void Curl_axtls_close(struct connectdata *conn, int sockindex);
00040 
00041 void Curl_axtls_session_free(void *ptr);
00042 size_t Curl_axtls_version(char *buffer, size_t size);
00043 int Curl_axtls_shutdown(struct connectdata *conn, int sockindex);
00044 int Curl_axtls_check_cxn(struct connectdata *conn);
00045 int Curl_axtls_random(struct Curl_easy *data,
00046                       unsigned char *entropy,
00047                       size_t length);
00048 
00049 /* Set the API backend definition to axTLS */
00050 #define CURL_SSL_BACKEND CURLSSLBACKEND_AXTLS
00051 
00052 /* API setup for axTLS */
00053 #define curlssl_init Curl_axtls_init
00054 #define curlssl_cleanup Curl_axtls_cleanup
00055 #define curlssl_connect Curl_axtls_connect
00056 #define curlssl_connect_nonblocking Curl_axtls_connect_nonblocking
00057 #define curlssl_session_free(x)  Curl_axtls_session_free(x)
00058 #define curlssl_close_all(x) ((void)x)
00059 #define curlssl_close Curl_axtls_close
00060 #define curlssl_shutdown(x,y) Curl_axtls_shutdown(x,y)
00061 #define curlssl_set_engine(x,y) ((void)x, (void)y, CURLE_NOT_BUILT_IN)
00062 #define curlssl_set_engine_default(x) ((void)x, CURLE_NOT_BUILT_IN)
00063 #define curlssl_engines_list(x) ((void)x, (struct curl_slist *)NULL)
00064 #define curlssl_version Curl_axtls_version
00065 #define curlssl_check_cxn(x) Curl_axtls_check_cxn(x)
00066 #define curlssl_data_pending(x,y) ((void)x, (void)y, 0)
00067 #define curlssl_random(x,y,z) Curl_axtls_random(x,y,z)
00068 
00069 #endif /* USE_AXTLS */
00070 #endif /* HEADER_CURL_AXTLS_H */
00071 


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