Subversion Repositories pspware

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
340 tyranid 1
#ifndef __SSLGEN_H
2
#define __SSLGEN_H
3
/***************************************************************************
4
 *                                  _   _ ____  _
5
 *  Project                     ___| | | |  _ \| |
6
 *                             / __| | | | |_) | |
7
 *                            | (__| |_| |  _ <| |___
8
 *                             \___|\___/|_| \_\_____|
9
 *
10
 * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
11
 *
12
 * This software is licensed as described in the file COPYING, which
13
 * you should have received as part of this distribution. The terms
14
 * are also available at http://curl.haxx.se/docs/copyright.html.
15
 *
16
 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17
 * copies of the Software, and permit persons to whom the Software is
18
 * furnished to do so, under the terms of the COPYING file.
19
 *
20
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
 * KIND, either express or implied.
22
 *
23
 * $Id: sslgen.h,v 1.1 2005/04/07 15:27:14 bagder Exp $
24
 ***************************************************************************/
25
 
26
bool Curl_ssl_config_matches(struct ssl_config_data* data,
27
                             struct ssl_config_data* needle);
28
bool Curl_clone_ssl_config(struct ssl_config_data* source,
29
                           struct ssl_config_data* dest);
30
void Curl_free_ssl_config(struct ssl_config_data* sslc);
31
 
32
int Curl_ssl_init(void);
33
void Curl_ssl_cleanup(void);
34
CURLcode Curl_ssl_connect(struct connectdata *conn, int sockindex);
35
void Curl_ssl_close(struct connectdata *conn);
36
/* tell the SSL stuff to close down all open information regarding
37
   connections (and thus session ID caching etc) */
38
void Curl_ssl_close_all(struct SessionHandle *data);
39
CURLcode Curl_ssl_set_engine(struct SessionHandle *data, const char *engine);
40
/* Sets engine as default for all SSL operations */
41
CURLcode Curl_ssl_set_engine_default(struct SessionHandle *data);
42
int Curl_ssl_send(struct connectdata *conn,
43
                  int sockindex,
44
                  void *mem,
45
                  size_t len);
46
int Curl_ssl_recv(struct connectdata *conn, /* connection data */
47
                  int sockindex,            /* socketindex */
48
                  char *mem,                /* store read data here */
49
                  size_t len);              /* max amount to read */
50
 
51
/* init the SSL session ID cache */
52
CURLcode Curl_ssl_initsessions(struct SessionHandle *, long);
53
/* extract a session ID */
54
int Curl_ssl_getsessionid(struct connectdata *conn,
55
                          void **ssl_sessionid,
56
                          size_t *idsize) /* set 0 if unknown */;
57
/* add a new session ID */
58
CURLcode Curl_ssl_addsessionid(struct connectdata *conn,
59
                               void *ssl_sessionid,
60
                               size_t idsize);
61
 
62
 
63
struct curl_slist *Curl_ssl_engines_list(struct SessionHandle *data);
64
 
65
size_t Curl_ssl_version(char *buffer, size_t size);
66
 
67
#if !defined(USE_SSL) && !defined(SSLGEN_C)
68
/* set up blank macros for none-SSL builds */
69
#define Curl_ssl_close_all(x)
70
#endif
71
 
72
#endif