diff --git a/mingw-w64-headers/include/wininet.h b/mingw-w64-headers/include/wininet.h index bb19d65d2..61c3a11b7 100644 --- a/mingw-w64-headers/include/wininet.h +++ b/mingw-w64-headers/include/wininet.h @@ -61,6 +61,9 @@ extern "C" { #define INTERNET_REQFLAG_CACHE_WRITE_DISABLED 0x00000040 #define INTERNET_REQFLAG_NET_TIMEOUT 0x00000080 +#define INTERNET_FLAG_IDN_DIRECT 0x00000001 +#define INTERNET_FLAG_IDN_PROXY 0x00000002 + #define INTERNET_FLAG_RELOAD 0x80000000 #define INTERNET_FLAG_RAW_DATA 0x40000000 @@ -104,6 +107,7 @@ extern "C" { #define INTERNET_FLAG_TRANSFER_BINARY FTP_TRANSFER_TYPE_BINARY #define SECURITY_INTERNET_MASK (INTERNET_FLAG_IGNORE_CERT_CN_INVALID | INTERNET_FLAG_IGNORE_CERT_DATE_INVALID | INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS | INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP) +#define SECURITY_IGNORE_ERROR_MASK (INTERNET_FLAG_IGNORE_CERT_CN_INVALID | INTERNET_FLAG_IGNORE_CERT_DATE_INVALID | SECURITY_FLAG_IGNORE_UNKNOWN_CA | SECURITY_FLAG_IGNORE_REVOCATION | SECURITY_FLAG_IGNORE_WEAK_SIGNATURE) #define INTERNET_FLAGS_MASK (INTERNET_FLAG_RELOAD | INTERNET_FLAG_RAW_DATA | INTERNET_FLAG_EXISTING_CONNECT | INTERNET_FLAG_ASYNC | INTERNET_FLAG_PASSIVE | INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_MAKE_PERSISTENT | INTERNET_FLAG_FROM_CACHE | INTERNET_FLAG_SECURE | INTERNET_FLAG_KEEP_CONNECTION | INTERNET_FLAG_NO_AUTO_REDIRECT | INTERNET_FLAG_READ_PREFETCH | INTERNET_FLAG_NO_COOKIES | INTERNET_FLAG_NO_AUTH | INTERNET_FLAG_CACHE_IF_NET_FAIL | SECURITY_INTERNET_MASK | INTERNET_FLAG_RESYNCHRONIZE | INTERNET_FLAG_HYPERLINK | INTERNET_FLAG_NO_UI | INTERNET_FLAG_PRAGMA_NOCACHE | INTERNET_FLAG_CACHE_ASYNC | INTERNET_FLAG_FORMS_SUBMIT | INTERNET_FLAG_NEED_FILE | INTERNET_FLAG_RESTRICTED_ZONE | INTERNET_FLAG_TRANSFER_BINARY | INTERNET_FLAG_TRANSFER_ASCII | INTERNET_FLAG_FWD_BACK | INTERNET_FLAG_BGUPDATE) #define INTERNET_ERROR_MASK_INSERT_CDROM 0x1 @@ -476,6 +480,7 @@ extern "C" { #define INTERNET_OPTION_ERROR_MASK 62 #define INTERNET_OPTION_FROM_CACHE_TIMEOUT 63 #define INTERNET_OPTION_BYPASS_EDITED_ENTRY 64 +#define INTERNET_OPTION_HTTP_DECODING 65 #define INTERNET_OPTION_DIAGNOSTIC_SOCKET_INFO 67 #define INTERNET_OPTION_CODEPAGE 68 #define INTERNET_OPTION_CACHE_TIMESTAMPS 69 @@ -507,11 +512,47 @@ extern "C" { #define INTERNET_OPTION_DATAFILE_EXT 96 +#define INTERNET_OPTION_CODEPAGE_PATH 100 +#define INTERNET_OPTION_CODEPAGE_EXTRA 101 +#define INTERNET_OPTION_IDN 102 +#define INTERNET_OPTION_MAX_CONNS_PER_PROXY 103 +#define INTERNET_OPTION_SUPPRESS_SERVER_AUTH 104 +#define INTERNET_OPTION_SERVER_CERT_CHAIN_CONTEXT 105 + +#define INTERNET_OPTION_ENABLE_REDIRECT_CACHE_READ 122 + +#define INTERNET_OPTION_COMPRESSED_CONTENT_LENGTH 147 +#define INTERNET_OPTION_ENABLE_HTTP_PROTOCOL 148 +#define INTERNET_OPTION_HTTP_PROTOCOL_USED 149 + +#define INTERNET_OPTION_ENCODE_EXTRA 155 + +#define INTERNET_OPTION_HSTS 157 + +#define INTERNET_OPTION_ENTERPRISE_CONTEXT 159 + +#define INTERNET_OPTION_CONNECTION_FILTER 162 +#define INTERNET_OPTION_REFERER_TOKEN_BINDING_HOSTNAME 163 + +#define INTERNET_OPTION_TOKEN_BINDING_PUBLIC_KEY 181 + +#define INTERNET_OPTION_COOKIES_SAME_SITE_LEVEL 187 + #define INTERNET_FIRST_OPTION INTERNET_OPTION_CALLBACK #define INTERNET_LAST_OPTION INTERNET_OPTION_DATAFILE_EXT #define INTERNET_PRIORITY_FOREGROUND 1000 +#define HTTP_COOKIES_SAME_SITE_LEVEL_UNKNOWN 0x0 +#define HTTP_COOKIES_SAME_SITE_LEVEL_SAME_SITE 0x1 +#define HTTP_COOKIES_SAME_SITE_LEVEL_CROSS_SITE_LAX 0x2 +#define HTTP_COOKIES_SAME_SITE_LEVEL_CROSS_SITE 0x3 + +#define HTTP_COOKIES_SAME_SITE_LEVEL_MAX HTTP_COOKIES_SAME_SITE_LEVEL_CROSS_SITE + +#define HTTP_PROTOCOL_FLAG_HTTP2 0x2 +#define HTTP_PROTOCOL_MASK HTTP_PROTOCOL_FLAG_HTTP2 + #define INTERNET_HANDLE_TYPE_INTERNET 1 #define INTERNET_HANDLE_TYPE_CONNECT_FTP 2 #define INTERNET_HANDLE_TYPE_CONNECT_GOPHER 3 @@ -530,6 +571,7 @@ extern "C" { #define AUTH_FLAG_DISABLE_NEGOTIATE 0x00000001 #define AUTH_FLAG_ENABLE_NEGOTIATE 0x00000002 #define AUTH_FLAG_DISABLE_BASIC_CLEARCHANNEL 0x00000004 +#define AUTH_FLAG_DISABLE_SERVER_AUTH 0x00000008 #define SECURITY_FLAG_SECURE 0x00000001 #define SECURITY_FLAG_STRENGTH_WEAK 0x10000000 @@ -552,6 +594,7 @@ extern "C" { #define SECURITY_FLAG_IGNORE_REVOCATION 0x00000080 #define SECURITY_FLAG_IGNORE_UNKNOWN_CA 0x00000100 #define SECURITY_FLAG_IGNORE_WRONG_USAGE 0x00000200 +#define SECURITY_FLAG_IGNORE_WEAK_SIGNATURE 0x00010000 #define SECURITY_FLAG_IGNORE_CERT_CN_INVALID INTERNET_FLAG_IGNORE_CERT_CN_INVALID #define SECURITY_FLAG_IGNORE_CERT_DATE_INVALID INTERNET_FLAG_IGNORE_CERT_DATE_INVALID @@ -561,6 +604,8 @@ extern "C" { #define SECURITY_SET_MASK (SECURITY_FLAG_IGNORE_REVOCATION | SECURITY_FLAG_IGNORE_UNKNOWN_CA | SECURITY_FLAG_IGNORE_CERT_CN_INVALID | SECURITY_FLAG_IGNORE_CERT_DATE_INVALID | SECURITY_FLAG_IGNORE_WRONG_USAGE) +#define SECURITY_FLAG_OPT_IN_WEAK_SIGNATURE 0x00020000 + #define AUTODIAL_MODE_NEVER 1 #define AUTODIAL_MODE_ALWAYS 2 #define AUTODIAL_MODE_NO_NETWORK_PRESENT 4 @@ -1035,6 +1080,33 @@ extern "C" { #define HTTP_QUERY_PASSPORT_URLS 77 #define HTTP_QUERY_PASSPORT_CONFIG 78 +#define HTTP_QUERY_X_CONTENT_TYPE_OPTIONS 79 +#define HTTP_QUERY_P3P 80 +#define HTTP_QUERY_X_P2P_PEERDIST 81 +#define HTTP_QUERY_TRANSLATE 82 +#define HTTP_QUERY_X_UA_COMPATIBLE 83 +#define HTTP_QUERY_DEFAULT_STYLE 84 +#define HTTP_QUERY_X_FRAME_OPTIONS 85 +#define HTTP_QUERY_X_XSS_PROTECTION 86 + +#define HTTP_QUERY_SET_COOKIE2 87 + +#define HTTP_QUERY_DO_NOT_TRACK 88 + +#define HTTP_QUERY_KEEP_ALIVE 89 + +#define HTTP_QUERY_HTTP2_SETTINGS 90 + +#define HTTP_QUERY_STRICT_TRANSPORT_SECURITY 91 + +#define HTTP_QUERY_TOKEN_BINDING 92 + +#define HTTP_QUERY_INCLUDE_REFERRED_TOKEN_BINDING_ID 93 +#define HTTP_QUERY_INCLUDE_REFERER_TOKEN_BINDING_ID HTTP_QUERY_INCLUDE_REFERRED_TOKEN_BINDING_ID + +#define HTTP_QUERY_PUBLIC_KEY_PINS 94 +#define HTTP_QUERY_PUBLIC_KEY_PINS_REPORT_ONLY 95 + #define HTTP_QUERY_MAX 78 #define HTTP_QUERY_CUSTOM 65535 @@ -1042,7 +1114,9 @@ extern "C" { #define HTTP_QUERY_FLAG_SYSTEMTIME 0x40000000 #define HTTP_QUERY_FLAG_NUMBER 0x20000000 #define HTTP_QUERY_FLAG_COALESCE 0x10000000 -#define HTTP_QUERY_MODIFIER_FLAGS_MASK (HTTP_QUERY_FLAG_REQUEST_HEADERS | HTTP_QUERY_FLAG_SYSTEMTIME | HTTP_QUERY_FLAG_NUMBER | HTTP_QUERY_FLAG_COALESCE) +#define HTTP_QUERY_FLAG_NUMBER64 0x08000000 +#define HTTP_QUERY_FLAG_COALESCE_WITH_COMMA 0x04000000 +#define HTTP_QUERY_MODIFIER_FLAGS_MASK (HTTP_QUERY_FLAG_REQUEST_HEADERS | HTTP_QUERY_FLAG_SYSTEMTIME | HTTP_QUERY_FLAG_NUMBER | HTTP_QUERY_FLAG_COALESCE | HTTP_QUERY_FLAG_NUMBER64 | HTTP_QUERY_FLAG_COALESCE_WITH_COMMA) #define HTTP_QUERY_HEADER_MASK (~HTTP_QUERY_MODIFIER_FLAGS_MASK) #define HTTP_STATUS_CONTINUE 100 @@ -1063,6 +1137,7 @@ extern "C" { #define HTTP_STATUS_NOT_MODIFIED 304 #define HTTP_STATUS_USE_PROXY 305 #define HTTP_STATUS_REDIRECT_KEEP_VERB 307 +#define HTTP_STATUS_PERMANENT_REDIRECT 308 #define HTTP_STATUS_BAD_REQUEST 400 #define HTTP_STATUS_DENIED 401 @@ -1080,6 +1155,7 @@ extern "C" { #define HTTP_STATUS_REQUEST_TOO_LARGE 413 #define HTTP_STATUS_URI_TOO_LONG 414 #define HTTP_STATUS_UNSUPPORTED_MEDIA 415 +#define HTTP_STATUS_MISDIRECTED_REQUEST 421 #define HTTP_STATUS_RETRY_WITH 449 #define HTTP_STATUS_SERVER_ERROR 500 @@ -1133,6 +1209,16 @@ extern "C" { BOOLAPI HttpQueryInfoA(HINTERNET hRequest,DWORD dwInfoLevel,LPVOID lpBuffer,LPDWORD lpdwBufferLength,LPDWORD lpdwIndex); BOOLAPI HttpQueryInfoW(HINTERNET hRequest,DWORD dwInfoLevel,LPVOID lpBuffer,LPDWORD lpdwBufferLength,LPDWORD lpdwIndex); + typedef struct { + PWSTR pwszName; + PWSTR pwszValue; + PWSTR pwszDomain; + PWSTR pwszPath; + DWORD dwFlags; + FILETIME ftExpires; + WINBOOL fExpiresSet; + } INTERNET_COOKIE2; + #define INTERNET_COOKIE_IS_SECURE 0x01 #define INTERNET_COOKIE_IS_SESSION 0x02 @@ -1146,6 +1232,16 @@ extern "C" { #define INTERNET_COOKIE_IE6 0x400 #define INTERNET_COOKIE_IS_LEGACY 0x800 +#define INTERNET_COOKIE_NON_SCRIPT 0x00001000 +#define INTERNET_COOKIE_HTTPONLY 0x00002000 +#define INTERNET_COOKIE_HOST_ONLY 0x00004000 +#define INTERNET_COOKIE_APPLY_HOST_ONLY 0x00008000 + +#define INTERNET_COOKIE_HOST_ONLY_APPLIED 0x00080000 +#define INTERNET_COOKIE_SAME_SITE_STRICT 0x00100000 +#define INTERNET_COOKIE_SAME_SITE_LAX 0x00200000 +#define INTERNET_COOKIE_SAME_SITE_LEVEL_CROSS_SITE 0x00400000 + #define InternetSetCookie __MINGW_NAME_AW(InternetSetCookie) #define InternetGetCookie __MINGW_NAME_AW(InternetGetCookie) #define InternetSetCookieEx __MINGW_NAME_AW(InternetSetCookieEx)