3 /***************************************************************************
5 * Project ___| | | | _ \| |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
10 * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
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.
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.
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
23 * $Id: ssluse.h,v 1.2 2007/03/15 19:22:13 andy Exp $
24 ***************************************************************************/
27 * This header should only be needed to get included by sslgen.c and ssluse.c
31 CURLcode
Curl_ossl_connect(struct connectdata
*conn
, int sockindex
);
32 CURLcode
Curl_ossl_connect_nonblocking(struct connectdata
*conn
,
35 void Curl_ossl_close(struct connectdata
*conn
); /* close a SSL connection */
36 /* tell OpenSSL to close down all open information regarding connections (and
37 thus session ID caching etc) */
38 int Curl_ossl_close_all(struct SessionHandle
*data
);
39 /* Sets an OpenSSL engine */
40 CURLcode
Curl_ossl_set_engine(struct SessionHandle
*data
, const char *engine
);
42 /* function provided for the generic SSL-layer, called when a session id
44 void Curl_ossl_session_free(void *ptr
);
46 /* Sets engine as default for all SSL operations */
47 CURLcode
Curl_ossl_set_engine_default(struct SessionHandle
*data
);
49 /* Build list of OpenSSL engines */
50 struct curl_slist
*Curl_ossl_engines_list(struct SessionHandle
*data
);
52 int Curl_ossl_init(void);
53 void Curl_ossl_cleanup(void);
55 ssize_t
Curl_ossl_send(struct connectdata
*conn
,
59 ssize_t
Curl_ossl_recv(struct connectdata
*conn
, /* connection data */
60 int num
, /* socketindex */
61 char *buf
, /* store read data here */
62 size_t buffersize
, /* max amount to read */
65 size_t Curl_ossl_version(char *buffer
, size_t size
);
66 int Curl_ossl_check_cxn(struct connectdata
*cxn
);
67 int Curl_ossl_seed(struct SessionHandle
*data
);
69 int Curl_ossl_shutdown(struct connectdata
*conn
, int sockindex
);