darwinssl.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_DARWINSSL_H
00002 #define HEADER_CURL_DARWINSSL_H
00003 /***************************************************************************
00004  *                                  _   _ ____  _
00005  *  Project                     ___| | | |  _ \| |
00006  *                             / __| | | | |_) | |
00007  *                            | (__| |_| |  _ <| |___
00008  *                             \___|\___/|_| \_\_____|
00009  *
00010  * Copyright (C) 2012 - 2014, Nick Zitzmann, <nickzman@gmail.com>.
00011  * Copyright (C) 2012 - 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 #include "curl_setup.h"
00026 
00027 #ifdef USE_DARWINSSL
00028 
00029 CURLcode Curl_darwinssl_connect(struct connectdata *conn, int sockindex);
00030 
00031 CURLcode Curl_darwinssl_connect_nonblocking(struct connectdata *conn,
00032                                             int sockindex,
00033                                             bool *done);
00034 
00035 /* close a SSL connection */
00036 void Curl_darwinssl_close(struct connectdata *conn, int sockindex);
00037 
00038 void Curl_darwinssl_session_free(void *ptr);
00039 size_t Curl_darwinssl_version(char *buffer, size_t size);
00040 int Curl_darwinssl_shutdown(struct connectdata *conn, int sockindex);
00041 int Curl_darwinssl_check_cxn(struct connectdata *conn);
00042 bool Curl_darwinssl_data_pending(const struct connectdata *conn,
00043                                  int connindex);
00044 
00045 int Curl_darwinssl_random(unsigned char *entropy,
00046                           size_t length);
00047 void Curl_darwinssl_md5sum(unsigned char *tmp, /* input */
00048                            size_t tmplen,
00049                            unsigned char *md5sum, /* output */
00050                            size_t md5len);
00051 bool Curl_darwinssl_false_start(void);
00052 
00053 /* Set the API backend definition to SecureTransport */
00054 #define CURL_SSL_BACKEND CURLSSLBACKEND_DARWINSSL
00055 
00056 /* API setup for SecureTransport */
00057 #define curlssl_init() (1)
00058 #define curlssl_cleanup() Curl_nop_stmt
00059 #define curlssl_connect Curl_darwinssl_connect
00060 #define curlssl_connect_nonblocking Curl_darwinssl_connect_nonblocking
00061 #define curlssl_session_free(x) Curl_darwinssl_session_free(x)
00062 #define curlssl_close_all(x) ((void)x)
00063 #define curlssl_close Curl_darwinssl_close
00064 #define curlssl_shutdown(x,y) 0
00065 #define curlssl_set_engine(x,y) ((void)x, (void)y, CURLE_NOT_BUILT_IN)
00066 #define curlssl_set_engine_default(x) ((void)x, CURLE_NOT_BUILT_IN)
00067 #define curlssl_engines_list(x) ((void)x, (struct curl_slist *)NULL)
00068 #define curlssl_version Curl_darwinssl_version
00069 #define curlssl_check_cxn Curl_darwinssl_check_cxn
00070 #define curlssl_data_pending(x,y) Curl_darwinssl_data_pending(x, y)
00071 #define curlssl_random(x,y,z) ((void)x, Curl_darwinssl_random(y,z))
00072 #define curlssl_md5sum(a,b,c,d) Curl_darwinssl_md5sum(a,b,c,d)
00073 #define curlssl_false_start() Curl_darwinssl_false_start()
00074 
00075 #endif /* USE_DARWINSSL */
00076 #endif /* HEADER_CURL_DARWINSSL_H */


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