~ubuntu-branches/ubuntu/natty/curl/natty-security

« back to all changes in this revision

Viewing changes to lib/sslgen.h

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2010-06-20 13:56:28 UTC
  • mfrom: (3.4.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100620135628-e30tp9jldq6hq985
Tags: 7.21.0-1ubuntu1
* Merge from debian unstable.  Remaining changes: LP: #596334
  - Keep build deps in main:
    - Drop build dependencies: stunnel, libssh2-1-dev
    - Add build-dependency on openssh-server
    - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *                            | (__| |_| |  _ <| |___
8
8
 *                             \___|\___/|_| \_\_____|
9
9
 *
10
 
 * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
 
10
 * Copyright (C) 1998 - 2008, 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
 *
12
12
 * This software is licensed as described in the file COPYING, which
13
13
 * you should have received as part of this distribution. The terms
20
20
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
 * KIND, either express or implied.
22
22
 *
23
 
 * $Id: sslgen.h,v 1.18 2009-05-04 21:57:14 bagder Exp $
24
23
 ***************************************************************************/
25
24
 
26
25
bool Curl_ssl_config_matches(struct ssl_config_data* data,
45
44
/* Sets engine as default for all SSL operations */
46
45
CURLcode Curl_ssl_set_engine_default(struct SessionHandle *data);
47
46
struct curl_slist *Curl_ssl_engines_list(struct SessionHandle *data);
48
 
ssize_t Curl_ssl_send(struct connectdata *conn,
49
 
                      int sockindex,
50
 
                      const void *mem,
51
 
                      size_t len);
52
 
ssize_t Curl_ssl_recv(struct connectdata *conn, /* connection data */
53
 
                      int sockindex,            /* socketindex */
54
 
                      char *mem,                /* store read data here */
55
 
                      size_t len);              /* max amount to read */
 
47
 
56
48
/* init the SSL session ID cache */
57
49
CURLcode Curl_ssl_initsessions(struct SessionHandle *, long);
58
50
size_t Curl_ssl_version(char *buffer, size_t size);
87
79
#define Curl_ssl_set_engine(x,y) CURLE_FAILED_INIT
88
80
#define Curl_ssl_set_engine_default(x) CURLE_FAILED_INIT
89
81
#define Curl_ssl_engines_list(x) NULL
90
 
#define Curl_ssl_send(a,b,c,d) -1
91
 
#define Curl_ssl_recv(a,b,c,d) -1
 
82
#define Curl_ssl_send(a,b,c,d,e) -1
 
83
#define Curl_ssl_recv(a,b,c,d,e) -1
92
84
#define Curl_ssl_initsessions(x,y) CURLE_OK
93
85
#define Curl_ssl_version(x,y) 0
94
86
#define Curl_ssl_data_pending(x,y) 0