32 #define PORT_TELNET 23
33 #define PORT_GOPHER 70
35 #define PORT_HTTPS 443
36 #define PORT_DICT 2628
39 #define DICT_MATCH "/MATCH:"
40 #define DICT_MATCH2 "/M:"
41 #define DICT_MATCH3 "/FIND:"
42 #define DICT_DEFINE "/DEFINE:"
43 #define DICT_DEFINE2 "/D:"
44 #define DICT_DEFINE3 "/LOOKUP:"
46 #define CURL_DEFAULT_USER "anonymous"
47 #define CURL_DEFAULT_PASSWORD "curl_by_daniel@haxx.se"
55 #include "openssl/rsa.h"
56 #include "openssl/crypto.h"
57 #include "openssl/x509.h"
58 #include "openssl/pem.h"
59 #include "openssl/ssl.h"
60 #include "openssl/err.h"
61 #ifdef HAVE_OPENSSL_ENGINE_H
62 #include <openssl/engine.h>
74 #ifdef HAVE_NETINET_IN_H
75 #include <netinet/in.h>
92 #include <gssapi/gssapi.h>
93 #include <gssapi/gssapi_generic.h>
104 #define BUFSIZE CURL_MAX_WRITE_SIZE
108 #define HEADERSIZE 256
111 #define CURL_MAX_FTP_DIRDEPTH 100
115 #define CURLMAX(x,y) ((x)>(y)?(x):(y))
125 enum protection_level {
193 struct negotiatedata {
195 const char* protocol;
198 gss_name_t server_name;
199 gss_buffer_desc output_token;
383 #if defined(USE_ARES) || defined(USE_THREADING_GETHOSTBYNAME)
394 #define FIRSTSOCKET 0
395 #define SECONDARYSOCKET 1
408 #define PROT_MISSING (1<<0)
409 #define PROT_GOPHER (1<<1)
410 #define PROT_HTTP (1<<2)
411 #define PROT_HTTPS (1<<3)
412 #define PROT_FTP (1<<4)
413 #define PROT_TELNET (1<<5)
414 #define PROT_DICT (1<<6)
415 #define PROT_LDAP (1<<7)
416 #define PROT_FILE (1<<8)
417 #define PROT_FTPS (1<<9)
418 #define PROT_SSL (1<<10)
521 enum protection_level command_prot;
522 enum protection_level data_prot;
523 enum protection_level request_data_prot;
527 struct krb4buffer in_buffer, out_buffer;
532 struct sockaddr_in local_addr;
575 #if defined(USE_ARES) || defined(USE_THREADING_GETHOSTBYNAME)
577 struct Curl_async async;
631 #define CURR_TIME (5+1)
656 #define MAX_CURL_USER_LENGTH 256
657 #define MAX_CURL_PASSWORD_LENGTH 256
658 #define MAX_CURL_USER_LENGTH_TXT "255"
659 #define MAX_CURL_PASSWORD_LENGTH_TXT "255"
701 void (*prev_signal)(
int sig);
709 struct negotiatedata negotiate;
721 ares_channel areschannel;
860 #define http_include_header include_header
906 #if defined(USE_SSLEAY) && defined(HAVE_OPENSSL_ENGINE_H)
911 #define LIBCURL_NAME "libcurl"
struct ssl_connect_data ssl[2]
char * dirs[CURL_MAX_FTP_DIRDEPTH]
struct CookieInfo * cookies
struct connectdata ** connects
struct Curl_transfer_keeper keep
union connectdata::@11 proto
CURLcode(* curl_close)(struct connectdata *)
bool http_disable_hostname_check_before_authentication
curl_closepolicy closepolicy
curl_write_callback fwrite_header
struct curl_slist * http200aliases
CURLcode(* curl_disconnect)(struct connectdata *)
struct curl_ssl_session * session
CURLcode(* curl_done)(struct connectdata *)
struct curl_slist * quote
unsigned short remote_port
size_t(* curl_write_callback)(char *buffer, size_t size, size_t nitems, void *outstream)
#define CURL_MAX_FTP_DIRDEPTH
long ftp_response_timeout
enum Curl_transfer_keeper::@10 badheader
struct ssl_config_data ssl_config
curl_off_t set_resume_from
CURLcode(* curl_do_more)(struct connectdata *)
bool tunnel_thru_httpproxy
CURLcode(* curl_connect)(struct connectdata *)
bool write_after_100_header
int(* curl_debug_callback)(CURL *handle, curl_infotype type, char *data, size_t size, void *userptr)
struct ntlmdata proxyntlm
struct ssl_config_data ssl_config
struct curl_slist * headers
bool ftp_create_missing_dirs
GLsizei GLsizei GLenum GLenum const GLvoid * data
struct Curl_share * share
curl_debug_callback fdebug
curl_ssl_ctx_callback fsslctx
struct SessionHandle * data
struct curl_slist * telnet_options
struct curl_slist * cookielist
curl_socket_t writesockfd
curl_progress_callback fprogress
bool wait100_after_headers
curl_off_t * writebytecountp
struct curl_slist * postquote
struct Curl_dns_entry * connect_addr
curl_write_callback fwrite
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
curl_off_t writebytecount
int(* curl_progress_callback)(void *clientp, double dltotal, double dlnow, double ultotal, double ulnow)
struct Curl_chunker chunk
CURLcode(* curl_ssl_ctx_callback)(CURL *curl, void *ssl_ctx, void *userptr)
struct curl_slist * prequote
unsigned short remote_port
bool http_follow_location
struct connectdata::dynamically_allocated_data allocptr
size_t(* curl_read_callback)(char *buffer, size_t size, size_t nitems, void *instream)
CURLcode(* curl_do)(struct connectdata *)
struct curl_httppost * httppost
curl_TimeCond timecondition
Dynamicly allocated strings, may need to be freed before this.
struct sockaddr_in serv_addr