Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | /* include/curl/curlbuild.h. Generated from curlbuild.h.in by configure. */ |
michael@0 | 2 | #ifndef __CURL_CURLBUILD_H |
michael@0 | 3 | #define __CURL_CURLBUILD_H |
michael@0 | 4 | /*************************************************************************** |
michael@0 | 5 | * _ _ ____ _ |
michael@0 | 6 | * Project ___| | | | _ \| | |
michael@0 | 7 | * / __| | | | |_) | | |
michael@0 | 8 | * | (__| |_| | _ <| |___ |
michael@0 | 9 | * \___|\___/|_| \_\_____| |
michael@0 | 10 | * |
michael@0 | 11 | * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. |
michael@0 | 12 | * |
michael@0 | 13 | * This software is licensed as described in the file COPYING, which |
michael@0 | 14 | * you should have received as part of this distribution. The terms |
michael@0 | 15 | * are also available at http://curl.haxx.se/docs/copyright.html. |
michael@0 | 16 | * |
michael@0 | 17 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell |
michael@0 | 18 | * copies of the Software, and permit persons to whom the Software is |
michael@0 | 19 | * furnished to do so, under the terms of the COPYING file. |
michael@0 | 20 | * |
michael@0 | 21 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
michael@0 | 22 | * KIND, either express or implied. |
michael@0 | 23 | * |
michael@0 | 24 | * $Id: curlbuild.h.in,v 1.8 2009-04-29 15:15:38 yangtse Exp $ |
michael@0 | 25 | ***************************************************************************/ |
michael@0 | 26 | |
michael@0 | 27 | /* ================================================================ */ |
michael@0 | 28 | /* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
michael@0 | 29 | /* ================================================================ */ |
michael@0 | 30 | |
michael@0 | 31 | /* |
michael@0 | 32 | * NOTE 1: |
michael@0 | 33 | * ------- |
michael@0 | 34 | * |
michael@0 | 35 | * Nothing in this file is intended to be modified or adjusted by the |
michael@0 | 36 | * curl library user nor by the curl library builder. |
michael@0 | 37 | * |
michael@0 | 38 | * If you think that something actually needs to be changed, adjusted |
michael@0 | 39 | * or fixed in this file, then, report it on the libcurl development |
michael@0 | 40 | * mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/ |
michael@0 | 41 | * |
michael@0 | 42 | * This header file shall only export symbols which are 'curl' or 'CURL' |
michael@0 | 43 | * prefixed, otherwise public name space would be polluted. |
michael@0 | 44 | * |
michael@0 | 45 | * NOTE 2: |
michael@0 | 46 | * ------- |
michael@0 | 47 | * |
michael@0 | 48 | * Right now you might be staring at file include/curl/curlbuild.h.in or |
michael@0 | 49 | * at file include/curl/curlbuild.h, this is due to the following reason: |
michael@0 | 50 | * |
michael@0 | 51 | * On systems capable of running the configure script, the configure process |
michael@0 | 52 | * will overwrite the distributed include/curl/curlbuild.h file with one that |
michael@0 | 53 | * is suitable and specific to the library being configured and built, which |
michael@0 | 54 | * is generated from the include/curl/curlbuild.h.in template file. |
michael@0 | 55 | * |
michael@0 | 56 | */ |
michael@0 | 57 | |
michael@0 | 58 | /* ================================================================ */ |
michael@0 | 59 | /* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
michael@0 | 60 | /* ================================================================ */ |
michael@0 | 61 | |
michael@0 | 62 | #ifdef CURL_SIZEOF_LONG |
michael@0 | 63 | # error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h" |
michael@0 | 64 | Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined |
michael@0 | 65 | #endif |
michael@0 | 66 | |
michael@0 | 67 | #ifdef CURL_TYPEOF_CURL_SOCKLEN_T |
michael@0 | 68 | # error "CURL_TYPEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h" |
michael@0 | 69 | Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_already_defined |
michael@0 | 70 | #endif |
michael@0 | 71 | |
michael@0 | 72 | #ifdef CURL_SIZEOF_CURL_SOCKLEN_T |
michael@0 | 73 | # error "CURL_SIZEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h" |
michael@0 | 74 | Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_already_defined |
michael@0 | 75 | #endif |
michael@0 | 76 | |
michael@0 | 77 | #ifdef CURL_TYPEOF_CURL_OFF_T |
michael@0 | 78 | # error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h" |
michael@0 | 79 | Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined |
michael@0 | 80 | #endif |
michael@0 | 81 | |
michael@0 | 82 | #ifdef CURL_FORMAT_CURL_OFF_T |
michael@0 | 83 | # error "CURL_FORMAT_CURL_OFF_T shall not be defined except in curlbuild.h" |
michael@0 | 84 | Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_already_defined |
michael@0 | 85 | #endif |
michael@0 | 86 | |
michael@0 | 87 | #ifdef CURL_FORMAT_CURL_OFF_TU |
michael@0 | 88 | # error "CURL_FORMAT_CURL_OFF_TU shall not be defined except in curlbuild.h" |
michael@0 | 89 | Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_already_defined |
michael@0 | 90 | #endif |
michael@0 | 91 | |
michael@0 | 92 | #ifdef CURL_FORMAT_OFF_T |
michael@0 | 93 | # error "CURL_FORMAT_OFF_T shall not be defined except in curlbuild.h" |
michael@0 | 94 | Error Compilation_aborted_CURL_FORMAT_OFF_T_already_defined |
michael@0 | 95 | #endif |
michael@0 | 96 | |
michael@0 | 97 | #ifdef CURL_SIZEOF_CURL_OFF_T |
michael@0 | 98 | # error "CURL_SIZEOF_CURL_OFF_T shall not be defined except in curlbuild.h" |
michael@0 | 99 | Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined |
michael@0 | 100 | #endif |
michael@0 | 101 | |
michael@0 | 102 | #ifdef CURL_SUFFIX_CURL_OFF_T |
michael@0 | 103 | # error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h" |
michael@0 | 104 | Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined |
michael@0 | 105 | #endif |
michael@0 | 106 | |
michael@0 | 107 | #ifdef CURL_SUFFIX_CURL_OFF_TU |
michael@0 | 108 | # error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h" |
michael@0 | 109 | Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined |
michael@0 | 110 | #endif |
michael@0 | 111 | |
michael@0 | 112 | /* ================================================================ */ |
michael@0 | 113 | /* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ |
michael@0 | 114 | /* ================================================================ */ |
michael@0 | 115 | |
michael@0 | 116 | /* Configure process defines this to 1 when it finds out that system */ |
michael@0 | 117 | /* header file ws2tcpip.h must be included by the external interface. */ |
michael@0 | 118 | /* #undef CURL_PULL_WS2TCPIP_H */ |
michael@0 | 119 | #ifdef CURL_PULL_WS2TCPIP_H |
michael@0 | 120 | # ifndef WIN32_LEAN_AND_MEAN |
michael@0 | 121 | # define WIN32_LEAN_AND_MEAN |
michael@0 | 122 | # endif |
michael@0 | 123 | # include <windows.h> |
michael@0 | 124 | # include <winsock2.h> |
michael@0 | 125 | # include <ws2tcpip.h> |
michael@0 | 126 | #endif |
michael@0 | 127 | |
michael@0 | 128 | /* Configure process defines this to 1 when it finds out that system */ |
michael@0 | 129 | /* header file sys/types.h must be included by the external interface. */ |
michael@0 | 130 | #define CURL_PULL_SYS_TYPES_H 1 |
michael@0 | 131 | #ifdef CURL_PULL_SYS_TYPES_H |
michael@0 | 132 | # include <sys/types.h> |
michael@0 | 133 | #endif |
michael@0 | 134 | |
michael@0 | 135 | /* Configure process defines this to 1 when it finds out that system */ |
michael@0 | 136 | /* header file stdint.h must be included by the external interface. */ |
michael@0 | 137 | /* #undef CURL_PULL_STDINT_H */ |
michael@0 | 138 | #ifdef CURL_PULL_STDINT_H |
michael@0 | 139 | # include <stdint.h> |
michael@0 | 140 | #endif |
michael@0 | 141 | |
michael@0 | 142 | /* Configure process defines this to 1 when it finds out that system */ |
michael@0 | 143 | /* header file inttypes.h must be included by the external interface. */ |
michael@0 | 144 | /* #undef CURL_PULL_INTTYPES_H */ |
michael@0 | 145 | #ifdef CURL_PULL_INTTYPES_H |
michael@0 | 146 | # include <inttypes.h> |
michael@0 | 147 | #endif |
michael@0 | 148 | |
michael@0 | 149 | /* Configure process defines this to 1 when it finds out that system */ |
michael@0 | 150 | /* header file sys/socket.h must be included by the external interface. */ |
michael@0 | 151 | #define CURL_PULL_SYS_SOCKET_H 1 |
michael@0 | 152 | #ifdef CURL_PULL_SYS_SOCKET_H |
michael@0 | 153 | # include <sys/socket.h> |
michael@0 | 154 | #endif |
michael@0 | 155 | |
michael@0 | 156 | /* The size of `long', as computed by sizeof. */ |
michael@0 | 157 | #if defined(_M_X64) || (defined(__x86_64__) && !defined(__ILP32__)) |
michael@0 | 158 | #define CURL_SIZEOF_LONG 8 |
michael@0 | 159 | #else |
michael@0 | 160 | #define CURL_SIZEOF_LONG 4 |
michael@0 | 161 | #endif |
michael@0 | 162 | |
michael@0 | 163 | /* Integral data type used for curl_socklen_t. */ |
michael@0 | 164 | #define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t |
michael@0 | 165 | |
michael@0 | 166 | /* The size of `curl_socklen_t', as computed by sizeof. */ |
michael@0 | 167 | #define CURL_SIZEOF_CURL_SOCKLEN_T 4 |
michael@0 | 168 | |
michael@0 | 169 | /* Data type definition of curl_socklen_t. */ |
michael@0 | 170 | typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t; |
michael@0 | 171 | |
michael@0 | 172 | /* Signed integral data type used for curl_off_t. */ |
michael@0 | 173 | #if defined(_M_X64) || (defined(__x86_64__) && !defined(__ILP32__)) |
michael@0 | 174 | #define CURL_TYPEOF_CURL_OFF_T long |
michael@0 | 175 | #else |
michael@0 | 176 | #define CURL_TYPEOF_CURL_OFF_T int64_t |
michael@0 | 177 | #endif |
michael@0 | 178 | |
michael@0 | 179 | /* Data type definition of curl_off_t. */ |
michael@0 | 180 | typedef CURL_TYPEOF_CURL_OFF_T curl_off_t; |
michael@0 | 181 | |
michael@0 | 182 | /* curl_off_t formatting string directive without "%" conversion specifier. */ |
michael@0 | 183 | #define CURL_FORMAT_CURL_OFF_T "ld" |
michael@0 | 184 | |
michael@0 | 185 | /* unsigned curl_off_t formatting string without "%" conversion specifier. */ |
michael@0 | 186 | #define CURL_FORMAT_CURL_OFF_TU "lu" |
michael@0 | 187 | |
michael@0 | 188 | /* curl_off_t formatting string directive with "%" conversion specifier. */ |
michael@0 | 189 | #define CURL_FORMAT_OFF_T "%ld" |
michael@0 | 190 | |
michael@0 | 191 | /* The size of `curl_off_t', as computed by sizeof. */ |
michael@0 | 192 | #define CURL_SIZEOF_CURL_OFF_T 8 |
michael@0 | 193 | |
michael@0 | 194 | /* curl_off_t constant suffix. */ |
michael@0 | 195 | #define CURL_SUFFIX_CURL_OFF_T L |
michael@0 | 196 | |
michael@0 | 197 | /* unsigned curl_off_t constant suffix. */ |
michael@0 | 198 | #define CURL_SUFFIX_CURL_OFF_TU UL |
michael@0 | 199 | |
michael@0 | 200 | #endif /* __CURL_CURLBUILD_H */ |