source: UsbWattMeter/trunk/curl-7.47.1/lib/vtls/axtls.h@ 164

Last change on this file since 164 was 164, checked in by coas-nagasima, 6 years ago

TOPPERS/ECNLサンプルアプリ「USB充電器電力計」を追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr
File size: 2.8 KB
Line 
1#ifndef HEADER_CURL_AXTLS_H
2#define HEADER_CURL_AXTLS_H
3/***************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
9 *
10 * Copyright (C) 2010, DirecTV, Contact: Eric Hu <ehu@directv.com>
11 * Copyright (C) 2010 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
12 *
13 * This software is licensed as described in the file COPYING, which
14 * you should have received as part of this distribution. The terms
15 * are also available at https://curl.haxx.se/docs/copyright.html.
16 *
17 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
18 * copies of the Software, and permit persons to whom the Software is
19 * furnished to do so, under the terms of the COPYING file.
20 *
21 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22 * KIND, either express or implied.
23 *
24 ***************************************************************************/
25
26#ifdef USE_AXTLS
27#include "curl/curl.h"
28#include "urldata.h"
29
30int Curl_axtls_init(void);
31int Curl_axtls_cleanup(void);
32CURLcode Curl_axtls_connect(struct connectdata *conn, int sockindex);
33CURLcode Curl_axtls_connect_nonblocking(
34 struct connectdata *conn,
35 int sockindex,
36 bool *done);
37
38 /* close a SSL connection */
39void Curl_axtls_close(struct connectdata *conn, int sockindex);
40
41void Curl_axtls_session_free(void *ptr);
42size_t Curl_axtls_version(char *buffer, size_t size);
43int Curl_axtls_shutdown(struct connectdata *conn, int sockindex);
44int Curl_axtls_check_cxn(struct connectdata *conn);
45int Curl_axtls_random(struct SessionHandle *data,
46 unsigned char *entropy,
47 size_t length);
48
49/* Set the API backend definition to axTLS */
50#define CURL_SSL_BACKEND CURLSSLBACKEND_AXTLS
51
52/* API setup for axTLS */
53#define curlssl_init Curl_axtls_init
54#define curlssl_cleanup Curl_axtls_cleanup
55#define curlssl_connect Curl_axtls_connect
56#define curlssl_connect_nonblocking Curl_axtls_connect_nonblocking
57#define curlssl_session_free(x) Curl_axtls_session_free(x)
58#define curlssl_close_all(x) ((void)x)
59#define curlssl_close Curl_axtls_close
60#define curlssl_shutdown(x,y) Curl_axtls_shutdown(x,y)
61#define curlssl_set_engine(x,y) ((void)x, (void)y, CURLE_NOT_BUILT_IN)
62#define curlssl_set_engine_default(x) ((void)x, CURLE_NOT_BUILT_IN)
63#define curlssl_engines_list(x) ((void)x, (struct curl_slist *)NULL)
64#define curlssl_version Curl_axtls_version
65#define curlssl_check_cxn(x) Curl_axtls_check_cxn(x)
66#define curlssl_data_pending(x,y) ((void)x, (void)y, 0)
67#define curlssl_random(x,y,z) Curl_axtls_random(x,y,z)
68
69#endif /* USE_AXTLS */
70#endif /* HEADER_CURL_AXTLS_H */
71
Note: See TracBrowser for help on using the repository browser.