~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to lib/axtls.h

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2011-02-28 19:35:36 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20110228193536-p3a9jawxxofcsz7o
Tags: upstream-7.21.4
ImportĀ upstreamĀ versionĀ 7.21.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __AXTLS_H
 
2
#define __AXTLS_H
 
3
/***************************************************************************
 
4
 *                                  _   _ ____  _
 
5
 *  Project                     ___| | | |  _ \| |
 
6
 *                             / __| | | | |_) | |
 
7
 *                            | (__| |_| |  _ <| |___
 
8
 *                             \___|\___/|_| \_\_____|
 
9
 *
 
10
 * Copyright (C) 2010, DirecTV
 
11
 * contact: Eric Hu <ehu@directv.com>
 
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 http://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
 
 
30
int Curl_axtls_init(void);
 
31
int Curl_axtls_cleanup(void);
 
32
CURLcode Curl_axtls_connect(struct connectdata *conn, int sockindex);
 
33
 
 
34
/* tell axTLS to close down all open information regarding connections (and
 
35
   thus session ID caching etc) */
 
36
void Curl_axtls_close_all(struct SessionHandle *data);
 
37
 
 
38
 /* close a SSL connection */
 
39
void Curl_axtls_close(struct connectdata *conn, int sockindex);
 
40
 
 
41
void Curl_axtls_session_free(void *ptr);
 
42
size_t Curl_axtls_version(char *buffer, size_t size);
 
43
int Curl_axtls_shutdown(struct connectdata *conn, int sockindex);
 
44
int Curl_axtls_check_cxn(struct connectdata *conn);
 
45
 
 
46
/* API setup for axTLS */
 
47
#define curlssl_init Curl_axtls_init
 
48
#define curlssl_cleanup Curl_axtls_cleanup
 
49
#define curlssl_connect Curl_axtls_connect
 
50
#define curlssl_session_free(x)  Curl_axtls_session_free(x)
 
51
#define curlssl_close_all Curl_axtls_close_all
 
52
#define curlssl_close Curl_axtls_close
 
53
#define curlssl_shutdown(x,y) Curl_axtls_shutdown(x,y)
 
54
#define curlssl_set_engine(x,y) (x=x, y=y, CURLE_FAILED_INIT)
 
55
#define curlssl_set_engine_default(x) (x=x, CURLE_FAILED_INIT)
 
56
#define curlssl_engines_list(x) (x=x, (struct curl_slist *)NULL)
 
57
#define curlssl_version Curl_axtls_version
 
58
#define curlssl_check_cxn(x) Curl_axtls_check_cxn(x)
 
59
#define curlssl_data_pending(x,y) (x=x, y=y, 0)
 
60
 
 
61
#endif /* USE_AXTLS */
 
62
#endif