~ubuntu-branches/ubuntu/precise/curl/precise-proposed

« back to all changes in this revision

Viewing changes to lib/curl_gssapi.h

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2011-11-25 17:30:45 UTC
  • mfrom: (3.4.23 sid)
  • Revision ID: package-import@ubuntu.com-20111125173045-2l3ni88jv16kath0
Tags: 7.22.0-3ubuntu1
* Merge from Debian unstable, remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Add new libcurl3-udeb package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef HEADER_CURL_GSSAPI_H
 
2
#define HEADER_CURL_GSSAPI_H
 
3
/***************************************************************************
 
4
 *                                  _   _ ____  _
 
5
 *  Project                     ___| | | |  _ \| |
 
6
 *                             / __| | | | |_) | |
 
7
 *                            | (__| |_| |  _ <| |___
 
8
 *                             \___|\___/|_| \_\_____|
 
9
 *
 
10
 * Copyright (C) 2011, 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
 ***************************************************************************/
 
24
 
 
25
#include "setup.h"
 
26
#include "urldata.h"
 
27
 
 
28
#ifdef HAVE_GSSAPI
 
29
 
 
30
#ifdef HAVE_GSSGNU
 
31
#  include <gss.h>
 
32
#elif defined HAVE_GSSMIT
 
33
   /* MIT style */
 
34
#  include <gssapi/gssapi.h>
 
35
#  include <gssapi/gssapi_generic.h>
 
36
#  include <gssapi/gssapi_krb5.h>
 
37
#else
 
38
   /* Heimdal-style */
 
39
#  include <gssapi.h>
 
40
#endif
 
41
 
 
42
 
 
43
/* Common method for using gss api */
 
44
 
 
45
OM_uint32 Curl_gss_init_sec_context(
 
46
    struct SessionHandle *data,
 
47
    OM_uint32 * minor_status,
 
48
    gss_ctx_id_t * context,
 
49
    gss_name_t target_name,
 
50
    gss_channel_bindings_t input_chan_bindings,
 
51
    gss_buffer_t input_token,
 
52
    gss_buffer_t output_token,
 
53
    OM_uint32 * ret_flags);
 
54
 
 
55
#endif /* HAVE_GSSAPI */
 
56
 
 
57
#endif /* HEADER_CURL_GSSAPI_H */