mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Update libcurl includes
This commit is contained in:
parent
98dab85a53
commit
201e67d513
|
@ -7,7 +7,7 @@
|
||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
|
@ -53,6 +53,11 @@
|
||||||
#define HAVE_GETOPT_H 1
|
#define HAVE_GETOPT_H 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
|
||||||
|
#define HAVE_INTTYPES_H 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define if you have the <io.h> header file. */
|
/* Define if you have the <io.h> header file. */
|
||||||
#define HAVE_IO_H 1
|
#define HAVE_IO_H 1
|
||||||
|
|
||||||
|
@ -87,6 +92,11 @@
|
||||||
/* Define if you have the <ssl.h> header file. */
|
/* Define if you have the <ssl.h> header file. */
|
||||||
/* #define HAVE_SSL_H 1 */
|
/* #define HAVE_SSL_H 1 */
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdbool.h> header file. */
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
|
||||||
|
#define HAVE_STDBOOL_H 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define if you have the <stdlib.h> header file. */
|
/* Define if you have the <stdlib.h> header file. */
|
||||||
#define HAVE_STDLIB_H 1
|
#define HAVE_STDLIB_H 1
|
||||||
|
|
||||||
|
@ -160,6 +170,11 @@
|
||||||
/* Define if you can safely include both <sys/time.h> and <time.h>. */
|
/* Define if you can safely include both <sys/time.h> and <time.h>. */
|
||||||
/* #define TIME_WITH_SYS_TIME 1 */
|
/* #define TIME_WITH_SYS_TIME 1 */
|
||||||
|
|
||||||
|
/* Define to 1 if bool is an available type. */
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
|
||||||
|
#define HAVE_BOOL_T 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
/* FUNCTIONS */
|
/* FUNCTIONS */
|
||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
|
@ -250,7 +265,8 @@
|
||||||
#define HAVE_STRSTR 1
|
#define HAVE_STRSTR 1
|
||||||
|
|
||||||
/* Define if you have the strtoll function. */
|
/* Define if you have the strtoll function. */
|
||||||
#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__POCC__)
|
#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__POCC__) || \
|
||||||
|
(defined(_MSC_VER) && (_MSC_VER >= 1800))
|
||||||
#define HAVE_STRTOLL 1
|
#define HAVE_STRTOLL 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -390,21 +406,6 @@
|
||||||
# define SIZEOF_SIZE_T 4
|
# define SIZEOF_SIZE_T 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ---------------------------------------------------------------- */
|
|
||||||
/* STRUCT RELATED */
|
|
||||||
/* ---------------------------------------------------------------- */
|
|
||||||
|
|
||||||
/* Define if you have struct sockaddr_storage. */
|
|
||||||
#if !defined(__SALFORDC__) && !defined(__BORLANDC__)
|
|
||||||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Define if you have struct timeval. */
|
|
||||||
#define HAVE_STRUCT_TIMEVAL 1
|
|
||||||
|
|
||||||
/* Define if struct sockaddr_in6 has the sin6_scope_id member. */
|
|
||||||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
|
|
||||||
|
|
||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
/* BSD-style lwIP TCP/IP stack SPECIFIC */
|
/* BSD-style lwIP TCP/IP stack SPECIFIC */
|
||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
|
@ -480,7 +481,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define if the compiler supports the 'long long' data type. */
|
/* Define if the compiler supports the 'long long' data type. */
|
||||||
#if defined(__MINGW32__) || defined(__WATCOMC__)
|
#if defined(__MINGW32__) || defined(__WATCOMC__) || \
|
||||||
|
(defined(_MSC_VER) && (_MSC_VER >= 1310))
|
||||||
#define HAVE_LONGLONG 1
|
#define HAVE_LONGLONG 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -500,26 +502,39 @@
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Officially, Microsoft's Windows SDK versions 6.X do not support Windows
|
/* Define some minimum and default build targets for Visual Studio */
|
||||||
2000 as a supported build target. VS2008 default installations provide
|
#if defined(_MSC_VER)
|
||||||
an embedded Windows SDK v6.0A along with the claim that Windows 2000 is
|
/* Officially, Microsoft's Windows SDK versions 6.X does not support Windows
|
||||||
a valid build target for VS2008. Popular belief is that binaries built
|
2000 as a supported build target. VS2008 default installations provides
|
||||||
with VS2008 using Windows SDK versions 6.X and Windows 2000 as a build
|
an embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
|
||||||
target are functional. */
|
valid build target for VS2008. Popular belief is that binaries built with
|
||||||
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
|
VS2008 using Windows SDK versions v6.X and Windows 2000 as a build target
|
||||||
|
are functional. */
|
||||||
# define VS2008_MIN_TARGET 0x0500
|
# define VS2008_MIN_TARGET 0x0500
|
||||||
#endif
|
|
||||||
|
|
||||||
/* When no build target is specified VS2008 default build target is Windows
|
/* The minimum build target for VS2012 is Vista unless Update 1 is installed
|
||||||
Vista, which leaves out even Winsows XP. If no build target has been given
|
and the v110_xp toolset is choosen. */
|
||||||
for VS2008 we will target the minimum Officially supported build target,
|
# if defined(_USING_V110_SDK71_)
|
||||||
which happens to be Windows XP. */
|
# define VS2012_MIN_TARGET 0x0501
|
||||||
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
|
# else
|
||||||
|
# define VS2012_MIN_TARGET 0x0600
|
||||||
|
# endif
|
||||||
|
|
||||||
|
/* VS2008 default build target is Windows Vista. We override default target
|
||||||
|
to be Windows XP. */
|
||||||
# define VS2008_DEF_TARGET 0x0501
|
# define VS2008_DEF_TARGET 0x0501
|
||||||
|
|
||||||
|
/* VS2012 default build target is Windows Vista unless Update 1 is installed
|
||||||
|
and the v110_xp toolset is choosen. */
|
||||||
|
# if defined(_USING_V110_SDK71_)
|
||||||
|
# define VS2012_DEF_TARGET 0x0501
|
||||||
|
# else
|
||||||
|
# define VS2012_DEF_TARGET 0x0600
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* VS2008 default target settings and minimum build target check. */
|
/* VS2008 default target settings and minimum build target check. */
|
||||||
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
|
#if defined(_MSC_VER) && (_MSC_VER >= 1500) && (_MSC_VER <= 1600)
|
||||||
# ifndef _WIN32_WINNT
|
# ifndef _WIN32_WINNT
|
||||||
# define _WIN32_WINNT VS2008_DEF_TARGET
|
# define _WIN32_WINNT VS2008_DEF_TARGET
|
||||||
# endif
|
# endif
|
||||||
|
@ -531,6 +546,24 @@
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* VS2012 default target settings and minimum build target check. */
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER >= 1700)
|
||||||
|
# ifndef _WIN32_WINNT
|
||||||
|
# define _WIN32_WINNT VS2012_DEF_TARGET
|
||||||
|
# endif
|
||||||
|
# ifndef WINVER
|
||||||
|
# define WINVER VS2012_DEF_TARGET
|
||||||
|
# endif
|
||||||
|
# if (_WIN32_WINNT < VS2012_MIN_TARGET) || (WINVER < VS2012_MIN_TARGET)
|
||||||
|
# if defined(_USING_V110_SDK71_)
|
||||||
|
# error VS2012 does not support Windows build targets prior to Windows XP
|
||||||
|
# else
|
||||||
|
# error VS2012 does not support Windows build targets prior to Windows \
|
||||||
|
Vista
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* When no build target is specified Pelles C 5.00 and later default build
|
/* When no build target is specified Pelles C 5.00 and later default build
|
||||||
target is Windows Vista. We override default target to be Windows 2000. */
|
target is Windows Vista. We override default target to be Windows 2000. */
|
||||||
#if defined(__POCC__) && (__POCC__ >= 500)
|
#if defined(__POCC__) && (__POCC__ >= 500)
|
||||||
|
@ -572,6 +605,25 @@
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------- */
|
||||||
|
/* STRUCT RELATED */
|
||||||
|
/* ---------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* Define if you have struct sockaddr_storage. */
|
||||||
|
#if !defined(__SALFORDC__) && !defined(__BORLANDC__)
|
||||||
|
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Define if you have struct timeval. */
|
||||||
|
#define HAVE_STRUCT_TIMEVAL 1
|
||||||
|
|
||||||
|
/* Define if struct sockaddr_in6 has the sin6_scope_id member. */
|
||||||
|
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
|
||||||
|
|
||||||
|
#if HAVE_WINSOCK2_H && defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0600)
|
||||||
|
#define HAVE_STRUCT_POLLFD 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
/* LARGE FILE SUPPORT */
|
/* LARGE FILE SUPPORT */
|
||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
|
@ -611,8 +663,11 @@
|
||||||
/* Define to enable c-ares asynchronous DNS lookups. */
|
/* Define to enable c-ares asynchronous DNS lookups. */
|
||||||
/* #define USE_ARES 1 */
|
/* #define USE_ARES 1 */
|
||||||
|
|
||||||
/* Define to enable threaded asynchronous DNS lookups. */
|
/* Default define to enable threaded asynchronous DNS lookups. */
|
||||||
#define USE_THREADS_WIN32 1
|
#if !defined(USE_SYNC_DNS) && !defined(USE_ARES) && \
|
||||||
|
!defined(USE_THREADS_WIN32)
|
||||||
|
# define USE_THREADS_WIN32 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(USE_ARES) && defined(USE_THREADS_WIN32)
|
#if defined(USE_ARES) && defined(USE_THREADS_WIN32)
|
||||||
# error "Only one DNS lookup specialty may be defined at most"
|
# error "Only one DNS lookup specialty may be defined at most"
|
||||||
|
@ -645,6 +700,11 @@
|
||||||
# define CURL_DISABLE_LDAP 1
|
# define CURL_DISABLE_LDAP 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Define to use the Windows crypto library. */
|
||||||
|
#if !defined(USE_SSLEAY) && !defined(USE_NSS)
|
||||||
|
#define USE_WIN32_CRYPTO
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
/* ADDITIONAL DEFINITIONS */
|
/* ADDITIONAL DEFINITIONS */
|
||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
require it! */
|
require it! */
|
||||||
#if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
|
#if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
|
||||||
defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
|
defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
|
||||||
defined(ANDROID) || defined(__ANDROID__) || \
|
defined(ANDROID) || defined(__ANDROID__) || defined(__OpenBSD__) || \
|
||||||
(defined(__FreeBSD_version) && (__FreeBSD_version < 800000))
|
(defined(__FreeBSD_version) && (__FreeBSD_version < 800000))
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -93,29 +93,21 @@ extern "C" {
|
||||||
typedef void CURL;
|
typedef void CURL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Decorate exportable functions for Win32 and Symbian OS DLL linking.
|
* libcurl external API function linkage decorations.
|
||||||
* This avoids using a .def file for building libcurl.dll.
|
|
||||||
*/
|
*/
|
||||||
#if (defined(WIN32) || defined(_WIN32) || defined(__SYMBIAN32__)) && \
|
|
||||||
!defined(CURL_STATICLIB)
|
|
||||||
#if defined(BUILDING_LIBCURL)
|
|
||||||
#define CURL_EXTERN __declspec(dllexport)
|
|
||||||
#else
|
|
||||||
#define CURL_EXTERN __declspec(dllimport)
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
|
|
||||||
#ifdef CURL_HIDDEN_SYMBOLS
|
#ifdef CURL_STATICLIB
|
||||||
/*
|
# define CURL_EXTERN
|
||||||
* This definition is used to make external definitions visible in the
|
#elif defined(WIN32) || defined(_WIN32) || defined(__SYMBIAN32__)
|
||||||
* shared library when symbols are hidden by default. It makes no
|
# if defined(BUILDING_LIBCURL)
|
||||||
* difference when compiling applications whether this is set or not,
|
# define CURL_EXTERN __declspec(dllexport)
|
||||||
* only when compiling the library.
|
# else
|
||||||
*/
|
# define CURL_EXTERN __declspec(dllimport)
|
||||||
#define CURL_EXTERN CURL_EXTERN_SYMBOL
|
# endif
|
||||||
|
#elif defined(BUILDING_LIBCURL) && defined(CURL_HIDDEN_SYMBOLS)
|
||||||
|
# define CURL_EXTERN CURL_EXTERN_SYMBOL
|
||||||
#else
|
#else
|
||||||
#define CURL_EXTERN
|
# define CURL_EXTERN
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef curl_socket_typedef
|
#ifndef curl_socket_typedef
|
||||||
|
@ -164,12 +156,22 @@ struct curl_httppost {
|
||||||
HTTPPOST_CALLBACK posts */
|
HTTPPOST_CALLBACK posts */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* This is the CURLOPT_PROGRESSFUNCTION callback proto. It is now considered
|
||||||
|
deprecated but was the only choice up until 7.31.0 */
|
||||||
typedef int (*curl_progress_callback)(void *clientp,
|
typedef int (*curl_progress_callback)(void *clientp,
|
||||||
double dltotal,
|
double dltotal,
|
||||||
double dlnow,
|
double dlnow,
|
||||||
double ultotal,
|
double ultotal,
|
||||||
double ulnow);
|
double ulnow);
|
||||||
|
|
||||||
|
/* This is the CURLOPT_XFERINFOFUNCTION callback proto. It was introduced in
|
||||||
|
7.32.0, it avoids floating point and provides more detailed information. */
|
||||||
|
typedef int (*curl_xferinfo_callback)(void *clientp,
|
||||||
|
curl_off_t dltotal,
|
||||||
|
curl_off_t dlnow,
|
||||||
|
curl_off_t ultotal,
|
||||||
|
curl_off_t ulnow);
|
||||||
|
|
||||||
#ifndef CURL_MAX_WRITE_SIZE
|
#ifndef CURL_MAX_WRITE_SIZE
|
||||||
/* Tests have proven that 20K is a very bad buffer size for uploads on
|
/* Tests have proven that 20K is a very bad buffer size for uploads on
|
||||||
Windows, while 16K for some odd reason performed a lot better.
|
Windows, while 16K for some odd reason performed a lot better.
|
||||||
|
@ -421,7 +423,9 @@ typedef enum {
|
||||||
CURLE_FTP_WEIRD_PASV_REPLY, /* 13 */
|
CURLE_FTP_WEIRD_PASV_REPLY, /* 13 */
|
||||||
CURLE_FTP_WEIRD_227_FORMAT, /* 14 */
|
CURLE_FTP_WEIRD_227_FORMAT, /* 14 */
|
||||||
CURLE_FTP_CANT_GET_HOST, /* 15 */
|
CURLE_FTP_CANT_GET_HOST, /* 15 */
|
||||||
CURLE_OBSOLETE16, /* 16 - NOT USED */
|
CURLE_HTTP2, /* 16 - A problem in the http2 framing layer.
|
||||||
|
[was obsoleted in August 2007 for 7.17.0,
|
||||||
|
reused in July 2014 for 7.38.0] */
|
||||||
CURLE_FTP_COULDNT_SET_TYPE, /* 17 */
|
CURLE_FTP_COULDNT_SET_TYPE, /* 17 */
|
||||||
CURLE_PARTIAL_FILE, /* 18 */
|
CURLE_PARTIAL_FILE, /* 18 */
|
||||||
CURLE_FTP_COULDNT_RETR_FILE, /* 19 */
|
CURLE_FTP_COULDNT_RETR_FILE, /* 19 */
|
||||||
|
@ -515,13 +519,20 @@ typedef enum {
|
||||||
CURLE_RTSP_SESSION_ERROR, /* 86 - mismatch of RTSP Session Ids */
|
CURLE_RTSP_SESSION_ERROR, /* 86 - mismatch of RTSP Session Ids */
|
||||||
CURLE_FTP_BAD_FILE_LIST, /* 87 - unable to parse FTP file list */
|
CURLE_FTP_BAD_FILE_LIST, /* 87 - unable to parse FTP file list */
|
||||||
CURLE_CHUNK_FAILED, /* 88 - chunk callback reported error */
|
CURLE_CHUNK_FAILED, /* 88 - chunk callback reported error */
|
||||||
|
CURLE_NO_CONNECTION_AVAILABLE, /* 89 - No connection available, the
|
||||||
|
session will be queued */
|
||||||
|
CURLE_SSL_PINNEDPUBKEYNOTMATCH, /* 90 - specified pinned public key did not
|
||||||
|
match */
|
||||||
CURL_LAST /* never use! */
|
CURL_LAST /* never use! */
|
||||||
} CURLcode;
|
} CURLcode;
|
||||||
|
|
||||||
#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
|
#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
|
||||||
the obsolete stuff removed! */
|
the obsolete stuff removed! */
|
||||||
|
|
||||||
/* Previously obsoletes error codes re-used in 7.24.0 */
|
/* Previously obsolete error code re-used in 7.38.0 */
|
||||||
|
#define CURLE_OBSOLETE16 CURLE_HTTP2
|
||||||
|
|
||||||
|
/* Previously obsolete error codes re-used in 7.24.0 */
|
||||||
#define CURLE_OBSOLETE10 CURLE_FTP_ACCEPT_FAILED
|
#define CURLE_OBSOLETE10 CURLE_FTP_ACCEPT_FAILED
|
||||||
#define CURLE_OBSOLETE12 CURLE_FTP_ACCEPT_TIMEOUT
|
#define CURLE_OBSOLETE12 CURLE_FTP_ACCEPT_TIMEOUT
|
||||||
|
|
||||||
|
@ -575,6 +586,16 @@ typedef enum {
|
||||||
make programs break */
|
make programs break */
|
||||||
#define CURLE_ALREADY_COMPLETE 99999
|
#define CURLE_ALREADY_COMPLETE 99999
|
||||||
|
|
||||||
|
/* Provide defines for really old option names */
|
||||||
|
#define CURLOPT_FILE CURLOPT_WRITEDATA /* name changed in 7.9.7 */
|
||||||
|
#define CURLOPT_INFILE CURLOPT_READDATA /* name changed in 7.9.7 */
|
||||||
|
#define CURLOPT_WRITEHEADER CURLOPT_HEADERDATA
|
||||||
|
|
||||||
|
/* Since long deprecated options with no code in the lib that does anything
|
||||||
|
with them. */
|
||||||
|
#define CURLOPT_WRITEINFO CURLOPT_OBSOLETE40
|
||||||
|
#define CURLOPT_CLOSEPOLICY CURLOPT_OBSOLETE72
|
||||||
|
|
||||||
#endif /*!CURL_NO_OLDIES*/
|
#endif /*!CURL_NO_OLDIES*/
|
||||||
|
|
||||||
/* This prototype applies to all conversion callbacks */
|
/* This prototype applies to all conversion callbacks */
|
||||||
|
@ -605,7 +626,8 @@ typedef enum {
|
||||||
* CURLAUTH_NONE - No HTTP authentication
|
* CURLAUTH_NONE - No HTTP authentication
|
||||||
* CURLAUTH_BASIC - HTTP Basic authentication (default)
|
* CURLAUTH_BASIC - HTTP Basic authentication (default)
|
||||||
* CURLAUTH_DIGEST - HTTP Digest authentication
|
* CURLAUTH_DIGEST - HTTP Digest authentication
|
||||||
* CURLAUTH_GSSNEGOTIATE - HTTP GSS-Negotiate authentication
|
* CURLAUTH_NEGOTIATE - HTTP Negotiate (SPNEGO) authentication
|
||||||
|
* CURLAUTH_GSSNEGOTIATE - Alias for CURLAUTH_NEGOTIATE (deprecated)
|
||||||
* CURLAUTH_NTLM - HTTP NTLM authentication
|
* CURLAUTH_NTLM - HTTP NTLM authentication
|
||||||
* CURLAUTH_DIGEST_IE - HTTP Digest authentication with IE flavour
|
* CURLAUTH_DIGEST_IE - HTTP Digest authentication with IE flavour
|
||||||
* CURLAUTH_NTLM_WB - HTTP NTLM authentication delegated to winbind helper
|
* CURLAUTH_NTLM_WB - HTTP NTLM authentication delegated to winbind helper
|
||||||
|
@ -618,7 +640,9 @@ typedef enum {
|
||||||
#define CURLAUTH_NONE ((unsigned long)0)
|
#define CURLAUTH_NONE ((unsigned long)0)
|
||||||
#define CURLAUTH_BASIC (((unsigned long)1)<<0)
|
#define CURLAUTH_BASIC (((unsigned long)1)<<0)
|
||||||
#define CURLAUTH_DIGEST (((unsigned long)1)<<1)
|
#define CURLAUTH_DIGEST (((unsigned long)1)<<1)
|
||||||
#define CURLAUTH_GSSNEGOTIATE (((unsigned long)1)<<2)
|
#define CURLAUTH_NEGOTIATE (((unsigned long)1)<<2)
|
||||||
|
/* Deprecated since the advent of CURLAUTH_NEGOTIATE */
|
||||||
|
#define CURLAUTH_GSSNEGOTIATE CURLAUTH_NEGOTIATE
|
||||||
#define CURLAUTH_NTLM (((unsigned long)1)<<3)
|
#define CURLAUTH_NTLM (((unsigned long)1)<<3)
|
||||||
#define CURLAUTH_DIGEST_IE (((unsigned long)1)<<4)
|
#define CURLAUTH_DIGEST_IE (((unsigned long)1)<<4)
|
||||||
#define CURLAUTH_NTLM_WB (((unsigned long)1)<<5)
|
#define CURLAUTH_NTLM_WB (((unsigned long)1)<<5)
|
||||||
|
@ -641,16 +665,18 @@ typedef enum {
|
||||||
|
|
||||||
#define CURL_ERROR_SIZE 256
|
#define CURL_ERROR_SIZE 256
|
||||||
|
|
||||||
struct curl_khkey {
|
enum curl_khtype {
|
||||||
const char *key; /* points to a zero-terminated string encoded with base64
|
|
||||||
if len is zero, otherwise to the "raw" data */
|
|
||||||
size_t len;
|
|
||||||
enum type {
|
|
||||||
CURLKHTYPE_UNKNOWN,
|
CURLKHTYPE_UNKNOWN,
|
||||||
CURLKHTYPE_RSA1,
|
CURLKHTYPE_RSA1,
|
||||||
CURLKHTYPE_RSA,
|
CURLKHTYPE_RSA,
|
||||||
CURLKHTYPE_DSS
|
CURLKHTYPE_DSS
|
||||||
} keytype;
|
};
|
||||||
|
|
||||||
|
struct curl_khkey {
|
||||||
|
const char *key; /* points to a zero-terminated string encoded with base64
|
||||||
|
if len is zero, otherwise to the "raw" data */
|
||||||
|
size_t len;
|
||||||
|
enum curl_khtype keytype;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* this is the set of return values expected from the curl_sshkeycallback
|
/* this is the set of return values expected from the curl_sshkeycallback
|
||||||
|
@ -748,6 +774,10 @@ typedef enum {
|
||||||
CURLFTPMETHOD_LAST /* not an option, never use */
|
CURLFTPMETHOD_LAST /* not an option, never use */
|
||||||
} curl_ftpmethod;
|
} curl_ftpmethod;
|
||||||
|
|
||||||
|
/* bitmask defines for CURLOPT_HEADEROPT */
|
||||||
|
#define CURLHEADER_UNIFIED 0
|
||||||
|
#define CURLHEADER_SEPARATE (1<<0)
|
||||||
|
|
||||||
/* CURLPROTO_ defines are for the CURLOPT_*PROTOCOLS options */
|
/* CURLPROTO_ defines are for the CURLOPT_*PROTOCOLS options */
|
||||||
#define CURLPROTO_HTTP (1<<0)
|
#define CURLPROTO_HTTP (1<<0)
|
||||||
#define CURLPROTO_HTTPS (1<<1)
|
#define CURLPROTO_HTTPS (1<<1)
|
||||||
|
@ -775,6 +805,8 @@ typedef enum {
|
||||||
#define CURLPROTO_RTMPS (1<<23)
|
#define CURLPROTO_RTMPS (1<<23)
|
||||||
#define CURLPROTO_RTMPTS (1<<24)
|
#define CURLPROTO_RTMPTS (1<<24)
|
||||||
#define CURLPROTO_GOPHER (1<<25)
|
#define CURLPROTO_GOPHER (1<<25)
|
||||||
|
#define CURLPROTO_SMB (1<<26)
|
||||||
|
#define CURLPROTO_SMBS (1<<27)
|
||||||
#define CURLPROTO_ALL (~0) /* enable everything */
|
#define CURLPROTO_ALL (~0) /* enable everything */
|
||||||
|
|
||||||
/* long may be 32 or 64 bits, but we should never depend on anything else
|
/* long may be 32 or 64 bits, but we should never depend on anything else
|
||||||
|
@ -810,7 +842,7 @@ typedef enum {
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
/* This is the FILE * or void * the regular output should be written to. */
|
/* This is the FILE * or void * the regular output should be written to. */
|
||||||
CINIT(FILE, OBJECTPOINT, 1),
|
CINIT(WRITEDATA, OBJECTPOINT, 1),
|
||||||
|
|
||||||
/* The full URL to get/put */
|
/* The full URL to get/put */
|
||||||
CINIT(URL, OBJECTPOINT, 2),
|
CINIT(URL, OBJECTPOINT, 2),
|
||||||
|
@ -821,10 +853,10 @@ typedef enum {
|
||||||
/* Name of proxy to use. */
|
/* Name of proxy to use. */
|
||||||
CINIT(PROXY, OBJECTPOINT, 4),
|
CINIT(PROXY, OBJECTPOINT, 4),
|
||||||
|
|
||||||
/* "name:password" to use when fetching. */
|
/* "user:password;options" to use when fetching. */
|
||||||
CINIT(USERPWD, OBJECTPOINT, 5),
|
CINIT(USERPWD, OBJECTPOINT, 5),
|
||||||
|
|
||||||
/* "name:password" to use with proxy. */
|
/* "user:password" to use with proxy. */
|
||||||
CINIT(PROXYUSERPWD, OBJECTPOINT, 6),
|
CINIT(PROXYUSERPWD, OBJECTPOINT, 6),
|
||||||
|
|
||||||
/* Range to get, specified as an ASCII string. */
|
/* Range to get, specified as an ASCII string. */
|
||||||
|
@ -833,7 +865,7 @@ typedef enum {
|
||||||
/* not used */
|
/* not used */
|
||||||
|
|
||||||
/* Specified file stream to upload from (use as input): */
|
/* Specified file stream to upload from (use as input): */
|
||||||
CINIT(INFILE, OBJECTPOINT, 9),
|
CINIT(READDATA, OBJECTPOINT, 9),
|
||||||
|
|
||||||
/* Buffer to receive error messages in, must be at least CURL_ERROR_SIZE
|
/* Buffer to receive error messages in, must be at least CURL_ERROR_SIZE
|
||||||
* bytes big. If this is not used, error messages go to stderr instead: */
|
* bytes big. If this is not used, error messages go to stderr instead: */
|
||||||
|
@ -897,7 +929,8 @@ typedef enum {
|
||||||
/* Set cookie in request: */
|
/* Set cookie in request: */
|
||||||
CINIT(COOKIE, OBJECTPOINT, 22),
|
CINIT(COOKIE, OBJECTPOINT, 22),
|
||||||
|
|
||||||
/* This points to a linked list of headers, struct curl_slist kind */
|
/* This points to a linked list of headers, struct curl_slist kind. This
|
||||||
|
list is also used for RTSP (in spite of its name) */
|
||||||
CINIT(HTTPHEADER, OBJECTPOINT, 23),
|
CINIT(HTTPHEADER, OBJECTPOINT, 23),
|
||||||
|
|
||||||
/* This points to a linked list of post entries, struct curl_httppost */
|
/* This points to a linked list of post entries, struct curl_httppost */
|
||||||
|
@ -917,7 +950,7 @@ typedef enum {
|
||||||
|
|
||||||
/* send FILE * or void * to store headers to, if you use a callback it
|
/* send FILE * or void * to store headers to, if you use a callback it
|
||||||
is simply passed to the callback unmodified */
|
is simply passed to the callback unmodified */
|
||||||
CINIT(WRITEHEADER, OBJECTPOINT, 29),
|
CINIT(HEADERDATA, OBJECTPOINT, 29),
|
||||||
|
|
||||||
/* point to a file to read the initial cookies from, also enables
|
/* point to a file to read the initial cookies from, also enables
|
||||||
"cookie awareness" */
|
"cookie awareness" */
|
||||||
|
@ -950,13 +983,13 @@ typedef enum {
|
||||||
/* send linked-list of post-transfer QUOTE commands */
|
/* send linked-list of post-transfer QUOTE commands */
|
||||||
CINIT(POSTQUOTE, OBJECTPOINT, 39),
|
CINIT(POSTQUOTE, OBJECTPOINT, 39),
|
||||||
|
|
||||||
CINIT(WRITEINFO, OBJECTPOINT, 40), /* DEPRECATED, do not use! */
|
CINIT(OBSOLETE40, OBJECTPOINT, 40), /* OBSOLETE, do not use! */
|
||||||
|
|
||||||
CINIT(VERBOSE, LONG, 41), /* talk a lot */
|
CINIT(VERBOSE, LONG, 41), /* talk a lot */
|
||||||
CINIT(HEADER, LONG, 42), /* throw the header out too */
|
CINIT(HEADER, LONG, 42), /* throw the header out too */
|
||||||
CINIT(NOPROGRESS, LONG, 43), /* shut off the progress meter */
|
CINIT(NOPROGRESS, LONG, 43), /* shut off the progress meter */
|
||||||
CINIT(NOBODY, LONG, 44), /* use HEAD to get http document */
|
CINIT(NOBODY, LONG, 44), /* use HEAD to get http document */
|
||||||
CINIT(FAILONERROR, LONG, 45), /* no output on http error codes >= 300 */
|
CINIT(FAILONERROR, LONG, 45), /* no output on http error codes >= 400 */
|
||||||
CINIT(UPLOAD, LONG, 46), /* this is an upload */
|
CINIT(UPLOAD, LONG, 46), /* this is an upload */
|
||||||
CINIT(POST, LONG, 47), /* HTTP POST method */
|
CINIT(POST, LONG, 47), /* HTTP POST method */
|
||||||
CINIT(DIRLISTONLY, LONG, 48), /* bare names when listing directories */
|
CINIT(DIRLISTONLY, LONG, 48), /* bare names when listing directories */
|
||||||
|
@ -974,13 +1007,16 @@ typedef enum {
|
||||||
|
|
||||||
/* 55 = OBSOLETE */
|
/* 55 = OBSOLETE */
|
||||||
|
|
||||||
/* Function that will be called instead of the internal progress display
|
/* DEPRECATED
|
||||||
|
* Function that will be called instead of the internal progress display
|
||||||
* function. This function should be defined as the curl_progress_callback
|
* function. This function should be defined as the curl_progress_callback
|
||||||
* prototype defines. */
|
* prototype defines. */
|
||||||
CINIT(PROGRESSFUNCTION, FUNCTIONPOINT, 56),
|
CINIT(PROGRESSFUNCTION, FUNCTIONPOINT, 56),
|
||||||
|
|
||||||
/* Data passed to the progress callback */
|
/* Data passed to the CURLOPT_PROGRESSFUNCTION and CURLOPT_XFERINFOFUNCTION
|
||||||
|
callbacks */
|
||||||
CINIT(PROGRESSDATA, OBJECTPOINT, 57),
|
CINIT(PROGRESSDATA, OBJECTPOINT, 57),
|
||||||
|
#define CURLOPT_XFERINFODATA CURLOPT_PROGRESSDATA
|
||||||
|
|
||||||
/* We want the referrer field set automatically when following locations */
|
/* We want the referrer field set automatically when following locations */
|
||||||
CINIT(AUTOREFERER, LONG, 58),
|
CINIT(AUTOREFERER, LONG, 58),
|
||||||
|
@ -1026,7 +1062,7 @@ typedef enum {
|
||||||
/* Max amount of cached alive connections */
|
/* Max amount of cached alive connections */
|
||||||
CINIT(MAXCONNECTS, LONG, 71),
|
CINIT(MAXCONNECTS, LONG, 71),
|
||||||
|
|
||||||
CINIT(CLOSEPOLICY, LONG, 72), /* DEPRECATED, do not use! */
|
CINIT(OBSOLETE72, LONG, 72), /* OBSOLETE, do not use! */
|
||||||
|
|
||||||
/* 73 = OBSOLETE */
|
/* 73 = OBSOLETE */
|
||||||
|
|
||||||
|
@ -1379,8 +1415,7 @@ typedef enum {
|
||||||
CINIT(ADDRESS_SCOPE, LONG, 171),
|
CINIT(ADDRESS_SCOPE, LONG, 171),
|
||||||
|
|
||||||
/* Collect certificate chain info and allow it to get retrievable with
|
/* Collect certificate chain info and allow it to get retrievable with
|
||||||
CURLINFO_CERTINFO after the transfer is complete. (Unfortunately) only
|
CURLINFO_CERTINFO after the transfer is complete. */
|
||||||
working with OpenSSL-powered builds. */
|
|
||||||
CINIT(CERTINFO, LONG, 172),
|
CINIT(CERTINFO, LONG, 172),
|
||||||
|
|
||||||
/* "name" and "pwd" to use when fetching. */
|
/* "name" and "pwd" to use when fetching. */
|
||||||
|
@ -1533,9 +1568,60 @@ typedef enum {
|
||||||
/* Enable/disable specific SSL features with a bitmask, see CURLSSLOPT_* */
|
/* Enable/disable specific SSL features with a bitmask, see CURLSSLOPT_* */
|
||||||
CINIT(SSL_OPTIONS, LONG, 216),
|
CINIT(SSL_OPTIONS, LONG, 216),
|
||||||
|
|
||||||
/* set the SMTP auth originator */
|
/* Set the SMTP auth originator */
|
||||||
CINIT(MAIL_AUTH, OBJECTPOINT, 217),
|
CINIT(MAIL_AUTH, OBJECTPOINT, 217),
|
||||||
|
|
||||||
|
/* Enable/disable SASL initial response */
|
||||||
|
CINIT(SASL_IR, LONG, 218),
|
||||||
|
|
||||||
|
/* Function that will be called instead of the internal progress display
|
||||||
|
* function. This function should be defined as the curl_xferinfo_callback
|
||||||
|
* prototype defines. (Deprecates CURLOPT_PROGRESSFUNCTION) */
|
||||||
|
CINIT(XFERINFOFUNCTION, FUNCTIONPOINT, 219),
|
||||||
|
|
||||||
|
/* The XOAUTH2 bearer token */
|
||||||
|
CINIT(XOAUTH2_BEARER, OBJECTPOINT, 220),
|
||||||
|
|
||||||
|
/* Set the interface string to use as outgoing network
|
||||||
|
* interface for DNS requests.
|
||||||
|
* Only supported by the c-ares DNS backend */
|
||||||
|
CINIT(DNS_INTERFACE, OBJECTPOINT, 221),
|
||||||
|
|
||||||
|
/* Set the local IPv4 address to use for outgoing DNS requests.
|
||||||
|
* Only supported by the c-ares DNS backend */
|
||||||
|
CINIT(DNS_LOCAL_IP4, OBJECTPOINT, 222),
|
||||||
|
|
||||||
|
/* Set the local IPv4 address to use for outgoing DNS requests.
|
||||||
|
* Only supported by the c-ares DNS backend */
|
||||||
|
CINIT(DNS_LOCAL_IP6, OBJECTPOINT, 223),
|
||||||
|
|
||||||
|
/* Set authentication options directly */
|
||||||
|
CINIT(LOGIN_OPTIONS, OBJECTPOINT, 224),
|
||||||
|
|
||||||
|
/* Enable/disable TLS NPN extension (http2 over ssl might fail without) */
|
||||||
|
CINIT(SSL_ENABLE_NPN, LONG, 225),
|
||||||
|
|
||||||
|
/* Enable/disable TLS ALPN extension (http2 over ssl might fail without) */
|
||||||
|
CINIT(SSL_ENABLE_ALPN, LONG, 226),
|
||||||
|
|
||||||
|
/* Time to wait for a response to a HTTP request containing an
|
||||||
|
* Expect: 100-continue header before sending the data anyway. */
|
||||||
|
CINIT(EXPECT_100_TIMEOUT_MS, LONG, 227),
|
||||||
|
|
||||||
|
/* This points to a linked list of headers used for proxy requests only,
|
||||||
|
struct curl_slist kind */
|
||||||
|
CINIT(PROXYHEADER, OBJECTPOINT, 228),
|
||||||
|
|
||||||
|
/* Pass in a bitmask of "header options" */
|
||||||
|
CINIT(HEADEROPT, LONG, 229),
|
||||||
|
|
||||||
|
/* The public key in DER form used to validate the peer public key
|
||||||
|
this option is used only if SSL_VERIFYPEER is true */
|
||||||
|
CINIT(PINNEDPUBLICKEY, OBJECTPOINT, 230),
|
||||||
|
|
||||||
|
/* Path to Unix domain socket */
|
||||||
|
CINIT(UNIX_SOCKET_PATH, OBJECTPOINT, 231),
|
||||||
|
|
||||||
CURLOPT_LASTENTRY /* the last unused */
|
CURLOPT_LASTENTRY /* the last unused */
|
||||||
} CURLoption;
|
} CURLoption;
|
||||||
|
|
||||||
|
@ -1572,13 +1658,10 @@ typedef enum {
|
||||||
option might be handy to force libcurl to use a specific IP version. */
|
option might be handy to force libcurl to use a specific IP version. */
|
||||||
#define CURL_IPRESOLVE_WHATEVER 0 /* default, resolves addresses to all IP
|
#define CURL_IPRESOLVE_WHATEVER 0 /* default, resolves addresses to all IP
|
||||||
versions that your system allows */
|
versions that your system allows */
|
||||||
#define CURL_IPRESOLVE_V4 1 /* resolve to ipv4 addresses */
|
#define CURL_IPRESOLVE_V4 1 /* resolve to IPv4 addresses */
|
||||||
#define CURL_IPRESOLVE_V6 2 /* resolve to ipv6 addresses */
|
#define CURL_IPRESOLVE_V6 2 /* resolve to IPv6 addresses */
|
||||||
|
|
||||||
/* three convenient "aliases" that follow the name scheme better */
|
/* three convenient "aliases" that follow the name scheme better */
|
||||||
#define CURLOPT_WRITEDATA CURLOPT_FILE
|
|
||||||
#define CURLOPT_READDATA CURLOPT_INFILE
|
|
||||||
#define CURLOPT_HEADERDATA CURLOPT_WRITEHEADER
|
|
||||||
#define CURLOPT_RTSPHEADER CURLOPT_HTTPHEADER
|
#define CURLOPT_RTSPHEADER CURLOPT_HTTPHEADER
|
||||||
|
|
||||||
/* These enums are for use with the CURLOPT_HTTP_VERSION option. */
|
/* These enums are for use with the CURLOPT_HTTP_VERSION option. */
|
||||||
|
@ -1588,6 +1671,7 @@ enum {
|
||||||
for us! */
|
for us! */
|
||||||
CURL_HTTP_VERSION_1_0, /* please use HTTP 1.0 in the request */
|
CURL_HTTP_VERSION_1_0, /* please use HTTP 1.0 in the request */
|
||||||
CURL_HTTP_VERSION_1_1, /* please use HTTP 1.1 in the request */
|
CURL_HTTP_VERSION_1_1, /* please use HTTP 1.1 in the request */
|
||||||
|
CURL_HTTP_VERSION_2_0, /* please use HTTP 2.0 in the request */
|
||||||
|
|
||||||
CURL_HTTP_VERSION_LAST /* *ILLEGAL* http version */
|
CURL_HTTP_VERSION_LAST /* *ILLEGAL* http version */
|
||||||
};
|
};
|
||||||
|
@ -1625,9 +1709,12 @@ enum CURL_NETRC_OPTION {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
CURL_SSLVERSION_DEFAULT,
|
CURL_SSLVERSION_DEFAULT,
|
||||||
CURL_SSLVERSION_TLSv1,
|
CURL_SSLVERSION_TLSv1, /* TLS 1.x */
|
||||||
CURL_SSLVERSION_SSLv2,
|
CURL_SSLVERSION_SSLv2,
|
||||||
CURL_SSLVERSION_SSLv3,
|
CURL_SSLVERSION_SSLv3,
|
||||||
|
CURL_SSLVERSION_TLSv1_0,
|
||||||
|
CURL_SSLVERSION_TLSv1_1,
|
||||||
|
CURL_SSLVERSION_TLSv1_2,
|
||||||
|
|
||||||
CURL_SSLVERSION_LAST /* never use, keep last */
|
CURL_SSLVERSION_LAST /* never use, keep last */
|
||||||
};
|
};
|
||||||
|
@ -1946,6 +2033,29 @@ struct curl_certinfo {
|
||||||
format "name: value" */
|
format "name: value" */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* enum for the different supported SSL backends */
|
||||||
|
typedef enum {
|
||||||
|
CURLSSLBACKEND_NONE = 0,
|
||||||
|
CURLSSLBACKEND_OPENSSL = 1,
|
||||||
|
CURLSSLBACKEND_GNUTLS = 2,
|
||||||
|
CURLSSLBACKEND_NSS = 3,
|
||||||
|
CURLSSLBACKEND_OBSOLETE4 = 4, /* Was QSOSSL. */
|
||||||
|
CURLSSLBACKEND_GSKIT = 5,
|
||||||
|
CURLSSLBACKEND_POLARSSL = 6,
|
||||||
|
CURLSSLBACKEND_CYASSL = 7,
|
||||||
|
CURLSSLBACKEND_SCHANNEL = 8,
|
||||||
|
CURLSSLBACKEND_DARWINSSL = 9,
|
||||||
|
CURLSSLBACKEND_AXTLS = 10
|
||||||
|
} curl_sslbackend;
|
||||||
|
|
||||||
|
/* Information about the SSL library used and the respective internal SSL
|
||||||
|
handle, which can be used to obtain further information regarding the
|
||||||
|
connection. Asked for with CURLINFO_TLS_SESSION. */
|
||||||
|
struct curl_tlssessioninfo {
|
||||||
|
curl_sslbackend backend;
|
||||||
|
void *internals;
|
||||||
|
};
|
||||||
|
|
||||||
#define CURLINFO_STRING 0x100000
|
#define CURLINFO_STRING 0x100000
|
||||||
#define CURLINFO_LONG 0x200000
|
#define CURLINFO_LONG 0x200000
|
||||||
#define CURLINFO_DOUBLE 0x300000
|
#define CURLINFO_DOUBLE 0x300000
|
||||||
|
@ -1997,9 +2107,10 @@ typedef enum {
|
||||||
CURLINFO_PRIMARY_PORT = CURLINFO_LONG + 40,
|
CURLINFO_PRIMARY_PORT = CURLINFO_LONG + 40,
|
||||||
CURLINFO_LOCAL_IP = CURLINFO_STRING + 41,
|
CURLINFO_LOCAL_IP = CURLINFO_STRING + 41,
|
||||||
CURLINFO_LOCAL_PORT = CURLINFO_LONG + 42,
|
CURLINFO_LOCAL_PORT = CURLINFO_LONG + 42,
|
||||||
|
CURLINFO_TLS_SESSION = CURLINFO_SLIST + 43,
|
||||||
/* Fill in new entries below here! */
|
/* Fill in new entries below here! */
|
||||||
|
|
||||||
CURLINFO_LASTONE = 42
|
CURLINFO_LASTONE = 43
|
||||||
} CURLINFO;
|
} CURLINFO;
|
||||||
|
|
||||||
/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as
|
/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as
|
||||||
|
@ -2023,6 +2134,7 @@ typedef enum {
|
||||||
#define CURL_GLOBAL_ALL (CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32)
|
#define CURL_GLOBAL_ALL (CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32)
|
||||||
#define CURL_GLOBAL_NOTHING 0
|
#define CURL_GLOBAL_NOTHING 0
|
||||||
#define CURL_GLOBAL_DEFAULT CURL_GLOBAL_ALL
|
#define CURL_GLOBAL_DEFAULT CURL_GLOBAL_ALL
|
||||||
|
#define CURL_GLOBAL_ACK_EINTR (1<<2)
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
@ -2135,21 +2247,29 @@ typedef struct {
|
||||||
} curl_version_info_data;
|
} curl_version_info_data;
|
||||||
|
|
||||||
#define CURL_VERSION_IPV6 (1<<0) /* IPv6-enabled */
|
#define CURL_VERSION_IPV6 (1<<0) /* IPv6-enabled */
|
||||||
#define CURL_VERSION_KERBEROS4 (1<<1) /* kerberos auth is supported */
|
#define CURL_VERSION_KERBEROS4 (1<<1) /* Kerberos V4 auth is supported
|
||||||
|
(deprecated) */
|
||||||
#define CURL_VERSION_SSL (1<<2) /* SSL options are present */
|
#define CURL_VERSION_SSL (1<<2) /* SSL options are present */
|
||||||
#define CURL_VERSION_LIBZ (1<<3) /* libz features are present */
|
#define CURL_VERSION_LIBZ (1<<3) /* libz features are present */
|
||||||
#define CURL_VERSION_NTLM (1<<4) /* NTLM auth is supported */
|
#define CURL_VERSION_NTLM (1<<4) /* NTLM auth is supported */
|
||||||
#define CURL_VERSION_GSSNEGOTIATE (1<<5) /* Negotiate auth support */
|
#define CURL_VERSION_GSSNEGOTIATE (1<<5) /* Negotiate auth is supported
|
||||||
#define CURL_VERSION_DEBUG (1<<6) /* built with debug capabilities */
|
(deprecated) */
|
||||||
#define CURL_VERSION_ASYNCHDNS (1<<7) /* asynchronous dns resolves */
|
#define CURL_VERSION_DEBUG (1<<6) /* Built with debug capabilities */
|
||||||
#define CURL_VERSION_SPNEGO (1<<8) /* SPNEGO auth */
|
#define CURL_VERSION_ASYNCHDNS (1<<7) /* Asynchronous DNS resolves */
|
||||||
#define CURL_VERSION_LARGEFILE (1<<9) /* supports files bigger than 2GB */
|
#define CURL_VERSION_SPNEGO (1<<8) /* SPNEGO auth is supported */
|
||||||
#define CURL_VERSION_IDN (1<<10) /* International Domain Names support */
|
#define CURL_VERSION_LARGEFILE (1<<9) /* Supports files larger than 2GB */
|
||||||
#define CURL_VERSION_SSPI (1<<11) /* SSPI is supported */
|
#define CURL_VERSION_IDN (1<<10) /* Internationized Domain Names are
|
||||||
#define CURL_VERSION_CONV (1<<12) /* character conversions supported */
|
supported */
|
||||||
#define CURL_VERSION_CURLDEBUG (1<<13) /* debug memory tracking supported */
|
#define CURL_VERSION_SSPI (1<<11) /* Built against Windows SSPI */
|
||||||
|
#define CURL_VERSION_CONV (1<<12) /* Character conversions supported */
|
||||||
|
#define CURL_VERSION_CURLDEBUG (1<<13) /* Debug memory tracking supported */
|
||||||
#define CURL_VERSION_TLSAUTH_SRP (1<<14) /* TLS-SRP auth is supported */
|
#define CURL_VERSION_TLSAUTH_SRP (1<<14) /* TLS-SRP auth is supported */
|
||||||
#define CURL_VERSION_NTLM_WB (1<<15) /* NTLM delegating to winbind helper */
|
#define CURL_VERSION_NTLM_WB (1<<15) /* NTLM delegation to winbind helper
|
||||||
|
is suported */
|
||||||
|
#define CURL_VERSION_HTTP2 (1<<16) /* HTTP2 support built-in */
|
||||||
|
#define CURL_VERSION_GSSAPI (1<<17) /* Built against a GSS-API library */
|
||||||
|
#define CURL_VERSION_KERBEROS5 (1<<18) /* Kerberos V5 auth is supported */
|
||||||
|
#define CURL_VERSION_UNIX_SOCKETS (1<<19) /* Unix domain sockets support */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* NAME curl_version_info()
|
* NAME curl_version_info()
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
|
@ -527,7 +527,8 @@
|
||||||
/* ===================================== */
|
/* ===================================== */
|
||||||
|
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
# if defined(__i386__) || defined(__ppc__)
|
# if defined(__ILP32__) || \
|
||||||
|
defined(__i386__) || defined(__ppc__) || defined(__arm__) || defined(__sparc__)
|
||||||
# define CURL_SIZEOF_LONG 4
|
# define CURL_SIZEOF_LONG 4
|
||||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||||
|
@ -536,7 +537,8 @@
|
||||||
# define CURL_SIZEOF_CURL_OFF_T 8
|
# define CURL_SIZEOF_CURL_OFF_T 8
|
||||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||||
# elif defined(__x86_64__) || defined(__ppc64__)
|
# elif defined(__LP64__) || \
|
||||||
|
defined(__x86_64__) || defined(__ppc64__) || defined(__sparc64__)
|
||||||
# define CURL_SIZEOF_LONG 8
|
# define CURL_SIZEOF_LONG 8
|
||||||
# define CURL_TYPEOF_CURL_OFF_T long
|
# define CURL_TYPEOF_CURL_OFF_T long
|
||||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||||
|
|
|
@ -58,51 +58,52 @@
|
||||||
/* ================================================================ */
|
/* ================================================================ */
|
||||||
|
|
||||||
#ifdef CURL_SIZEOF_LONG
|
#ifdef CURL_SIZEOF_LONG
|
||||||
# error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h"
|
#error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h"
|
||||||
Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined
|
Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CURL_TYPEOF_CURL_SOCKLEN_T
|
#ifdef CURL_TYPEOF_CURL_SOCKLEN_T
|
||||||
# error "CURL_TYPEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
|
#error "CURL_TYPEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
|
||||||
Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_already_defined
|
Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_already_defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CURL_SIZEOF_CURL_SOCKLEN_T
|
#ifdef CURL_SIZEOF_CURL_SOCKLEN_T
|
||||||
# error "CURL_SIZEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
|
#error "CURL_SIZEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
|
||||||
Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_already_defined
|
Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_already_defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CURL_TYPEOF_CURL_OFF_T
|
#ifdef CURL_TYPEOF_CURL_OFF_T
|
||||||
# error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
|
#error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
|
||||||
Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined
|
Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CURL_FORMAT_CURL_OFF_T
|
#ifdef CURL_FORMAT_CURL_OFF_T
|
||||||
# error "CURL_FORMAT_CURL_OFF_T shall not be defined except in curlbuild.h"
|
#error "CURL_FORMAT_CURL_OFF_T shall not be defined except in curlbuild.h"
|
||||||
Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_already_defined
|
Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_already_defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CURL_FORMAT_CURL_OFF_TU
|
#ifdef CURL_FORMAT_CURL_OFF_TU
|
||||||
# error "CURL_FORMAT_CURL_OFF_TU shall not be defined except in curlbuild.h"
|
#error "CURL_FORMAT_CURL_OFF_TU shall not be defined except in curlbuild.h"
|
||||||
Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_already_defined
|
Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_already_defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CURL_FORMAT_OFF_T
|
#ifdef CURL_FORMAT_OFF_T
|
||||||
# error "CURL_FORMAT_OFF_T shall not be defined except in curlbuild.h"
|
#error "CURL_FORMAT_OFF_T shall not be defined except in curlbuild.h"
|
||||||
Error Compilation_aborted_CURL_FORMAT_OFF_T_already_defined
|
Error Compilation_aborted_CURL_FORMAT_OFF_T_already_defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CURL_SIZEOF_CURL_OFF_T
|
#ifdef CURL_SIZEOF_CURL_OFF_T
|
||||||
# error "CURL_SIZEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
|
#error "CURL_SIZEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
|
||||||
Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined
|
Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CURL_SUFFIX_CURL_OFF_T
|
#ifdef CURL_SUFFIX_CURL_OFF_T
|
||||||
# error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h"
|
#error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h"
|
||||||
Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined
|
Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CURL_SUFFIX_CURL_OFF_TU
|
#ifdef CURL_SUFFIX_CURL_OFF_TU
|
||||||
# error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h"
|
#error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h"
|
||||||
Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined
|
Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -110,71 +111,87 @@
|
||||||
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */
|
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */
|
||||||
/* ================================================================ */
|
/* ================================================================ */
|
||||||
|
|
||||||
|
/* Configure process defines this to 1 when it finds out that system */
|
||||||
|
/* header file ws2tcpip.h must be included by the external interface. */
|
||||||
|
#cmakedefine CURL_PULL_WS2TCPIP_H
|
||||||
|
#ifdef CURL_PULL_WS2TCPIP_H
|
||||||
|
# ifndef WIN32_LEAN_AND_MEAN
|
||||||
|
# define WIN32_LEAN_AND_MEAN
|
||||||
|
# endif
|
||||||
|
# include <windows.h>
|
||||||
|
# include <winsock2.h>
|
||||||
|
# include <ws2tcpip.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Configure process defines this to 1 when it finds out that system */
|
/* Configure process defines this to 1 when it finds out that system */
|
||||||
/* header file sys/types.h must be included by the external interface. */
|
/* header file sys/types.h must be included by the external interface. */
|
||||||
#cmakedefine CURL_PULL_SYS_TYPES_H ${CURL_PULL_SYS_TYPES_H}
|
#cmakedefine CURL_PULL_SYS_TYPES_H
|
||||||
#ifdef CURL_PULL_SYS_TYPES_H
|
#ifdef CURL_PULL_SYS_TYPES_H
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Configure process defines this to 1 when it finds out that system */
|
/* Configure process defines this to 1 when it finds out that system */
|
||||||
/* header file stdint.h must be included by the external interface. */
|
/* header file stdint.h must be included by the external interface. */
|
||||||
#cmakedefine CURL_PULL_STDINT_H ${CURL_PULL_STDINT_H}
|
#cmakedefine CURL_PULL_STDINT_H
|
||||||
#ifdef CURL_PULL_STDINT_H
|
#ifdef CURL_PULL_STDINT_H
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Configure process defines this to 1 when it finds out that system */
|
/* Configure process defines this to 1 when it finds out that system */
|
||||||
/* header file inttypes.h must be included by the external interface. */
|
/* header file inttypes.h must be included by the external interface. */
|
||||||
#cmakedefine CURL_PULL_INTTYPES_H ${CURL_PULL_INTTYPES_H}
|
#cmakedefine CURL_PULL_INTTYPES_H
|
||||||
#ifdef CURL_PULL_INTTYPES_H
|
#ifdef CURL_PULL_INTTYPES_H
|
||||||
# include <inttypes.h>
|
# include <inttypes.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The size of `long', as computed by sizeof. */
|
/* Configure process defines this to 1 when it finds out that system */
|
||||||
#cmakedefine CURL_SIZEOF_LONG ${CURL_SIZEOF_LONG}
|
/* header file sys/socket.h must be included by the external interface. */
|
||||||
|
#cmakedefine CURL_PULL_SYS_SOCKET_H
|
||||||
/* Integral data type used for curl_socklen_t. */
|
#ifdef CURL_PULL_SYS_SOCKET_H
|
||||||
#cmakedefine CURL_TYPEOF_CURL_SOCKLEN_T ${CURL_TYPEOF_CURL_SOCKLEN_T}
|
|
||||||
|
|
||||||
/* on windows socklen_t is in here */
|
|
||||||
#ifdef _WIN32
|
|
||||||
# include <winsock2.h>
|
|
||||||
# include <ws2tcpip.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_SYS_SOCKET_H
|
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Configure process defines this to 1 when it finds out that system */
|
||||||
|
/* header file sys/poll.h must be included by the external interface. */
|
||||||
|
#cmakedefine CURL_PULL_SYS_POLL_H
|
||||||
|
#ifdef CURL_PULL_SYS_POLL_H
|
||||||
|
# include <sys/poll.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* The size of `long', as computed by sizeof. */
|
||||||
|
#define CURL_SIZEOF_LONG ${CURL_SIZEOF_LONG}
|
||||||
|
|
||||||
|
/* Integral data type used for curl_socklen_t. */
|
||||||
|
#define CURL_TYPEOF_CURL_SOCKLEN_T ${CURL_TYPEOF_CURL_SOCKLEN_T}
|
||||||
|
|
||||||
|
/* The size of `curl_socklen_t', as computed by sizeof. */
|
||||||
|
#define CURL_SIZEOF_CURL_SOCKLEN_T ${CURL_SIZEOF_CURL_SOCKLEN_T}
|
||||||
|
|
||||||
/* Data type definition of curl_socklen_t. */
|
/* Data type definition of curl_socklen_t. */
|
||||||
typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;
|
typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;
|
||||||
|
|
||||||
/* The size of `curl_socklen_t', as computed by sizeof. */
|
|
||||||
#cmakedefine CURL_SIZEOF_CURL_SOCKLEN_T ${CURL_SIZEOF_CURL_SOCKLEN_T}
|
|
||||||
|
|
||||||
/* Signed integral data type used for curl_off_t. */
|
/* Signed integral data type used for curl_off_t. */
|
||||||
#cmakedefine CURL_TYPEOF_CURL_OFF_T ${CURL_TYPEOF_CURL_OFF_T}
|
#define CURL_TYPEOF_CURL_OFF_T ${CURL_TYPEOF_CURL_OFF_T}
|
||||||
|
|
||||||
/* Data type definition of curl_off_t. */
|
/* Data type definition of curl_off_t. */
|
||||||
typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;
|
typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;
|
||||||
|
|
||||||
/* curl_off_t formatting string directive without "%" conversion specifier. */
|
/* curl_off_t formatting string directive without "%" conversion specifier. */
|
||||||
#cmakedefine CURL_FORMAT_CURL_OFF_T "${CURL_FORMAT_CURL_OFF_T}"
|
#define CURL_FORMAT_CURL_OFF_T "${CURL_FORMAT_CURL_OFF_T}"
|
||||||
|
|
||||||
/* unsigned curl_off_t formatting string without "%" conversion specifier. */
|
/* unsigned curl_off_t formatting string without "%" conversion specifier. */
|
||||||
#cmakedefine CURL_FORMAT_CURL_OFF_TU "${CURL_FORMAT_CURL_OFF_TU}"
|
#define CURL_FORMAT_CURL_OFF_TU "${CURL_FORMAT_CURL_OFF_TU}"
|
||||||
|
|
||||||
/* curl_off_t formatting string directive with "%" conversion specifier. */
|
/* curl_off_t formatting string directive with "%" conversion specifier. */
|
||||||
#cmakedefine CURL_FORMAT_OFF_T "${CURL_FORMAT_OFF_T}"
|
#define CURL_FORMAT_OFF_T "${CURL_FORMAT_OFF_T}"
|
||||||
|
|
||||||
/* The size of `curl_off_t', as computed by sizeof. */
|
/* The size of `curl_off_t', as computed by sizeof. */
|
||||||
#cmakedefine CURL_SIZEOF_CURL_OFF_T ${CURL_SIZEOF_CURL_OFF_T}
|
#define CURL_SIZEOF_CURL_OFF_T ${CURL_SIZEOF_CURL_OFF_T}
|
||||||
|
|
||||||
/* curl_off_t constant suffix. */
|
/* curl_off_t constant suffix. */
|
||||||
#cmakedefine CURL_SUFFIX_CURL_OFF_T ${CURL_SUFFIX_CURL_OFF_T}
|
#define CURL_SUFFIX_CURL_OFF_T ${CURL_SUFFIX_CURL_OFF_T}
|
||||||
|
|
||||||
/* unsigned curl_off_t constant suffix. */
|
/* unsigned curl_off_t constant suffix. */
|
||||||
#cmakedefine CURL_SUFFIX_CURL_OFF_TU ${CURL_SUFFIX_CURL_OFF_TU}
|
#define CURL_SUFFIX_CURL_OFF_TU ${CURL_SUFFIX_CURL_OFF_TU}
|
||||||
|
|
||||||
#endif /* __CURL_CURLBUILD_H */
|
#endif /* __CURL_CURLBUILD_H */
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
|
@ -26,16 +26,16 @@
|
||||||
a script at release-time. This was made its own header file in 7.11.2 */
|
a script at release-time. This was made its own header file in 7.11.2 */
|
||||||
|
|
||||||
/* This is the global package copyright */
|
/* This is the global package copyright */
|
||||||
#define LIBCURL_COPYRIGHT "1996 - 2013 Daniel Stenberg, <daniel@haxx.se>."
|
#define LIBCURL_COPYRIGHT "1996 - 2015 Daniel Stenberg, <daniel@haxx.se>."
|
||||||
|
|
||||||
/* This is the version number of the libcurl package from which this header
|
/* This is the version number of the libcurl package from which this header
|
||||||
file origins: */
|
file origins: */
|
||||||
#define LIBCURL_VERSION "7.29.0"
|
#define LIBCURL_VERSION "7.40.0"
|
||||||
|
|
||||||
/* The numeric version number is also available "in parts" by using these
|
/* The numeric version number is also available "in parts" by using these
|
||||||
defines: */
|
defines: */
|
||||||
#define LIBCURL_VERSION_MAJOR 7
|
#define LIBCURL_VERSION_MAJOR 7
|
||||||
#define LIBCURL_VERSION_MINOR 29
|
#define LIBCURL_VERSION_MINOR 40
|
||||||
#define LIBCURL_VERSION_PATCH 0
|
#define LIBCURL_VERSION_PATCH 0
|
||||||
|
|
||||||
/* This is the numeric version of the libcurl version number, meant for easier
|
/* This is the numeric version of the libcurl version number, meant for easier
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
and it is always a greater number in a more recent release. It makes
|
and it is always a greater number in a more recent release. It makes
|
||||||
comparisons with greater than and less than work.
|
comparisons with greater than and less than work.
|
||||||
*/
|
*/
|
||||||
#define LIBCURL_VERSION_NUM 0x071d00
|
#define LIBCURL_VERSION_NUM 0x072800
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is the date and time when the full source package was created. The
|
* This is the date and time when the full source package was created. The
|
||||||
|
@ -64,6 +64,6 @@
|
||||||
*
|
*
|
||||||
* "Mon Feb 12 11:35:33 UTC 2007"
|
* "Mon Feb 12 11:35:33 UTC 2007"
|
||||||
*/
|
*/
|
||||||
#define LIBCURL_TIMESTAMP "Wed Feb 6 10:13:08 UTC 2013"
|
#define LIBCURL_TIMESTAMP "Thu Jan 8 08:17:17 UTC 2015"
|
||||||
|
|
||||||
#endif /* __CURL_CURLVER_H */
|
#endif /* __CURL_CURLVER_H */
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
|
@ -58,7 +58,7 @@ CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args);
|
||||||
# define printf curl_mprintf
|
# define printf curl_mprintf
|
||||||
# define fprintf curl_mfprintf
|
# define fprintf curl_mfprintf
|
||||||
#ifdef CURLDEBUG
|
#ifdef CURLDEBUG
|
||||||
/* When built with CURLDEBUG we define away the sprintf() functions since we
|
/* When built with CURLDEBUG we define away the sprintf functions since we
|
||||||
don't want internal code to be using them */
|
don't want internal code to be using them */
|
||||||
# define sprintf sprintf_was_used
|
# define sprintf sprintf_was_used
|
||||||
# define vsprintf vsprintf_was_used
|
# define vsprintf vsprintf_was_used
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
|
@ -64,6 +64,8 @@ typedef enum {
|
||||||
CURLM_INTERNAL_ERROR, /* this is a libcurl bug */
|
CURLM_INTERNAL_ERROR, /* this is a libcurl bug */
|
||||||
CURLM_BAD_SOCKET, /* the passed in socket argument did not match */
|
CURLM_BAD_SOCKET, /* the passed in socket argument did not match */
|
||||||
CURLM_UNKNOWN_OPTION, /* curl_multi_setopt() with unsupported option */
|
CURLM_UNKNOWN_OPTION, /* curl_multi_setopt() with unsupported option */
|
||||||
|
CURLM_ADDED_ALREADY, /* an easy handle already added to a multi handle was
|
||||||
|
attempted to get added - again */
|
||||||
CURLM_LAST
|
CURLM_LAST
|
||||||
} CURLMcode;
|
} CURLMcode;
|
||||||
|
|
||||||
|
@ -338,6 +340,31 @@ typedef enum {
|
||||||
/* maximum number of entries in the connection cache */
|
/* maximum number of entries in the connection cache */
|
||||||
CINIT(MAXCONNECTS, LONG, 6),
|
CINIT(MAXCONNECTS, LONG, 6),
|
||||||
|
|
||||||
|
/* maximum number of (pipelining) connections to one host */
|
||||||
|
CINIT(MAX_HOST_CONNECTIONS, LONG, 7),
|
||||||
|
|
||||||
|
/* maximum number of requests in a pipeline */
|
||||||
|
CINIT(MAX_PIPELINE_LENGTH, LONG, 8),
|
||||||
|
|
||||||
|
/* a connection with a content-length longer than this
|
||||||
|
will not be considered for pipelining */
|
||||||
|
CINIT(CONTENT_LENGTH_PENALTY_SIZE, OFF_T, 9),
|
||||||
|
|
||||||
|
/* a connection with a chunk length longer than this
|
||||||
|
will not be considered for pipelining */
|
||||||
|
CINIT(CHUNK_LENGTH_PENALTY_SIZE, OFF_T, 10),
|
||||||
|
|
||||||
|
/* a list of site names(+port) that are blacklisted from
|
||||||
|
pipelining */
|
||||||
|
CINIT(PIPELINING_SITE_BL, OBJECTPOINT, 11),
|
||||||
|
|
||||||
|
/* a list of server types that are blacklisted from
|
||||||
|
pipelining */
|
||||||
|
CINIT(PIPELINING_SERVER_BL, OBJECTPOINT, 12),
|
||||||
|
|
||||||
|
/* maximum number of open connections in total */
|
||||||
|
CINIT(MAX_TOTAL_CONNECTIONS, LONG, 13),
|
||||||
|
|
||||||
CURLMOPT_LASTENTRY /* the last unused */
|
CURLMOPT_LASTENTRY /* the last unused */
|
||||||
} CURLMoption;
|
} CURLMoption;
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
|
@ -264,6 +264,12 @@ _CURL_WARNING(_curl_easy_getinfo_err_curl_slist,
|
||||||
(option) == CURLOPT_RTSP_SESSION_ID || \
|
(option) == CURLOPT_RTSP_SESSION_ID || \
|
||||||
(option) == CURLOPT_RTSP_STREAM_URI || \
|
(option) == CURLOPT_RTSP_STREAM_URI || \
|
||||||
(option) == CURLOPT_RTSP_TRANSPORT || \
|
(option) == CURLOPT_RTSP_TRANSPORT || \
|
||||||
|
(option) == CURLOPT_XOAUTH2_BEARER || \
|
||||||
|
(option) == CURLOPT_DNS_SERVERS || \
|
||||||
|
(option) == CURLOPT_DNS_INTERFACE || \
|
||||||
|
(option) == CURLOPT_DNS_LOCAL_IP4 || \
|
||||||
|
(option) == CURLOPT_DNS_LOCAL_IP6 || \
|
||||||
|
(option) == CURLOPT_LOGIN_OPTIONS || \
|
||||||
0)
|
0)
|
||||||
|
|
||||||
/* evaluates to true if option takes a curl_write_callback argument */
|
/* evaluates to true if option takes a curl_write_callback argument */
|
||||||
|
@ -285,7 +291,7 @@ _CURL_WARNING(_curl_easy_getinfo_err_curl_slist,
|
||||||
(option) == CURLOPT_SOCKOPTDATA || \
|
(option) == CURLOPT_SOCKOPTDATA || \
|
||||||
(option) == CURLOPT_OPENSOCKETDATA || \
|
(option) == CURLOPT_OPENSOCKETDATA || \
|
||||||
(option) == CURLOPT_PROGRESSDATA || \
|
(option) == CURLOPT_PROGRESSDATA || \
|
||||||
(option) == CURLOPT_WRITEHEADER || \
|
(option) == CURLOPT_HEADERDATA || \
|
||||||
(option) == CURLOPT_DEBUGDATA || \
|
(option) == CURLOPT_DEBUGDATA || \
|
||||||
(option) == CURLOPT_SSL_CTX_DATA || \
|
(option) == CURLOPT_SSL_CTX_DATA || \
|
||||||
(option) == CURLOPT_SEEKDATA || \
|
(option) == CURLOPT_SEEKDATA || \
|
||||||
|
|
|
@ -22,7 +22,7 @@ void CGameContext::ConCredits(IConsole::IResult *pResult, void *pUserData)
|
||||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit",
|
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit",
|
||||||
"Many ideas from the great community,");
|
"Many ideas from the great community,");
|
||||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit",
|
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit",
|
||||||
"Help and code by eeeee, HMH, east, CookieMichal,");
|
"Help and code by eeeee, HMH, east, CookieMichal, Learath2,");
|
||||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit",
|
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit",
|
||||||
"Savander, laxa, Tobii, BeaR, Wohoo, nuborn, DoNe & others.");
|
"Savander, laxa, Tobii, BeaR, Wohoo, nuborn, DoNe & others.");
|
||||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit",
|
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit",
|
||||||
|
|
Loading…
Reference in a new issue