~ubuntu-branches/ubuntu/lucid/curl/lucid-security

« back to all changes in this revision

Viewing changes to lib/nssg.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-04-29 11:10:29 UTC
  • mfrom: (3.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090429111029-2j5eiyokfw2bw049
Tags: 7.19.4-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop build dependencies: stunnel, libdb4.6-dev, libssh2-1-dev
  - Add build-dependency on openssh-server
  - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Call automake-1.9 with --add-missing --copy --force
* drop debian/patches/security_CVE-2009-0037.patch 
  - this patch is part of 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *                            | (__| |_| |  _ <| |___
8
8
 *                             \___|\___/|_| \_\_____|
9
9
 *
10
 
 * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
 
10
 * Copyright (C) 1998 - 2008, 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: 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
 ***************************************************************************/
25
25
 
 
26
#ifdef USE_NSS
26
27
/*
27
28
 * This header should only be needed to get included by sslgen.c and nss.c
28
29
 */
44
45
 
45
46
int Curl_nss_send(struct connectdata *conn,
46
47
                  int sockindex,
47
 
                  void *mem,
 
48
                  const void *mem,
48
49
                  size_t len);
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);
58
59
 
 
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
 
64
 
 
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)
 
79
 
 
80
#endif /* USE_NSS */
59
81
#endif