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

« back to all changes in this revision

Viewing changes to lib/curl_sspi.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:
 
1
#ifndef HEADER_CURL_SSPI_H
 
2
#define HEADER_CURL_SSPI_H
 
3
/***************************************************************************
 
4
 *                                  _   _ ____  _
 
5
 *  Project                     ___| | | |  _ \| |
 
6
 *                             / __| | | | |_) | |
 
7
 *                            | (__| |_| |  _ <| |___
 
8
 *                             \___|\___/|_| \_\_____|
 
9
 *
 
10
 * Copyright (C) 1998 - 2009, 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: curl_sspi.h,v 1.3 2009-01-30 01:37:37 yangtse Exp $
 
24
 ***************************************************************************/
 
25
 
 
26
#include "setup.h"
 
27
 
 
28
#ifdef USE_WINDOWS_SSPI
 
29
 
 
30
#include <curl/curl.h>
 
31
 
 
32
/* 
 
33
 * When including the folowing three headers, it is mandatory to define either
 
34
 * SECURITY_WIN32 or SECURITY_KERNEL, indicating who is compiling the code.
 
35
 */
 
36
 
 
37
#undef SECURITY_WIN32
 
38
#undef SECURITY_KERNEL
 
39
#define SECURITY_WIN32 1
 
40
#include <security.h>
 
41
#include <sspi.h>
 
42
#include <rpc.h>
 
43
 
 
44
/* Provide some definitions missing in MinGW's headers */
 
45
 
 
46
#ifndef SEC_I_CONTEXT_EXPIRED
 
47
# define SEC_I_CONTEXT_EXPIRED ((HRESULT)0x00090317L)
 
48
#endif
 
49
#ifndef SEC_E_BUFFER_TOO_SMALL
 
50
# define SEC_E_BUFFER_TOO_SMALL ((HRESULT)0x80090321L)
 
51
#endif
 
52
#ifndef SEC_E_CONTEXT_EXPIRED
 
53
# define SEC_E_CONTEXT_EXPIRED ((HRESULT)0x80090317L)
 
54
#endif
 
55
#ifndef SEC_E_CRYPTO_SYSTEM_INVALID
 
56
# define SEC_E_CRYPTO_SYSTEM_INVALID ((HRESULT)0x80090337L)
 
57
#endif
 
58
#ifndef SEC_E_MESSAGE_ALTERED
 
59
# define SEC_E_MESSAGE_ALTERED ((HRESULT)0x8009030FL)
 
60
#endif
 
61
#ifndef SEC_E_OUT_OF_SEQUENCE
 
62
# define SEC_E_OUT_OF_SEQUENCE ((HRESULT)0x80090310L)
 
63
#endif
 
64
 
 
65
CURLcode Curl_sspi_global_init(void);
 
66
void Curl_sspi_global_cleanup(void);
 
67
 
 
68
/* Forward-declaration of global variables defined in curl_sspi.c */
 
69
 
 
70
extern HMODULE s_hSecDll;
 
71
extern PSecurityFunctionTableA s_pSecFn;
 
72
 
 
73
#endif /* USE_WINDOWS_SSPI */
 
74
#endif /* HEADER_CURL_SSPI_H */