7
7
* | (__| |_| | _ <| |___
8
8
* \___|\___/|_| \_\_____|
10
* Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
10
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
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.
23
* $Id: nssg.h,v 1.3 2007-09-27 02:45:58 danf Exp $
23
* $Id: nssg.h,v 1.7 2008-10-17 22:33:08 danf Exp $
24
24
***************************************************************************/
27
28
* This header should only be needed to get included by sslgen.c and nss.c
45
46
int Curl_nss_send(struct connectdata *conn,
49
50
ssize_t Curl_nss_recv(struct connectdata *conn, /* connection data */
50
51
int num, /* socketindex */
56
57
int Curl_nss_check_cxn(struct connectdata *cxn);
57
58
int Curl_nss_seed(struct SessionHandle *data);
60
/* API setup for NSS */
61
#define curlssl_init Curl_nss_init
62
#define curlssl_cleanup Curl_nss_cleanup
63
#define curlssl_connect Curl_nss_connect
65
/* NSS has its own session ID cache */
66
#define curlssl_session_free(x)
67
#define curlssl_close_all Curl_nss_close_all
68
#define curlssl_close Curl_nss_close
69
/* NSS has no shutdown function provided and thus always fail */
70
#define curlssl_shutdown(x,y) (x=x, y=y, 1)
71
#define curlssl_set_engine(x,y) (x=x, y=y, CURLE_FAILED_INIT)
72
#define curlssl_set_engine_default(x) (x=x, CURLE_FAILED_INIT)
73
#define curlssl_engines_list(x) (x=x, (struct curl_slist *)NULL)
74
#define curlssl_send Curl_nss_send
75
#define curlssl_recv Curl_nss_recv
76
#define curlssl_version Curl_nss_version
77
#define curlssl_check_cxn(x) Curl_nss_check_cxn(x)
78
#define curlssl_data_pending(x,y) (x=x, y=y, 0)