~ubuntu-branches/ubuntu/raring/curl/raring-updates

« back to all changes in this revision

Viewing changes to include/curl/curl.h

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2011-11-13 21:07:32 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: package-import@ubuntu.com-20111113210732-bk5n25x2tu7aplur
Tags: upstream-7.22.0
ImportĀ upstreamĀ versionĀ 7.22.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
#include <sys/types.h>
56
56
#include <time.h>
57
57
 
58
 
#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__GNUC__) && \
59
 
  !defined(__CYGWIN__) || defined(__MINGW32__)
60
 
#if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H))
 
58
#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__CYGWIN__)
 
59
#if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H) || defined(__LWIP_OPT_H__))
61
60
/* The check above prevents the winsock2 inclusion if winsock.h already was
62
61
   included, since they can't co-exist without problems */
63
62
#include <winsock2.h>
64
63
#include <ws2tcpip.h>
65
64
#endif
66
 
#else
 
65
#endif
67
66
 
68
67
/* HP-UX systems version 9, 10 and 11 lack sys/select.h and so does oldish
69
 
   libc5-based Linux systems. Only include it on system that are known to
 
68
   libc5-based Linux systems. Only include it on systems that are known to
70
69
   require it! */
71
70
#if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
72
71
    defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
75
74
#include <sys/select.h>
76
75
#endif
77
76
 
78
 
#ifndef _WIN32_WCE
 
77
#if !defined(WIN32) && !defined(_WIN32_WCE)
79
78
#include <sys/socket.h>
80
79
#endif
 
80
 
81
81
#if !defined(WIN32) && !defined(__WATCOMC__) && !defined(__VXWORKS__)
82
82
#include <sys/time.h>
83
83
#endif
84
 
#include <sys/types.h>
85
 
#endif
86
84
 
87
85
#ifdef __BEOS__
88
86
#include <support/SupportDefs.h>
122
120
 
123
121
#ifndef curl_socket_typedef
124
122
/* socket typedef */
125
 
#ifdef WIN32
 
123
#if defined(WIN32) && !defined(__LWIP_OPT_H__)
126
124
typedef SOCKET curl_socket_t;
127
125
#define CURL_SOCKET_BAD INVALID_SOCKET
128
126
#else
600
598
#define CURLAUTH_GSSNEGOTIATE (1<<2)  /* GSS-Negotiate */
601
599
#define CURLAUTH_NTLM         (1<<3)  /* NTLM */
602
600
#define CURLAUTH_DIGEST_IE    (1<<4)  /* Digest with IE flavour */
 
601
#define CURLAUTH_NTLM_WB      (1<<5)  /* NTLM delegating to winbind helper */
603
602
#define CURLAUTH_ONLY         (1<<31) /* used together with a single other
604
603
                                         type to force no auth or just that
605
604
                                         single type */
614
613
#define CURLSSH_AUTH_KEYBOARD  (1<<3) /* keyboard interactive */
615
614
#define CURLSSH_AUTH_DEFAULT CURLSSH_AUTH_ANY
616
615
 
 
616
#define CURLGSSAPI_DELEGATION_NONE        0      /* no delegation (default) */
 
617
#define CURLGSSAPI_DELEGATION_POLICY_FLAG (1<<0) /* if permitted by policy */
 
618
#define CURLGSSAPI_DELEGATION_FLAG        (1<<1) /* delegate always */
 
619
 
617
620
#define CURL_ERROR_SIZE 256
618
621
 
619
622
struct curl_khkey {
916
919
  /* send linked-list of post-transfer QUOTE commands */
917
920
  CINIT(POSTQUOTE, OBJECTPOINT, 39),
918
921
 
919
 
  /* Pass a pointer to string of the output using full variable-replacement
920
 
     as described elsewhere. */
921
 
  CINIT(WRITEINFO, OBJECTPOINT, 40),
 
922
  CINIT(WRITEINFO, OBJECTPOINT, 40), /* DEPRECATED, do not use! */
922
923
 
923
924
  CINIT(VERBOSE, LONG, 41),      /* talk a lot */
924
925
  CINIT(HEADER, LONG, 42),       /* throw the header out too */
994
995
  /* Max amount of cached alive connections */
995
996
  CINIT(MAXCONNECTS, LONG, 71),
996
997
 
997
 
  /* 72 - DEPRECATED */
998
 
  CINIT(CLOSEPOLICY, LONG, 72),
 
998
  CINIT(CLOSEPOLICY, LONG, 72), /* DEPRECATED, do not use! */
999
999
 
1000
1000
  /* 73 = OBSOLETE */
1001
1001
 
1069
1069
  CINIT(SSLENGINE_DEFAULT, LONG, 90),
1070
1070
 
1071
1071
  /* Non-zero value means to use the global dns cache */
1072
 
  CINIT(DNS_USE_GLOBAL_CACHE, LONG, 91), /* To become OBSOLETE soon */
 
1072
  CINIT(DNS_USE_GLOBAL_CACHE, LONG, 91), /* DEPRECATED, do not use! */
1073
1073
 
1074
1074
  /* DNS cache timeout */
1075
1075
  CINIT(DNS_CACHE_TIMEOUT, LONG, 92),
1483
1483
  CINIT(CLOSESOCKETFUNCTION, FUNCTIONPOINT, 208),
1484
1484
  CINIT(CLOSESOCKETDATA, OBJECTPOINT, 209),
1485
1485
 
 
1486
  /* allow GSSAPI credential delegation */
 
1487
  CINIT(GSSAPI_DELEGATION, LONG, 210),
 
1488
 
1486
1489
  CURLOPT_LASTENTRY /* the last unused */
1487
1490
} CURLoption;
1488
1491
 
2092
2095
#define CURL_VERSION_CONV      (1<<12) /* character conversions supported */
2093
2096
#define CURL_VERSION_CURLDEBUG (1<<13) /* debug memory tracking supported */
2094
2097
#define CURL_VERSION_TLSAUTH_SRP (1<<14) /* TLS-SRP auth is supported */
 
2098
#define CURL_VERSION_NTLM_WB   (1<<15) /* NTLM delegating to winbind helper */
2095
2099
 
2096
 
/*
 
2100
 /*
2097
2101
 * NAME curl_version_info()
2098
2102
 *
2099
2103
 * DESCRIPTION