2011-03-01 10:02:47 +08:00
|
|
|
#ifndef HEADER_CURL_CYASSL_H
|
|
|
|
#define HEADER_CURL_CYASSL_H
|
|
|
|
/***************************************************************************
|
|
|
|
* _ _ ____ _
|
|
|
|
* Project ___| | | | _ \| |
|
|
|
|
* / __| | | | |_) | |
|
|
|
|
* | (__| |_| | _ <| |___
|
|
|
|
* \___|\___/|_| \_\_____|
|
|
|
|
*
|
2017-01-13 00:41:26 +08:00
|
|
|
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2011-03-01 10:02:47 +08:00
|
|
|
*
|
|
|
|
* This software is licensed as described in the file COPYING, which
|
|
|
|
* you should have received as part of this distribution. The terms
|
2016-02-03 07:19:02 +08:00
|
|
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
2011-03-01 10:02:47 +08:00
|
|
|
*
|
|
|
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
* copies of the Software, and permit persons to whom the Software is
|
|
|
|
* furnished to do so, under the terms of the COPYING file.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
2013-01-07 02:06:49 +08:00
|
|
|
#include "curl_setup.h"
|
2011-03-01 10:02:47 +08:00
|
|
|
|
|
|
|
#ifdef USE_CYASSL
|
|
|
|
|
|
|
|
CURLcode Curl_cyassl_connect(struct connectdata *conn, int sockindex);
|
2015-03-17 20:41:49 +08:00
|
|
|
bool Curl_cyassl_data_pending(const struct connectdata* conn, int connindex);
|
2011-03-01 10:02:47 +08:00
|
|
|
int Curl_cyassl_shutdown(struct connectdata* conn, int sockindex);
|
|
|
|
|
|
|
|
/* close a SSL connection */
|
|
|
|
void Curl_cyassl_close(struct connectdata *conn, int sockindex);
|
|
|
|
|
|
|
|
void Curl_cyassl_session_free(void *ptr);
|
|
|
|
size_t Curl_cyassl_version(char *buffer, size_t size);
|
|
|
|
int Curl_cyassl_shutdown(struct connectdata *conn, int sockindex);
|
2011-03-08 21:09:20 +08:00
|
|
|
int Curl_cyassl_init(void);
|
|
|
|
CURLcode Curl_cyassl_connect_nonblocking(struct connectdata *conn,
|
|
|
|
int sockindex,
|
|
|
|
bool *done);
|
2017-01-13 00:41:26 +08:00
|
|
|
CURLcode Curl_cyassl_random(struct Curl_easy *data,
|
|
|
|
unsigned char *entropy,
|
|
|
|
size_t length);
|
2011-03-01 10:02:47 +08:00
|
|
|
|
2017-06-22 22:45:34 +08:00
|
|
|
extern const struct Curl_ssl Curl_ssl_cyassl;
|
|
|
|
|
2017-02-22 06:00:17 +08:00
|
|
|
/* Set the API backend definition to CyaSSL */
|
2015-01-18 00:03:49 +08:00
|
|
|
#define CURL_SSL_BACKEND CURLSSLBACKEND_CYASSL
|
|
|
|
|
2011-03-01 10:02:47 +08:00
|
|
|
#endif /* USE_CYASSL */
|
|
|
|
#endif /* HEADER_CURL_CYASSL_H */
|