2011-08-28 05:29:09 -04:00
|
|
|
#ifndef HEADER_CURL_GTLS_H
|
|
|
|
#define HEADER_CURL_GTLS_H
|
2005-04-07 11:27:13 -04:00
|
|
|
/***************************************************************************
|
|
|
|
* _ _ ____ _
|
|
|
|
* Project ___| | | | _ \| |
|
|
|
|
* / __| | | | |_) | |
|
|
|
|
* | (__| |_| | _ <| |___
|
|
|
|
* \___|\___/|_| \_\_____|
|
|
|
|
*
|
2017-01-12 11:41:26 -05:00
|
|
|
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2005-04-07 11:27:13 -04: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-02 18:19:02 -05:00
|
|
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
2005-04-07 11:27:13 -04: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.
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
2008-06-11 13:01:58 -04:00
|
|
|
|
2013-01-06 13:06:49 -05:00
|
|
|
#include "curl_setup.h"
|
2011-08-28 05:29:09 -04:00
|
|
|
|
2008-06-11 13:01:58 -04:00
|
|
|
#ifdef USE_GNUTLS
|
|
|
|
|
2013-01-03 20:50:28 -05:00
|
|
|
#include "urldata.h"
|
2011-08-28 05:29:09 -04:00
|
|
|
|
2005-04-07 11:27:13 -04:00
|
|
|
int Curl_gtls_init(void);
|
2017-06-25 07:06:54 -04:00
|
|
|
void Curl_gtls_cleanup(void);
|
2005-04-07 11:27:13 -04:00
|
|
|
CURLcode Curl_gtls_connect(struct connectdata *conn, int sockindex);
|
2010-04-16 16:43:01 -04:00
|
|
|
CURLcode Curl_gtls_connect_nonblocking(struct connectdata *conn,
|
|
|
|
int sockindex,
|
|
|
|
bool *done);
|
2016-11-16 12:49:15 -05:00
|
|
|
bool Curl_gtls_data_pending(const struct connectdata *conn,
|
|
|
|
int connindex);
|
2005-04-07 11:27:13 -04:00
|
|
|
|
2007-08-01 17:20:01 -04:00
|
|
|
/* close a SSL connection */
|
2007-09-26 22:45:58 -04:00
|
|
|
void Curl_gtls_close(struct connectdata *conn, int sockindex);
|
2005-04-07 11:27:13 -04:00
|
|
|
|
|
|
|
void Curl_gtls_session_free(void *ptr);
|
|
|
|
size_t Curl_gtls_version(char *buffer, size_t size);
|
2007-01-05 18:11:14 -05:00
|
|
|
int Curl_gtls_shutdown(struct connectdata *conn, int sockindex);
|
2017-01-12 11:41:26 -05:00
|
|
|
CURLcode Curl_gtls_random(struct Curl_easy *data,
|
|
|
|
unsigned char *entropy,
|
|
|
|
size_t length);
|
2012-06-26 08:52:46 -04:00
|
|
|
|
2014-06-16 07:21:02 -04:00
|
|
|
bool Curl_gtls_cert_status_request(void);
|
|
|
|
|
2017-06-22 10:45:34 -04:00
|
|
|
extern const struct Curl_ssl Curl_ssl_gnutls;
|
|
|
|
|
2015-01-17 11:03:49 -05:00
|
|
|
/* Set the API backend definition to GnuTLS */
|
|
|
|
#define CURL_SSL_BACKEND CURLSSLBACKEND_GNUTLS
|
|
|
|
|
2008-06-11 13:01:58 -04:00
|
|
|
#endif /* USE_GNUTLS */
|
2011-08-28 05:29:09 -04:00
|
|
|
#endif /* HEADER_CURL_GTLS_H */
|