Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/asyn.h +184 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/bufq.h +265 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/bufref.h +48 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/c-hyper.h +59 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/cf-h1-proxy.h +39 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/cf-h2-proxy.h +39 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/cf-haproxy.h +39 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/cf-https-connect.h +58 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/cf-socket.h +191 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/cfilters.h +539 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-amigaos.h +130 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-dos.h +139 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-mac.h +103 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-os400.h +346 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-plan9.h +149 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-riscos.h +286 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-win32.h +642 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-win32ce.h +313 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/conncache.h +122 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/connect.h +132 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/content_encoding.h +39 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/cookie.h +138 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_addrinfo.h +108 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_base64.h +41 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_ctype.h +51 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_des.h +40 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_endian.h +36 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_fnmatch.h +46 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_get_line.h +31 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_gethostname.h +33 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_gssapi.h +63 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_hmac.h +77 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_krb5.h +52 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_ldap.h +36 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_md4.h +39 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_md5.h +67 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_memory.h +178 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_memrchr.h +44 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_multibyte.h +91 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_ntlm_core.h +79 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_ntlm_wb.h +45 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_path.h +49 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_printf.h +51 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_range.h +31 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_rtmp.h +35 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_sasl.h +165 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_setup.h +847 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_setup_once.h +422 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_sha256.h +50 -0
- miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_sspi.h +107 -0
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/asyn.h
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_ASYN_H
|
| 2 |
+
#define HEADER_CURL_ASYN_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include "curl_setup.h"
|
| 28 |
+
#include "curl_addrinfo.h"
|
| 29 |
+
|
| 30 |
+
struct addrinfo;
|
| 31 |
+
struct hostent;
|
| 32 |
+
struct Curl_easy;
|
| 33 |
+
struct connectdata;
|
| 34 |
+
struct Curl_dns_entry;
|
| 35 |
+
|
| 36 |
+
/*
|
| 37 |
+
* This header defines all functions in the internal asynch resolver interface.
|
| 38 |
+
* All asynch resolvers need to provide these functions.
|
| 39 |
+
* asyn-ares.c and asyn-thread.c are the current implementations of asynch
|
| 40 |
+
* resolver backends.
|
| 41 |
+
*/
|
| 42 |
+
|
| 43 |
+
/*
|
| 44 |
+
* Curl_resolver_global_init()
|
| 45 |
+
*
|
| 46 |
+
* Called from curl_global_init() to initialize global resolver environment.
|
| 47 |
+
* Returning anything else than CURLE_OK fails curl_global_init().
|
| 48 |
+
*/
|
| 49 |
+
int Curl_resolver_global_init(void);
|
| 50 |
+
|
| 51 |
+
/*
|
| 52 |
+
* Curl_resolver_global_cleanup()
|
| 53 |
+
* Called from curl_global_cleanup() to destroy global resolver environment.
|
| 54 |
+
*/
|
| 55 |
+
void Curl_resolver_global_cleanup(void);
|
| 56 |
+
|
| 57 |
+
/*
|
| 58 |
+
* Curl_resolver_init()
|
| 59 |
+
* Called from curl_easy_init() -> Curl_open() to initialize resolver
|
| 60 |
+
* URL-state specific environment ('resolver' member of the UrlState
|
| 61 |
+
* structure). Should fill the passed pointer by the initialized handler.
|
| 62 |
+
* Returning anything else than CURLE_OK fails curl_easy_init() with the
|
| 63 |
+
* correspondent code.
|
| 64 |
+
*/
|
| 65 |
+
CURLcode Curl_resolver_init(struct Curl_easy *easy, void **resolver);
|
| 66 |
+
|
| 67 |
+
/*
|
| 68 |
+
* Curl_resolver_cleanup()
|
| 69 |
+
* Called from curl_easy_cleanup() -> Curl_close() to cleanup resolver
|
| 70 |
+
* URL-state specific environment ('resolver' member of the UrlState
|
| 71 |
+
* structure). Should destroy the handler and free all resources connected to
|
| 72 |
+
* it.
|
| 73 |
+
*/
|
| 74 |
+
void Curl_resolver_cleanup(void *resolver);
|
| 75 |
+
|
| 76 |
+
/*
|
| 77 |
+
* Curl_resolver_duphandle()
|
| 78 |
+
* Called from curl_easy_duphandle() to duplicate resolver URL-state specific
|
| 79 |
+
* environment ('resolver' member of the UrlState structure). Should
|
| 80 |
+
* duplicate the 'from' handle and pass the resulting handle to the 'to'
|
| 81 |
+
* pointer. Returning anything else than CURLE_OK causes failed
|
| 82 |
+
* curl_easy_duphandle() call.
|
| 83 |
+
*/
|
| 84 |
+
CURLcode Curl_resolver_duphandle(struct Curl_easy *easy, void **to,
|
| 85 |
+
void *from);
|
| 86 |
+
|
| 87 |
+
/*
|
| 88 |
+
* Curl_resolver_cancel().
|
| 89 |
+
*
|
| 90 |
+
* It is called from inside other functions to cancel currently performing
|
| 91 |
+
* resolver request. Should also free any temporary resources allocated to
|
| 92 |
+
* perform a request. This never waits for resolver threads to complete.
|
| 93 |
+
*
|
| 94 |
+
* It is safe to call this when conn is in any state.
|
| 95 |
+
*/
|
| 96 |
+
void Curl_resolver_cancel(struct Curl_easy *data);
|
| 97 |
+
|
| 98 |
+
/*
|
| 99 |
+
* Curl_resolver_kill().
|
| 100 |
+
*
|
| 101 |
+
* This acts like Curl_resolver_cancel() except it will block until any threads
|
| 102 |
+
* associated with the resolver are complete. This never blocks for resolvers
|
| 103 |
+
* that do not use threads. This is intended to be the "last chance" function
|
| 104 |
+
* that cleans up an in-progress resolver completely (before its owner is about
|
| 105 |
+
* to die).
|
| 106 |
+
*
|
| 107 |
+
* It is safe to call this when conn is in any state.
|
| 108 |
+
*/
|
| 109 |
+
void Curl_resolver_kill(struct Curl_easy *data);
|
| 110 |
+
|
| 111 |
+
/* Curl_resolver_getsock()
|
| 112 |
+
*
|
| 113 |
+
* This function is called from the multi_getsock() function. 'sock' is a
|
| 114 |
+
* pointer to an array to hold the file descriptors, with 'numsock' being the
|
| 115 |
+
* size of that array (in number of entries). This function is supposed to
|
| 116 |
+
* return bitmask indicating what file descriptors (referring to array indexes
|
| 117 |
+
* in the 'sock' array) to wait for, read/write.
|
| 118 |
+
*/
|
| 119 |
+
int Curl_resolver_getsock(struct Curl_easy *data, curl_socket_t *sock);
|
| 120 |
+
|
| 121 |
+
/*
|
| 122 |
+
* Curl_resolver_is_resolved()
|
| 123 |
+
*
|
| 124 |
+
* Called repeatedly to check if a previous name resolve request has
|
| 125 |
+
* completed. It should also make sure to time-out if the operation seems to
|
| 126 |
+
* take too long.
|
| 127 |
+
*
|
| 128 |
+
* Returns normal CURLcode errors.
|
| 129 |
+
*/
|
| 130 |
+
CURLcode Curl_resolver_is_resolved(struct Curl_easy *data,
|
| 131 |
+
struct Curl_dns_entry **dns);
|
| 132 |
+
|
| 133 |
+
/*
|
| 134 |
+
* Curl_resolver_wait_resolv()
|
| 135 |
+
*
|
| 136 |
+
* Waits for a resolve to finish. This function should be avoided since using
|
| 137 |
+
* this risk getting the multi interface to "hang".
|
| 138 |
+
*
|
| 139 |
+
* If 'entry' is non-NULL, make it point to the resolved dns entry
|
| 140 |
+
*
|
| 141 |
+
* Returns CURLE_COULDNT_RESOLVE_HOST if the host was not resolved,
|
| 142 |
+
* CURLE_OPERATION_TIMEDOUT if a time-out occurred, or other errors.
|
| 143 |
+
*/
|
| 144 |
+
CURLcode Curl_resolver_wait_resolv(struct Curl_easy *data,
|
| 145 |
+
struct Curl_dns_entry **dnsentry);
|
| 146 |
+
|
| 147 |
+
/*
|
| 148 |
+
* Curl_resolver_getaddrinfo() - when using this resolver
|
| 149 |
+
*
|
| 150 |
+
* Returns name information about the given hostname and port number. If
|
| 151 |
+
* successful, the 'hostent' is returned and the fourth argument will point to
|
| 152 |
+
* memory we need to free after use. That memory *MUST* be freed with
|
| 153 |
+
* Curl_freeaddrinfo(), nothing else.
|
| 154 |
+
*
|
| 155 |
+
* Each resolver backend must of course make sure to return data in the
|
| 156 |
+
* correct format to comply with this.
|
| 157 |
+
*/
|
| 158 |
+
struct Curl_addrinfo *Curl_resolver_getaddrinfo(struct Curl_easy *data,
|
| 159 |
+
const char *hostname,
|
| 160 |
+
int port,
|
| 161 |
+
int *waitp);
|
| 162 |
+
|
| 163 |
+
#ifndef CURLRES_ASYNCH
|
| 164 |
+
/* convert these functions if an asynch resolver isn't used */
|
| 165 |
+
#define Curl_resolver_cancel(x) Curl_nop_stmt
|
| 166 |
+
#define Curl_resolver_kill(x) Curl_nop_stmt
|
| 167 |
+
#define Curl_resolver_is_resolved(x,y) CURLE_COULDNT_RESOLVE_HOST
|
| 168 |
+
#define Curl_resolver_wait_resolv(x,y) CURLE_COULDNT_RESOLVE_HOST
|
| 169 |
+
#define Curl_resolver_duphandle(x,y,z) CURLE_OK
|
| 170 |
+
#define Curl_resolver_init(x,y) CURLE_OK
|
| 171 |
+
#define Curl_resolver_global_init() CURLE_OK
|
| 172 |
+
#define Curl_resolver_global_cleanup() Curl_nop_stmt
|
| 173 |
+
#define Curl_resolver_cleanup(x) Curl_nop_stmt
|
| 174 |
+
#endif
|
| 175 |
+
|
| 176 |
+
#ifdef CURLRES_ASYNCH
|
| 177 |
+
#define Curl_resolver_asynch() 1
|
| 178 |
+
#else
|
| 179 |
+
#define Curl_resolver_asynch() 0
|
| 180 |
+
#endif
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
/********** end of generic resolver interface functions *****************/
|
| 184 |
+
#endif /* HEADER_CURL_ASYN_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/bufq.h
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_BUFQ_H
|
| 2 |
+
#define HEADER_CURL_BUFQ_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
#include "curl_setup.h"
|
| 27 |
+
|
| 28 |
+
#include <curl/curl.h>
|
| 29 |
+
|
| 30 |
+
/**
|
| 31 |
+
* A chunk of bytes for reading and writing.
|
| 32 |
+
* The size is fixed a creation with read and write offset
|
| 33 |
+
* for where unread content is.
|
| 34 |
+
*/
|
| 35 |
+
struct buf_chunk {
|
| 36 |
+
struct buf_chunk *next; /* to keep it in a list */
|
| 37 |
+
size_t dlen; /* the amount of allocated x.data[] */
|
| 38 |
+
size_t r_offset; /* first unread bytes */
|
| 39 |
+
size_t w_offset; /* one after last written byte */
|
| 40 |
+
union {
|
| 41 |
+
unsigned char data[1]; /* the buffer for `dlen` bytes */
|
| 42 |
+
void *dummy; /* alignment */
|
| 43 |
+
} x;
|
| 44 |
+
};
|
| 45 |
+
|
| 46 |
+
/**
|
| 47 |
+
* A pool for providing/keeping a number of chunks of the same size
|
| 48 |
+
*
|
| 49 |
+
* The same pool can be shared by many `bufq` instances. However, a pool
|
| 50 |
+
* is not thread safe. All bufqs using it are supposed to operate in the
|
| 51 |
+
* same thread.
|
| 52 |
+
*/
|
| 53 |
+
struct bufc_pool {
|
| 54 |
+
struct buf_chunk *spare; /* list of available spare chunks */
|
| 55 |
+
size_t chunk_size; /* the size of chunks in this pool */
|
| 56 |
+
size_t spare_count; /* current number of spare chunks in list */
|
| 57 |
+
size_t spare_max; /* max number of spares to keep */
|
| 58 |
+
};
|
| 59 |
+
|
| 60 |
+
void Curl_bufcp_init(struct bufc_pool *pool,
|
| 61 |
+
size_t chunk_size, size_t spare_max);
|
| 62 |
+
|
| 63 |
+
void Curl_bufcp_free(struct bufc_pool *pool);
|
| 64 |
+
|
| 65 |
+
/**
|
| 66 |
+
* A queue of byte chunks for reading and writing.
|
| 67 |
+
* Reading is done from `head`, writing is done to `tail`.
|
| 68 |
+
*
|
| 69 |
+
* `bufq`s can be empty or full or neither. Its `len` is the number
|
| 70 |
+
* of bytes that can be read. For an empty bufq, `len` will be 0.
|
| 71 |
+
*
|
| 72 |
+
* By default, a bufq can hold up to `max_chunks * chunk_size` number
|
| 73 |
+
* of bytes. When `max_chunks` are used (in the `head` list) and the
|
| 74 |
+
* `tail` chunk is full, the bufq will report that it is full.
|
| 75 |
+
*
|
| 76 |
+
* On a full bufq, `len` may be less than the maximum number of bytes,
|
| 77 |
+
* e.g. when the head chunk is partially read. `len` may also become
|
| 78 |
+
* larger than the max when option `BUFQ_OPT_SOFT_LIMIT` is used.
|
| 79 |
+
*
|
| 80 |
+
* By default, writing to a full bufq will return (-1, CURLE_AGAIN). Same
|
| 81 |
+
* as reading from an empty bufq.
|
| 82 |
+
* With `BUFQ_OPT_SOFT_LIMIT` set, a bufq will allow writing becond this
|
| 83 |
+
* limit and use more than `max_chunks`. However it will report that it
|
| 84 |
+
* is full nevertheless. This is provided for situation where writes
|
| 85 |
+
* preferably never fail (except for memory exhaustion).
|
| 86 |
+
*
|
| 87 |
+
* By default and without a pool, a bufq will keep chunks that read
|
| 88 |
+
* read empty in its `spare` list. Option `BUFQ_OPT_NO_SPARES` will
|
| 89 |
+
* disable that and free chunks once they become empty.
|
| 90 |
+
*
|
| 91 |
+
* When providing a pool to a bufq, all chunk creation and spare handling
|
| 92 |
+
* will be delegated to that pool.
|
| 93 |
+
*/
|
| 94 |
+
struct bufq {
|
| 95 |
+
struct buf_chunk *head; /* chunk with bytes to read from */
|
| 96 |
+
struct buf_chunk *tail; /* chunk to write to */
|
| 97 |
+
struct buf_chunk *spare; /* list of free chunks, unless `pool` */
|
| 98 |
+
struct bufc_pool *pool; /* optional pool for free chunks */
|
| 99 |
+
size_t chunk_count; /* current number of chunks in `head+spare` */
|
| 100 |
+
size_t max_chunks; /* max `head` chunks to use */
|
| 101 |
+
size_t chunk_size; /* size of chunks to manage */
|
| 102 |
+
int opts; /* options for handling queue, see below */
|
| 103 |
+
};
|
| 104 |
+
|
| 105 |
+
/**
|
| 106 |
+
* Default behaviour: chunk limit is "hard", meaning attempts to write
|
| 107 |
+
* more bytes than can be hold in `max_chunks` is refused and will return
|
| 108 |
+
* -1, CURLE_AGAIN. */
|
| 109 |
+
#define BUFQ_OPT_NONE (0)
|
| 110 |
+
/**
|
| 111 |
+
* Make `max_chunks` a "soft" limit. A bufq will report that it is "full"
|
| 112 |
+
* when `max_chunks` are used, but allows writing beyond this limit.
|
| 113 |
+
*/
|
| 114 |
+
#define BUFQ_OPT_SOFT_LIMIT (1 << 0)
|
| 115 |
+
/**
|
| 116 |
+
* Do not keep spare chunks.
|
| 117 |
+
*/
|
| 118 |
+
#define BUFQ_OPT_NO_SPARES (1 << 1)
|
| 119 |
+
|
| 120 |
+
/**
|
| 121 |
+
* Initialize a buffer queue that can hold up to `max_chunks` buffers
|
| 122 |
+
* each of size `chunk_size`. The bufq will not allow writing of
|
| 123 |
+
* more bytes than can be held in `max_chunks`.
|
| 124 |
+
*/
|
| 125 |
+
void Curl_bufq_init(struct bufq *q, size_t chunk_size, size_t max_chunks);
|
| 126 |
+
|
| 127 |
+
/**
|
| 128 |
+
* Initialize a buffer queue that can hold up to `max_chunks` buffers
|
| 129 |
+
* each of size `chunk_size` with the given options. See `BUFQ_OPT_*`.
|
| 130 |
+
*/
|
| 131 |
+
void Curl_bufq_init2(struct bufq *q, size_t chunk_size,
|
| 132 |
+
size_t max_chunks, int opts);
|
| 133 |
+
|
| 134 |
+
void Curl_bufq_initp(struct bufq *q, struct bufc_pool *pool,
|
| 135 |
+
size_t max_chunks, int opts);
|
| 136 |
+
|
| 137 |
+
/**
|
| 138 |
+
* Reset the buffer queue to be empty. Will keep any allocated buffer
|
| 139 |
+
* chunks around.
|
| 140 |
+
*/
|
| 141 |
+
void Curl_bufq_reset(struct bufq *q);
|
| 142 |
+
|
| 143 |
+
/**
|
| 144 |
+
* Free all resources held by the buffer queue.
|
| 145 |
+
*/
|
| 146 |
+
void Curl_bufq_free(struct bufq *q);
|
| 147 |
+
|
| 148 |
+
/**
|
| 149 |
+
* Return the total amount of data in the queue.
|
| 150 |
+
*/
|
| 151 |
+
size_t Curl_bufq_len(const struct bufq *q);
|
| 152 |
+
|
| 153 |
+
/**
|
| 154 |
+
* Return the total amount of free space in the queue.
|
| 155 |
+
* The returned length is the number of bytes that can
|
| 156 |
+
* be expected to be written successfully to the bufq,
|
| 157 |
+
* providing no memory allocations fail.
|
| 158 |
+
*/
|
| 159 |
+
size_t Curl_bufq_space(const struct bufq *q);
|
| 160 |
+
|
| 161 |
+
/**
|
| 162 |
+
* Returns TRUE iff there is no data in the buffer queue.
|
| 163 |
+
*/
|
| 164 |
+
bool Curl_bufq_is_empty(const struct bufq *q);
|
| 165 |
+
|
| 166 |
+
/**
|
| 167 |
+
* Returns TRUE iff there is no space left in the buffer queue.
|
| 168 |
+
*/
|
| 169 |
+
bool Curl_bufq_is_full(const struct bufq *q);
|
| 170 |
+
|
| 171 |
+
/**
|
| 172 |
+
* Write buf to the end of the buffer queue. The buf is copied
|
| 173 |
+
* and the amount of copied bytes is returned.
|
| 174 |
+
* A return code of -1 indicates an error, setting `err` to the
|
| 175 |
+
* cause. An err of CURLE_AGAIN is returned if the buffer queue is full.
|
| 176 |
+
*/
|
| 177 |
+
ssize_t Curl_bufq_write(struct bufq *q,
|
| 178 |
+
const unsigned char *buf, size_t len,
|
| 179 |
+
CURLcode *err);
|
| 180 |
+
|
| 181 |
+
/**
|
| 182 |
+
* Read buf from the start of the buffer queue. The buf is copied
|
| 183 |
+
* and the amount of copied bytes is returned.
|
| 184 |
+
* A return code of -1 indicates an error, setting `err` to the
|
| 185 |
+
* cause. An err of CURLE_AGAIN is returned if the buffer queue is empty.
|
| 186 |
+
*/
|
| 187 |
+
ssize_t Curl_bufq_read(struct bufq *q, unsigned char *buf, size_t len,
|
| 188 |
+
CURLcode *err);
|
| 189 |
+
|
| 190 |
+
/**
|
| 191 |
+
* Peek at the head chunk in the buffer queue. Returns a pointer to
|
| 192 |
+
* the chunk buf (at the current offset) and its length. Does not
|
| 193 |
+
* modify the buffer queue.
|
| 194 |
+
* Returns TRUE iff bytes are available. Sets `pbuf` to NULL and `plen`
|
| 195 |
+
* to 0 when no bytes are available.
|
| 196 |
+
* Repeated calls return the same information until the buffer queue
|
| 197 |
+
* is modified, see `Curl_bufq_skip()``
|
| 198 |
+
*/
|
| 199 |
+
bool Curl_bufq_peek(struct bufq *q,
|
| 200 |
+
const unsigned char **pbuf, size_t *plen);
|
| 201 |
+
|
| 202 |
+
bool Curl_bufq_peek_at(struct bufq *q, size_t offset,
|
| 203 |
+
const unsigned char **pbuf, size_t *plen);
|
| 204 |
+
|
| 205 |
+
/**
|
| 206 |
+
* Tell the buffer queue to discard `amount` buf bytes at the head
|
| 207 |
+
* of the queue. Skipping more buf than is currently buffered will
|
| 208 |
+
* just empty the queue.
|
| 209 |
+
*/
|
| 210 |
+
void Curl_bufq_skip(struct bufq *q, size_t amount);
|
| 211 |
+
|
| 212 |
+
typedef ssize_t Curl_bufq_writer(void *writer_ctx,
|
| 213 |
+
const unsigned char *buf, size_t len,
|
| 214 |
+
CURLcode *err);
|
| 215 |
+
/**
|
| 216 |
+
* Passes the chunks in the buffer queue to the writer and returns
|
| 217 |
+
* the amount of buf written. A writer may return -1 and CURLE_AGAIN
|
| 218 |
+
* to indicate blocking at which point the queue will stop and return
|
| 219 |
+
* the amount of buf passed so far.
|
| 220 |
+
* -1 is returned on any other errors reported by the writer.
|
| 221 |
+
* Note that in case of a -1 chunks may have been written and
|
| 222 |
+
* the buffer queue will have different length than before.
|
| 223 |
+
*/
|
| 224 |
+
ssize_t Curl_bufq_pass(struct bufq *q, Curl_bufq_writer *writer,
|
| 225 |
+
void *writer_ctx, CURLcode *err);
|
| 226 |
+
|
| 227 |
+
typedef ssize_t Curl_bufq_reader(void *reader_ctx,
|
| 228 |
+
unsigned char *buf, size_t len,
|
| 229 |
+
CURLcode *err);
|
| 230 |
+
|
| 231 |
+
/**
|
| 232 |
+
* Read date and append it to the end of the buffer queue until the
|
| 233 |
+
* reader returns blocking or the queue is full. A reader returns
|
| 234 |
+
* -1 and CURLE_AGAIN to indicate blocking.
|
| 235 |
+
* Returns the total amount of buf read (may be 0) or -1 on other
|
| 236 |
+
* reader errors.
|
| 237 |
+
* Note that in case of a -1 chunks may have been read and
|
| 238 |
+
* the buffer queue will have different length than before.
|
| 239 |
+
*/
|
| 240 |
+
ssize_t Curl_bufq_slurp(struct bufq *q, Curl_bufq_reader *reader,
|
| 241 |
+
void *reader_ctx, CURLcode *err);
|
| 242 |
+
|
| 243 |
+
/**
|
| 244 |
+
* Read *once* up to `max_len` bytes and append it to the buffer.
|
| 245 |
+
* if `max_len` is 0, no limit is imposed besides the chunk space.
|
| 246 |
+
* Returns the total amount of buf read (may be 0) or -1 on other
|
| 247 |
+
* reader errors.
|
| 248 |
+
*/
|
| 249 |
+
ssize_t Curl_bufq_sipn(struct bufq *q, size_t max_len,
|
| 250 |
+
Curl_bufq_reader *reader, void *reader_ctx,
|
| 251 |
+
CURLcode *err);
|
| 252 |
+
|
| 253 |
+
/**
|
| 254 |
+
* Write buf to the end of the buffer queue.
|
| 255 |
+
* Will write bufq content or passed `buf` directly using the `writer`
|
| 256 |
+
* callback when it sees fit. 'buf' might get passed directly
|
| 257 |
+
* on or is placed into the buffer, depending on `len` and current
|
| 258 |
+
* amount buffered, chunk size, etc.
|
| 259 |
+
*/
|
| 260 |
+
ssize_t Curl_bufq_write_pass(struct bufq *q,
|
| 261 |
+
const unsigned char *buf, size_t len,
|
| 262 |
+
Curl_bufq_writer *writer, void *writer_ctx,
|
| 263 |
+
CURLcode *err);
|
| 264 |
+
|
| 265 |
+
#endif /* HEADER_CURL_BUFQ_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/bufref.h
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_BUFREF_H
|
| 2 |
+
#define HEADER_CURL_BUFREF_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
/*
|
| 28 |
+
* Generic buffer reference.
|
| 29 |
+
*/
|
| 30 |
+
struct bufref {
|
| 31 |
+
void (*dtor)(void *); /* Associated destructor. */
|
| 32 |
+
const unsigned char *ptr; /* Referenced data buffer. */
|
| 33 |
+
size_t len; /* The data size in bytes. */
|
| 34 |
+
#ifdef DEBUGBUILD
|
| 35 |
+
int signature; /* Detect API use mistakes. */
|
| 36 |
+
#endif
|
| 37 |
+
};
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
void Curl_bufref_init(struct bufref *br);
|
| 41 |
+
void Curl_bufref_set(struct bufref *br, const void *ptr, size_t len,
|
| 42 |
+
void (*dtor)(void *));
|
| 43 |
+
const unsigned char *Curl_bufref_ptr(const struct bufref *br);
|
| 44 |
+
size_t Curl_bufref_len(const struct bufref *br);
|
| 45 |
+
CURLcode Curl_bufref_memdup(struct bufref *br, const void *ptr, size_t len);
|
| 46 |
+
void Curl_bufref_free(struct bufref *br);
|
| 47 |
+
|
| 48 |
+
#endif
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/c-hyper.h
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_HYPER_H
|
| 2 |
+
#define HEADER_CURL_HYPER_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.haxx.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
#include "curl_setup.h"
|
| 27 |
+
|
| 28 |
+
#if !defined(CURL_DISABLE_HTTP) && defined(USE_HYPER)
|
| 29 |
+
|
| 30 |
+
#include <hyper.h>
|
| 31 |
+
|
| 32 |
+
/* per-transfer data for the Hyper backend */
|
| 33 |
+
struct hyptransfer {
|
| 34 |
+
hyper_waker *write_waker;
|
| 35 |
+
hyper_waker *read_waker;
|
| 36 |
+
const hyper_executor *exec;
|
| 37 |
+
hyper_waker *exp100_waker;
|
| 38 |
+
hyper_waker *send_body_waker;
|
| 39 |
+
};
|
| 40 |
+
|
| 41 |
+
size_t Curl_hyper_recv(void *userp, hyper_context *ctx,
|
| 42 |
+
uint8_t *buf, size_t buflen);
|
| 43 |
+
size_t Curl_hyper_send(void *userp, hyper_context *ctx,
|
| 44 |
+
const uint8_t *buf, size_t buflen);
|
| 45 |
+
CURLcode Curl_hyper_stream(struct Curl_easy *data,
|
| 46 |
+
struct connectdata *conn,
|
| 47 |
+
int *didwhat,
|
| 48 |
+
bool *done,
|
| 49 |
+
int select_res);
|
| 50 |
+
|
| 51 |
+
CURLcode Curl_hyper_header(struct Curl_easy *data, hyper_headers *headers,
|
| 52 |
+
const char *line);
|
| 53 |
+
void Curl_hyper_done(struct Curl_easy *);
|
| 54 |
+
|
| 55 |
+
#else
|
| 56 |
+
#define Curl_hyper_done(x)
|
| 57 |
+
|
| 58 |
+
#endif /* !defined(CURL_DISABLE_HTTP) && defined(USE_HYPER) */
|
| 59 |
+
#endif /* HEADER_CURL_HYPER_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/cf-h1-proxy.h
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_H1_PROXY_H
|
| 2 |
+
#define HEADER_CURL_H1_PROXY_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include "curl_setup.h"
|
| 28 |
+
|
| 29 |
+
#if !defined(CURL_DISABLE_PROXY) && !defined(CURL_DISABLE_HTTP)
|
| 30 |
+
|
| 31 |
+
CURLcode Curl_cf_h1_proxy_insert_after(struct Curl_cfilter *cf,
|
| 32 |
+
struct Curl_easy *data);
|
| 33 |
+
|
| 34 |
+
extern struct Curl_cftype Curl_cft_h1_proxy;
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
#endif /* !CURL_DISABLE_PROXY && !CURL_DISABLE_HTTP */
|
| 38 |
+
|
| 39 |
+
#endif /* HEADER_CURL_H1_PROXY_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/cf-h2-proxy.h
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_H2_PROXY_H
|
| 2 |
+
#define HEADER_CURL_H2_PROXY_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include "curl_setup.h"
|
| 28 |
+
|
| 29 |
+
#if defined(USE_NGHTTP2) && !defined(CURL_DISABLE_PROXY)
|
| 30 |
+
|
| 31 |
+
CURLcode Curl_cf_h2_proxy_insert_after(struct Curl_cfilter *cf,
|
| 32 |
+
struct Curl_easy *data);
|
| 33 |
+
|
| 34 |
+
extern struct Curl_cftype Curl_cft_h2_proxy;
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
#endif /* defined(USE_NGHTTP2) && !defined(CURL_DISABLE_PROXY) */
|
| 38 |
+
|
| 39 |
+
#endif /* HEADER_CURL_H2_PROXY_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/cf-haproxy.h
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CF_HAPROXY_H
|
| 2 |
+
#define HEADER_CURL_CF_HAPROXY_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include "curl_setup.h"
|
| 28 |
+
#include "urldata.h"
|
| 29 |
+
|
| 30 |
+
#if !defined(CURL_DISABLE_PROXY)
|
| 31 |
+
|
| 32 |
+
CURLcode Curl_cf_haproxy_insert_after(struct Curl_cfilter *cf_at,
|
| 33 |
+
struct Curl_easy *data);
|
| 34 |
+
|
| 35 |
+
extern struct Curl_cftype Curl_cft_haproxy;
|
| 36 |
+
|
| 37 |
+
#endif /* !CURL_DISABLE_PROXY */
|
| 38 |
+
|
| 39 |
+
#endif /* HEADER_CURL_CF_HAPROXY_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/cf-https-connect.h
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CF_HTTP_H
|
| 2 |
+
#define HEADER_CURL_CF_HTTP_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
#include "curl_setup.h"
|
| 27 |
+
|
| 28 |
+
#if !defined(CURL_DISABLE_HTTP) && !defined(USE_HYPER)
|
| 29 |
+
|
| 30 |
+
struct Curl_cfilter;
|
| 31 |
+
struct Curl_easy;
|
| 32 |
+
struct connectdata;
|
| 33 |
+
struct Curl_cftype;
|
| 34 |
+
struct Curl_dns_entry;
|
| 35 |
+
|
| 36 |
+
extern struct Curl_cftype Curl_cft_http_connect;
|
| 37 |
+
|
| 38 |
+
CURLcode Curl_cf_http_connect_add(struct Curl_easy *data,
|
| 39 |
+
struct connectdata *conn,
|
| 40 |
+
int sockindex,
|
| 41 |
+
const struct Curl_dns_entry *remotehost,
|
| 42 |
+
bool try_h3, bool try_h21);
|
| 43 |
+
|
| 44 |
+
CURLcode
|
| 45 |
+
Curl_cf_http_connect_insert_after(struct Curl_cfilter *cf_at,
|
| 46 |
+
struct Curl_easy *data,
|
| 47 |
+
const struct Curl_dns_entry *remotehost,
|
| 48 |
+
bool try_h3, bool try_h21);
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
CURLcode Curl_cf_https_setup(struct Curl_easy *data,
|
| 52 |
+
struct connectdata *conn,
|
| 53 |
+
int sockindex,
|
| 54 |
+
const struct Curl_dns_entry *remotehost);
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
#endif /* !defined(CURL_DISABLE_HTTP) && !defined(USE_HYPER) */
|
| 58 |
+
#endif /* HEADER_CURL_CF_HTTP_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/cf-socket.h
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CF_SOCKET_H
|
| 2 |
+
#define HEADER_CURL_CF_SOCKET_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
#include "curl_setup.h"
|
| 27 |
+
|
| 28 |
+
#include "nonblock.h" /* for curlx_nonblock(), formerly Curl_nonblock() */
|
| 29 |
+
#include "sockaddr.h"
|
| 30 |
+
|
| 31 |
+
struct Curl_addrinfo;
|
| 32 |
+
struct Curl_cfilter;
|
| 33 |
+
struct Curl_easy;
|
| 34 |
+
struct connectdata;
|
| 35 |
+
struct Curl_sockaddr_ex;
|
| 36 |
+
|
| 37 |
+
#ifndef SIZEOF_CURL_SOCKET_T
|
| 38 |
+
/* configure and cmake check and set the define */
|
| 39 |
+
# ifdef _WIN64
|
| 40 |
+
# define SIZEOF_CURL_SOCKET_T 8
|
| 41 |
+
# else
|
| 42 |
+
/* default guess */
|
| 43 |
+
# define SIZEOF_CURL_SOCKET_T 4
|
| 44 |
+
# endif
|
| 45 |
+
#endif
|
| 46 |
+
|
| 47 |
+
#if SIZEOF_CURL_SOCKET_T < 8
|
| 48 |
+
# define CURL_FORMAT_SOCKET_T "d"
|
| 49 |
+
#else
|
| 50 |
+
# define CURL_FORMAT_SOCKET_T "qd"
|
| 51 |
+
#endif
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
/*
|
| 55 |
+
* The Curl_sockaddr_ex structure is basically libcurl's external API
|
| 56 |
+
* curl_sockaddr structure with enough space available to directly hold any
|
| 57 |
+
* protocol-specific address structures. The variable declared here will be
|
| 58 |
+
* used to pass / receive data to/from the fopensocket callback if this has
|
| 59 |
+
* been set, before that, it is initialized from parameters.
|
| 60 |
+
*/
|
| 61 |
+
struct Curl_sockaddr_ex {
|
| 62 |
+
int family;
|
| 63 |
+
int socktype;
|
| 64 |
+
int protocol;
|
| 65 |
+
unsigned int addrlen;
|
| 66 |
+
union {
|
| 67 |
+
struct sockaddr addr;
|
| 68 |
+
struct Curl_sockaddr_storage buff;
|
| 69 |
+
} _sa_ex_u;
|
| 70 |
+
};
|
| 71 |
+
#define sa_addr _sa_ex_u.addr
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
/*
|
| 75 |
+
* Create a socket based on info from 'conn' and 'ai'.
|
| 76 |
+
*
|
| 77 |
+
* Fill in 'addr' and 'sockfd' accordingly if OK is returned. If the open
|
| 78 |
+
* socket callback is set, used that!
|
| 79 |
+
*
|
| 80 |
+
*/
|
| 81 |
+
CURLcode Curl_socket_open(struct Curl_easy *data,
|
| 82 |
+
const struct Curl_addrinfo *ai,
|
| 83 |
+
struct Curl_sockaddr_ex *addr,
|
| 84 |
+
int transport,
|
| 85 |
+
curl_socket_t *sockfd);
|
| 86 |
+
|
| 87 |
+
int Curl_socket_close(struct Curl_easy *data, struct connectdata *conn,
|
| 88 |
+
curl_socket_t sock);
|
| 89 |
+
|
| 90 |
+
#ifdef USE_WINSOCK
|
| 91 |
+
/* When you run a program that uses the Windows Sockets API, you may
|
| 92 |
+
experience slow performance when you copy data to a TCP server.
|
| 93 |
+
|
| 94 |
+
https://support.microsoft.com/kb/823764
|
| 95 |
+
|
| 96 |
+
Work-around: Make the Socket Send Buffer Size Larger Than the Program Send
|
| 97 |
+
Buffer Size
|
| 98 |
+
|
| 99 |
+
*/
|
| 100 |
+
void Curl_sndbufset(curl_socket_t sockfd);
|
| 101 |
+
#else
|
| 102 |
+
#define Curl_sndbufset(y) Curl_nop_stmt
|
| 103 |
+
#endif
|
| 104 |
+
|
| 105 |
+
/**
|
| 106 |
+
* Assign the address `ai` to the Curl_sockaddr_ex `dest` and
|
| 107 |
+
* set the transport used.
|
| 108 |
+
*/
|
| 109 |
+
void Curl_sock_assign_addr(struct Curl_sockaddr_ex *dest,
|
| 110 |
+
const struct Curl_addrinfo *ai,
|
| 111 |
+
int transport);
|
| 112 |
+
|
| 113 |
+
/**
|
| 114 |
+
* Creates a cfilter that opens a TCP socket to the given address
|
| 115 |
+
* when calling its `connect` implementation.
|
| 116 |
+
* The filter will not touch any connection/data flags and can be
|
| 117 |
+
* used in happy eyeballing. Once selected for use, its `_active()`
|
| 118 |
+
* method needs to be called.
|
| 119 |
+
*/
|
| 120 |
+
CURLcode Curl_cf_tcp_create(struct Curl_cfilter **pcf,
|
| 121 |
+
struct Curl_easy *data,
|
| 122 |
+
struct connectdata *conn,
|
| 123 |
+
const struct Curl_addrinfo *ai,
|
| 124 |
+
int transport);
|
| 125 |
+
|
| 126 |
+
/**
|
| 127 |
+
* Creates a cfilter that opens a UDP socket to the given address
|
| 128 |
+
* when calling its `connect` implementation.
|
| 129 |
+
* The filter will not touch any connection/data flags and can be
|
| 130 |
+
* used in happy eyeballing. Once selected for use, its `_active()`
|
| 131 |
+
* method needs to be called.
|
| 132 |
+
*/
|
| 133 |
+
CURLcode Curl_cf_udp_create(struct Curl_cfilter **pcf,
|
| 134 |
+
struct Curl_easy *data,
|
| 135 |
+
struct connectdata *conn,
|
| 136 |
+
const struct Curl_addrinfo *ai,
|
| 137 |
+
int transport);
|
| 138 |
+
|
| 139 |
+
/**
|
| 140 |
+
* Creates a cfilter that opens a UNIX socket to the given address
|
| 141 |
+
* when calling its `connect` implementation.
|
| 142 |
+
* The filter will not touch any connection/data flags and can be
|
| 143 |
+
* used in happy eyeballing. Once selected for use, its `_active()`
|
| 144 |
+
* method needs to be called.
|
| 145 |
+
*/
|
| 146 |
+
CURLcode Curl_cf_unix_create(struct Curl_cfilter **pcf,
|
| 147 |
+
struct Curl_easy *data,
|
| 148 |
+
struct connectdata *conn,
|
| 149 |
+
const struct Curl_addrinfo *ai,
|
| 150 |
+
int transport);
|
| 151 |
+
|
| 152 |
+
/**
|
| 153 |
+
* Creates a cfilter that keeps a listening socket.
|
| 154 |
+
*/
|
| 155 |
+
CURLcode Curl_conn_tcp_listen_set(struct Curl_easy *data,
|
| 156 |
+
struct connectdata *conn,
|
| 157 |
+
int sockindex,
|
| 158 |
+
curl_socket_t *s);
|
| 159 |
+
|
| 160 |
+
/**
|
| 161 |
+
* Replace the listen socket with the accept()ed one.
|
| 162 |
+
*/
|
| 163 |
+
CURLcode Curl_conn_tcp_accepted_set(struct Curl_easy *data,
|
| 164 |
+
struct connectdata *conn,
|
| 165 |
+
int sockindex,
|
| 166 |
+
curl_socket_t *s);
|
| 167 |
+
|
| 168 |
+
/**
|
| 169 |
+
* Peek at the socket and remote ip/port the socket filter is using.
|
| 170 |
+
* The filter owns all returned values.
|
| 171 |
+
* @param psock pointer to hold socket descriptor or NULL
|
| 172 |
+
* @param paddr pointer to hold addr reference or NULL
|
| 173 |
+
* @param pr_ip_str pointer to hold remote addr as string or NULL
|
| 174 |
+
* @param pr_port pointer to hold remote port number or NULL
|
| 175 |
+
* @param pl_ip_str pointer to hold local addr as string or NULL
|
| 176 |
+
* @param pl_port pointer to hold local port number or NULL
|
| 177 |
+
* Returns error if the filter is of invalid type.
|
| 178 |
+
*/
|
| 179 |
+
CURLcode Curl_cf_socket_peek(struct Curl_cfilter *cf,
|
| 180 |
+
struct Curl_easy *data,
|
| 181 |
+
curl_socket_t *psock,
|
| 182 |
+
const struct Curl_sockaddr_ex **paddr,
|
| 183 |
+
const char **pr_ip_str, int *pr_port,
|
| 184 |
+
const char **pl_ip_str, int *pl_port);
|
| 185 |
+
|
| 186 |
+
extern struct Curl_cftype Curl_cft_tcp;
|
| 187 |
+
extern struct Curl_cftype Curl_cft_udp;
|
| 188 |
+
extern struct Curl_cftype Curl_cft_unix;
|
| 189 |
+
extern struct Curl_cftype Curl_cft_tcp_accept;
|
| 190 |
+
|
| 191 |
+
#endif /* HEADER_CURL_CF_SOCKET_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/cfilters.h
ADDED
|
@@ -0,0 +1,539 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CFILTERS_H
|
| 2 |
+
#define HEADER_CURL_CFILTERS_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
struct Curl_cfilter;
|
| 29 |
+
struct Curl_easy;
|
| 30 |
+
struct Curl_dns_entry;
|
| 31 |
+
struct connectdata;
|
| 32 |
+
|
| 33 |
+
/* Callback to destroy resources held by this filter instance.
|
| 34 |
+
* Implementations MUST NOT chain calls to cf->next.
|
| 35 |
+
*/
|
| 36 |
+
typedef void Curl_cft_destroy_this(struct Curl_cfilter *cf,
|
| 37 |
+
struct Curl_easy *data);
|
| 38 |
+
|
| 39 |
+
typedef void Curl_cft_close(struct Curl_cfilter *cf,
|
| 40 |
+
struct Curl_easy *data);
|
| 41 |
+
|
| 42 |
+
typedef CURLcode Curl_cft_connect(struct Curl_cfilter *cf,
|
| 43 |
+
struct Curl_easy *data,
|
| 44 |
+
bool blocking, bool *done);
|
| 45 |
+
|
| 46 |
+
/* Return the hostname and port the connection goes to.
|
| 47 |
+
* This may change with the connection state of filters when tunneling
|
| 48 |
+
* is involved.
|
| 49 |
+
* @param cf the filter to ask
|
| 50 |
+
* @param data the easy handle currently active
|
| 51 |
+
* @param phost on return, points to the relevant, real hostname.
|
| 52 |
+
* this is owned by the connection.
|
| 53 |
+
* @param pdisplay_host on return, points to the printable hostname.
|
| 54 |
+
* this is owned by the connection.
|
| 55 |
+
* @param pport on return, contains the port number
|
| 56 |
+
*/
|
| 57 |
+
typedef void Curl_cft_get_host(struct Curl_cfilter *cf,
|
| 58 |
+
struct Curl_easy *data,
|
| 59 |
+
const char **phost,
|
| 60 |
+
const char **pdisplay_host,
|
| 61 |
+
int *pport);
|
| 62 |
+
|
| 63 |
+
/* Filters may return sockets and fdset flags they are waiting for.
|
| 64 |
+
* The passes array has room for up to MAX_SOCKSPEREASYHANDLE sockets.
|
| 65 |
+
* @return read/write fdset for index in socks
|
| 66 |
+
* or GETSOCK_BLANK when nothing to wait on
|
| 67 |
+
*/
|
| 68 |
+
typedef int Curl_cft_get_select_socks(struct Curl_cfilter *cf,
|
| 69 |
+
struct Curl_easy *data,
|
| 70 |
+
curl_socket_t *socks);
|
| 71 |
+
|
| 72 |
+
typedef bool Curl_cft_data_pending(struct Curl_cfilter *cf,
|
| 73 |
+
const struct Curl_easy *data);
|
| 74 |
+
|
| 75 |
+
typedef ssize_t Curl_cft_send(struct Curl_cfilter *cf,
|
| 76 |
+
struct Curl_easy *data, /* transfer */
|
| 77 |
+
const void *buf, /* data to write */
|
| 78 |
+
size_t len, /* amount to write */
|
| 79 |
+
CURLcode *err); /* error to return */
|
| 80 |
+
|
| 81 |
+
typedef ssize_t Curl_cft_recv(struct Curl_cfilter *cf,
|
| 82 |
+
struct Curl_easy *data, /* transfer */
|
| 83 |
+
char *buf, /* store data here */
|
| 84 |
+
size_t len, /* amount to read */
|
| 85 |
+
CURLcode *err); /* error to return */
|
| 86 |
+
|
| 87 |
+
typedef bool Curl_cft_conn_is_alive(struct Curl_cfilter *cf,
|
| 88 |
+
struct Curl_easy *data,
|
| 89 |
+
bool *input_pending);
|
| 90 |
+
|
| 91 |
+
typedef CURLcode Curl_cft_conn_keep_alive(struct Curl_cfilter *cf,
|
| 92 |
+
struct Curl_easy *data);
|
| 93 |
+
|
| 94 |
+
/**
|
| 95 |
+
* Events/controls for connection filters, their arguments and
|
| 96 |
+
* return code handling. Filter callbacks are invoked "top down".
|
| 97 |
+
* Return code handling:
|
| 98 |
+
* "first fail" meaning that the first filter returning != CURLE_OK, will
|
| 99 |
+
* abort further event distribution and determine the result.
|
| 100 |
+
* "ignored" meaning return values are ignored and the event is distributed
|
| 101 |
+
* to all filters in the chain. Overall result is always CURLE_OK.
|
| 102 |
+
*/
|
| 103 |
+
/* data event arg1 arg2 return */
|
| 104 |
+
#define CF_CTRL_DATA_ATTACH 1 /* 0 NULL ignored */
|
| 105 |
+
#define CF_CTRL_DATA_DETACH 2 /* 0 NULL ignored */
|
| 106 |
+
#define CF_CTRL_DATA_SETUP 4 /* 0 NULL first fail */
|
| 107 |
+
#define CF_CTRL_DATA_IDLE 5 /* 0 NULL first fail */
|
| 108 |
+
#define CF_CTRL_DATA_PAUSE 6 /* on/off NULL first fail */
|
| 109 |
+
#define CF_CTRL_DATA_DONE 7 /* premature NULL ignored */
|
| 110 |
+
#define CF_CTRL_DATA_DONE_SEND 8 /* 0 NULL ignored */
|
| 111 |
+
/* update conn info at connection and data */
|
| 112 |
+
#define CF_CTRL_CONN_INFO_UPDATE (256+0) /* 0 NULL ignored */
|
| 113 |
+
|
| 114 |
+
/**
|
| 115 |
+
* Handle event/control for the filter.
|
| 116 |
+
* Implementations MUST NOT chain calls to cf->next.
|
| 117 |
+
*/
|
| 118 |
+
typedef CURLcode Curl_cft_cntrl(struct Curl_cfilter *cf,
|
| 119 |
+
struct Curl_easy *data,
|
| 120 |
+
int event, int arg1, void *arg2);
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
/**
|
| 124 |
+
* Queries to ask via a `Curl_cft_query *query` method on a cfilter chain.
|
| 125 |
+
* - MAX_CONCURRENT: the maximum number of parallel transfers the filter
|
| 126 |
+
* chain expects to handle at the same time.
|
| 127 |
+
* default: 1 if no filter overrides.
|
| 128 |
+
* - CONNECT_REPLY_MS: milliseconds until the first indication of a server
|
| 129 |
+
* response was received on a connect. For TCP, this
|
| 130 |
+
* reflects the time until the socket connected. On UDP
|
| 131 |
+
* this gives the time the first bytes from the server
|
| 132 |
+
* were received.
|
| 133 |
+
* -1 if not determined yet.
|
| 134 |
+
* - CF_QUERY_SOCKET: the socket used by the filter chain
|
| 135 |
+
*/
|
| 136 |
+
/* query res1 res2 */
|
| 137 |
+
#define CF_QUERY_MAX_CONCURRENT 1 /* number - */
|
| 138 |
+
#define CF_QUERY_CONNECT_REPLY_MS 2 /* number - */
|
| 139 |
+
#define CF_QUERY_SOCKET 3 /* - curl_socket_t */
|
| 140 |
+
#define CF_QUERY_TIMER_CONNECT 4 /* - struct curltime */
|
| 141 |
+
#define CF_QUERY_TIMER_APPCONNECT 5 /* - struct curltime */
|
| 142 |
+
|
| 143 |
+
/**
|
| 144 |
+
* Query the cfilter for properties. Filters ignorant of a query will
|
| 145 |
+
* pass it "down" the filter chain.
|
| 146 |
+
*/
|
| 147 |
+
typedef CURLcode Curl_cft_query(struct Curl_cfilter *cf,
|
| 148 |
+
struct Curl_easy *data,
|
| 149 |
+
int query, int *pres1, void *pres2);
|
| 150 |
+
|
| 151 |
+
/**
|
| 152 |
+
* Type flags for connection filters. A filter can have none, one or
|
| 153 |
+
* many of those. Use to evaluate state/capabilities of a filter chain.
|
| 154 |
+
*
|
| 155 |
+
* CF_TYPE_IP_CONNECT: provides an IP connection or sth equivalent, like
|
| 156 |
+
* a CONNECT tunnel, a UNIX domain socket, a QUIC
|
| 157 |
+
* connection, etc.
|
| 158 |
+
* CF_TYPE_SSL: provide SSL/TLS
|
| 159 |
+
* CF_TYPE_MULTIPLEX: provides multiplexing of easy handles
|
| 160 |
+
*/
|
| 161 |
+
#define CF_TYPE_IP_CONNECT (1 << 0)
|
| 162 |
+
#define CF_TYPE_SSL (1 << 1)
|
| 163 |
+
#define CF_TYPE_MULTIPLEX (1 << 2)
|
| 164 |
+
|
| 165 |
+
/* A connection filter type, e.g. specific implementation. */
|
| 166 |
+
struct Curl_cftype {
|
| 167 |
+
const char *name; /* name of the filter type */
|
| 168 |
+
int flags; /* flags of filter type */
|
| 169 |
+
int log_level; /* log level for such filters */
|
| 170 |
+
Curl_cft_destroy_this *destroy; /* destroy resources of this cf */
|
| 171 |
+
Curl_cft_connect *do_connect; /* establish connection */
|
| 172 |
+
Curl_cft_close *do_close; /* close conn */
|
| 173 |
+
Curl_cft_get_host *get_host; /* host filter talks to */
|
| 174 |
+
Curl_cft_get_select_socks *get_select_socks;/* sockets to select on */
|
| 175 |
+
Curl_cft_data_pending *has_data_pending;/* conn has data pending */
|
| 176 |
+
Curl_cft_send *do_send; /* send data */
|
| 177 |
+
Curl_cft_recv *do_recv; /* receive data */
|
| 178 |
+
Curl_cft_cntrl *cntrl; /* events/control */
|
| 179 |
+
Curl_cft_conn_is_alive *is_alive; /* FALSE if conn is dead, Jim! */
|
| 180 |
+
Curl_cft_conn_keep_alive *keep_alive; /* try to keep it alive */
|
| 181 |
+
Curl_cft_query *query; /* query filter chain */
|
| 182 |
+
};
|
| 183 |
+
|
| 184 |
+
/* A connection filter instance, e.g. registered at a connection */
|
| 185 |
+
struct Curl_cfilter {
|
| 186 |
+
const struct Curl_cftype *cft; /* the type providing implementation */
|
| 187 |
+
struct Curl_cfilter *next; /* next filter in chain */
|
| 188 |
+
void *ctx; /* filter type specific settings */
|
| 189 |
+
struct connectdata *conn; /* the connection this filter belongs to */
|
| 190 |
+
int sockindex; /* the index the filter is installed at */
|
| 191 |
+
BIT(connected); /* != 0 iff this filter is connected */
|
| 192 |
+
};
|
| 193 |
+
|
| 194 |
+
/* Default implementations for the type functions, implementing nop. */
|
| 195 |
+
void Curl_cf_def_destroy_this(struct Curl_cfilter *cf,
|
| 196 |
+
struct Curl_easy *data);
|
| 197 |
+
|
| 198 |
+
/* Default implementations for the type functions, implementing pass-through
|
| 199 |
+
* the filter chain. */
|
| 200 |
+
void Curl_cf_def_get_host(struct Curl_cfilter *cf, struct Curl_easy *data,
|
| 201 |
+
const char **phost, const char **pdisplay_host,
|
| 202 |
+
int *pport);
|
| 203 |
+
int Curl_cf_def_get_select_socks(struct Curl_cfilter *cf,
|
| 204 |
+
struct Curl_easy *data,
|
| 205 |
+
curl_socket_t *socks);
|
| 206 |
+
bool Curl_cf_def_data_pending(struct Curl_cfilter *cf,
|
| 207 |
+
const struct Curl_easy *data);
|
| 208 |
+
ssize_t Curl_cf_def_send(struct Curl_cfilter *cf, struct Curl_easy *data,
|
| 209 |
+
const void *buf, size_t len, CURLcode *err);
|
| 210 |
+
ssize_t Curl_cf_def_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
|
| 211 |
+
char *buf, size_t len, CURLcode *err);
|
| 212 |
+
CURLcode Curl_cf_def_cntrl(struct Curl_cfilter *cf,
|
| 213 |
+
struct Curl_easy *data,
|
| 214 |
+
int event, int arg1, void *arg2);
|
| 215 |
+
bool Curl_cf_def_conn_is_alive(struct Curl_cfilter *cf,
|
| 216 |
+
struct Curl_easy *data,
|
| 217 |
+
bool *input_pending);
|
| 218 |
+
CURLcode Curl_cf_def_conn_keep_alive(struct Curl_cfilter *cf,
|
| 219 |
+
struct Curl_easy *data);
|
| 220 |
+
CURLcode Curl_cf_def_query(struct Curl_cfilter *cf,
|
| 221 |
+
struct Curl_easy *data,
|
| 222 |
+
int query, int *pres1, void *pres2);
|
| 223 |
+
|
| 224 |
+
/**
|
| 225 |
+
* Create a new filter instance, unattached to the filter chain.
|
| 226 |
+
* Use Curl_conn_cf_add() to add it to the chain.
|
| 227 |
+
* @param pcf on success holds the created instance
|
| 228 |
+
* @param cft the filter type
|
| 229 |
+
* @param ctx the type specific context to use
|
| 230 |
+
*/
|
| 231 |
+
CURLcode Curl_cf_create(struct Curl_cfilter **pcf,
|
| 232 |
+
const struct Curl_cftype *cft,
|
| 233 |
+
void *ctx);
|
| 234 |
+
|
| 235 |
+
/**
|
| 236 |
+
* Add a filter instance to the `sockindex` filter chain at connection
|
| 237 |
+
* `conn`. The filter must not already be attached. It is inserted at
|
| 238 |
+
* the start of the chain (top).
|
| 239 |
+
*/
|
| 240 |
+
void Curl_conn_cf_add(struct Curl_easy *data,
|
| 241 |
+
struct connectdata *conn,
|
| 242 |
+
int sockindex,
|
| 243 |
+
struct Curl_cfilter *cf);
|
| 244 |
+
|
| 245 |
+
/**
|
| 246 |
+
* Insert a filter (chain) after `cf_at`.
|
| 247 |
+
* `cf_new` must not already be attached.
|
| 248 |
+
*/
|
| 249 |
+
void Curl_conn_cf_insert_after(struct Curl_cfilter *cf_at,
|
| 250 |
+
struct Curl_cfilter *cf_new);
|
| 251 |
+
|
| 252 |
+
/**
|
| 253 |
+
* Discard, e.g. remove and destroy `discard` iff
|
| 254 |
+
* it still is in the filter chain below `cf`. If `discard`
|
| 255 |
+
* is no longer found beneath `cf` return FALSE.
|
| 256 |
+
* if `destroy_always` is TRUE, will call `discard`s destroy
|
| 257 |
+
* function and free it even if not found in the subchain.
|
| 258 |
+
*/
|
| 259 |
+
bool Curl_conn_cf_discard_sub(struct Curl_cfilter *cf,
|
| 260 |
+
struct Curl_cfilter *discard,
|
| 261 |
+
struct Curl_easy *data,
|
| 262 |
+
bool destroy_always);
|
| 263 |
+
|
| 264 |
+
/**
|
| 265 |
+
* Discard all cfilters starting with `*pcf` and clearing it afterwards.
|
| 266 |
+
*/
|
| 267 |
+
void Curl_conn_cf_discard_chain(struct Curl_cfilter **pcf,
|
| 268 |
+
struct Curl_easy *data);
|
| 269 |
+
|
| 270 |
+
/**
|
| 271 |
+
* Remove and destroy all filters at chain `sockindex` on connection `conn`.
|
| 272 |
+
*/
|
| 273 |
+
void Curl_conn_cf_discard_all(struct Curl_easy *data,
|
| 274 |
+
struct connectdata *conn,
|
| 275 |
+
int sockindex);
|
| 276 |
+
|
| 277 |
+
|
| 278 |
+
CURLcode Curl_conn_cf_connect(struct Curl_cfilter *cf,
|
| 279 |
+
struct Curl_easy *data,
|
| 280 |
+
bool blocking, bool *done);
|
| 281 |
+
void Curl_conn_cf_close(struct Curl_cfilter *cf, struct Curl_easy *data);
|
| 282 |
+
int Curl_conn_cf_get_select_socks(struct Curl_cfilter *cf,
|
| 283 |
+
struct Curl_easy *data,
|
| 284 |
+
curl_socket_t *socks);
|
| 285 |
+
ssize_t Curl_conn_cf_send(struct Curl_cfilter *cf, struct Curl_easy *data,
|
| 286 |
+
const void *buf, size_t len, CURLcode *err);
|
| 287 |
+
ssize_t Curl_conn_cf_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
|
| 288 |
+
char *buf, size_t len, CURLcode *err);
|
| 289 |
+
CURLcode Curl_conn_cf_cntrl(struct Curl_cfilter *cf,
|
| 290 |
+
struct Curl_easy *data,
|
| 291 |
+
bool ignore_result,
|
| 292 |
+
int event, int arg1, void *arg2);
|
| 293 |
+
|
| 294 |
+
/**
|
| 295 |
+
* Determine if the connection filter chain is using SSL to the remote host
|
| 296 |
+
* (or will be once connected).
|
| 297 |
+
*/
|
| 298 |
+
bool Curl_conn_cf_is_ssl(struct Curl_cfilter *cf);
|
| 299 |
+
|
| 300 |
+
/**
|
| 301 |
+
* Get the socket used by the filter chain starting at `cf`.
|
| 302 |
+
* Returns CURL_SOCKET_BAD if not available.
|
| 303 |
+
*/
|
| 304 |
+
curl_socket_t Curl_conn_cf_get_socket(struct Curl_cfilter *cf,
|
| 305 |
+
struct Curl_easy *data);
|
| 306 |
+
|
| 307 |
+
|
| 308 |
+
#define CURL_CF_SSL_DEFAULT -1
|
| 309 |
+
#define CURL_CF_SSL_DISABLE 0
|
| 310 |
+
#define CURL_CF_SSL_ENABLE 1
|
| 311 |
+
|
| 312 |
+
/**
|
| 313 |
+
* Bring the filter chain at `sockindex` for connection `data->conn` into
|
| 314 |
+
* connected state. Which will set `*done` to TRUE.
|
| 315 |
+
* This can be called on an already connected chain with no side effects.
|
| 316 |
+
* When not `blocking`, calls may return without error and `*done != TRUE`,
|
| 317 |
+
* while the individual filters negotiated the connection.
|
| 318 |
+
*/
|
| 319 |
+
CURLcode Curl_conn_connect(struct Curl_easy *data, int sockindex,
|
| 320 |
+
bool blocking, bool *done);
|
| 321 |
+
|
| 322 |
+
/**
|
| 323 |
+
* Check if the filter chain at `sockindex` for connection `conn` is
|
| 324 |
+
* completely connected.
|
| 325 |
+
*/
|
| 326 |
+
bool Curl_conn_is_connected(struct connectdata *conn, int sockindex);
|
| 327 |
+
|
| 328 |
+
/**
|
| 329 |
+
* Determine if we have reached the remote host on IP level, e.g.
|
| 330 |
+
* have a TCP connection. This turns TRUE before a possible SSL
|
| 331 |
+
* handshake has been started/done.
|
| 332 |
+
*/
|
| 333 |
+
bool Curl_conn_is_ip_connected(struct Curl_easy *data, int sockindex);
|
| 334 |
+
|
| 335 |
+
/**
|
| 336 |
+
* Determine if the connection is using SSL to the remote host
|
| 337 |
+
* (or will be once connected). This will return FALSE, if SSL
|
| 338 |
+
* is only used in proxying and not for the tunnel itself.
|
| 339 |
+
*/
|
| 340 |
+
bool Curl_conn_is_ssl(struct connectdata *conn, int sockindex);
|
| 341 |
+
|
| 342 |
+
/**
|
| 343 |
+
* Connection provides multiplexing of easy handles at `socketindex`.
|
| 344 |
+
*/
|
| 345 |
+
bool Curl_conn_is_multiplex(struct connectdata *conn, int sockindex);
|
| 346 |
+
|
| 347 |
+
/**
|
| 348 |
+
* Close the filter chain at `sockindex` for connection `data->conn`.
|
| 349 |
+
* Filters remain in place and may be connected again afterwards.
|
| 350 |
+
*/
|
| 351 |
+
void Curl_conn_close(struct Curl_easy *data, int sockindex);
|
| 352 |
+
|
| 353 |
+
/**
|
| 354 |
+
* Return if data is pending in some connection filter at chain
|
| 355 |
+
* `sockindex` for connection `data->conn`.
|
| 356 |
+
*/
|
| 357 |
+
bool Curl_conn_data_pending(struct Curl_easy *data,
|
| 358 |
+
int sockindex);
|
| 359 |
+
|
| 360 |
+
/**
|
| 361 |
+
* Return the socket used on data's connection for the index.
|
| 362 |
+
* Returns CURL_SOCKET_BAD if not available.
|
| 363 |
+
*/
|
| 364 |
+
curl_socket_t Curl_conn_get_socket(struct Curl_easy *data, int sockindex);
|
| 365 |
+
|
| 366 |
+
/**
|
| 367 |
+
* Get any select fd flags and the socket filters at chain `sockindex`
|
| 368 |
+
* at connection `conn` might be waiting for.
|
| 369 |
+
*/
|
| 370 |
+
int Curl_conn_get_select_socks(struct Curl_easy *data, int sockindex,
|
| 371 |
+
curl_socket_t *socks);
|
| 372 |
+
|
| 373 |
+
/**
|
| 374 |
+
* Receive data through the filter chain at `sockindex` for connection
|
| 375 |
+
* `data->conn`. Copy at most `len` bytes into `buf`. Return the
|
| 376 |
+
* actuel number of bytes copied or a negative value on error.
|
| 377 |
+
* The error code is placed into `*code`.
|
| 378 |
+
*/
|
| 379 |
+
ssize_t Curl_conn_recv(struct Curl_easy *data, int sockindex, char *buf,
|
| 380 |
+
size_t len, CURLcode *code);
|
| 381 |
+
|
| 382 |
+
/**
|
| 383 |
+
* Send `len` bytes of data from `buf` through the filter chain `sockindex`
|
| 384 |
+
* at connection `data->conn`. Return the actual number of bytes written
|
| 385 |
+
* or a negative value on error.
|
| 386 |
+
* The error code is placed into `*code`.
|
| 387 |
+
*/
|
| 388 |
+
ssize_t Curl_conn_send(struct Curl_easy *data, int sockindex,
|
| 389 |
+
const void *buf, size_t len, CURLcode *code);
|
| 390 |
+
|
| 391 |
+
/**
|
| 392 |
+
* The easy handle `data` is being attached to `conn`. This does
|
| 393 |
+
* not mean that data will actually do a transfer. Attachment is
|
| 394 |
+
* also used for temporary actions on the connection.
|
| 395 |
+
*/
|
| 396 |
+
void Curl_conn_ev_data_attach(struct connectdata *conn,
|
| 397 |
+
struct Curl_easy *data);
|
| 398 |
+
|
| 399 |
+
/**
|
| 400 |
+
* The easy handle `data` is being detached (no longer served)
|
| 401 |
+
* by connection `conn`. All filters are informed to release any resources
|
| 402 |
+
* related to `data`.
|
| 403 |
+
* Note: there may be several `data` attached to a connection at the same
|
| 404 |
+
* time.
|
| 405 |
+
*/
|
| 406 |
+
void Curl_conn_ev_data_detach(struct connectdata *conn,
|
| 407 |
+
struct Curl_easy *data);
|
| 408 |
+
|
| 409 |
+
/**
|
| 410 |
+
* Notify connection filters that they need to setup data for
|
| 411 |
+
* a transfer.
|
| 412 |
+
*/
|
| 413 |
+
CURLcode Curl_conn_ev_data_setup(struct Curl_easy *data);
|
| 414 |
+
|
| 415 |
+
/**
|
| 416 |
+
* Notify connection filters that now would be a good time to
|
| 417 |
+
* perform any idle, e.g. time related, actions.
|
| 418 |
+
*/
|
| 419 |
+
CURLcode Curl_conn_ev_data_idle(struct Curl_easy *data);
|
| 420 |
+
|
| 421 |
+
/**
|
| 422 |
+
* Notify connection filters that the transfer represented by `data`
|
| 423 |
+
* is donw with sending data (e.g. has uploaded everything).
|
| 424 |
+
*/
|
| 425 |
+
void Curl_conn_ev_data_done_send(struct Curl_easy *data);
|
| 426 |
+
|
| 427 |
+
/**
|
| 428 |
+
* Notify connection filters that the transfer represented by `data`
|
| 429 |
+
* is finished - eventually premature, e.g. before being complete.
|
| 430 |
+
*/
|
| 431 |
+
void Curl_conn_ev_data_done(struct Curl_easy *data, bool premature);
|
| 432 |
+
|
| 433 |
+
/**
|
| 434 |
+
* Notify connection filters that the transfer of data is paused/unpaused.
|
| 435 |
+
*/
|
| 436 |
+
CURLcode Curl_conn_ev_data_pause(struct Curl_easy *data, bool do_pause);
|
| 437 |
+
|
| 438 |
+
/**
|
| 439 |
+
* Inform connection filters to update their info in `conn`.
|
| 440 |
+
*/
|
| 441 |
+
void Curl_conn_ev_update_info(struct Curl_easy *data,
|
| 442 |
+
struct connectdata *conn);
|
| 443 |
+
|
| 444 |
+
/**
|
| 445 |
+
* Check if FIRSTSOCKET's cfilter chain deems connection alive.
|
| 446 |
+
*/
|
| 447 |
+
bool Curl_conn_is_alive(struct Curl_easy *data, struct connectdata *conn,
|
| 448 |
+
bool *input_pending);
|
| 449 |
+
|
| 450 |
+
/**
|
| 451 |
+
* Try to upkeep the connection filters at sockindex.
|
| 452 |
+
*/
|
| 453 |
+
CURLcode Curl_conn_keep_alive(struct Curl_easy *data,
|
| 454 |
+
struct connectdata *conn,
|
| 455 |
+
int sockindex);
|
| 456 |
+
|
| 457 |
+
void Curl_cf_def_close(struct Curl_cfilter *cf, struct Curl_easy *data);
|
| 458 |
+
void Curl_conn_get_host(struct Curl_easy *data, int sockindex,
|
| 459 |
+
const char **phost, const char **pdisplay_host,
|
| 460 |
+
int *pport);
|
| 461 |
+
|
| 462 |
+
/**
|
| 463 |
+
* Get the maximum number of parallel transfers the connection
|
| 464 |
+
* expects to be able to handle at `sockindex`.
|
| 465 |
+
*/
|
| 466 |
+
size_t Curl_conn_get_max_concurrent(struct Curl_easy *data,
|
| 467 |
+
struct connectdata *conn,
|
| 468 |
+
int sockindex);
|
| 469 |
+
|
| 470 |
+
|
| 471 |
+
/**
|
| 472 |
+
* Types and macros used to keep the current easy handle in filter calls,
|
| 473 |
+
* allowing for nested invocations. See #10336.
|
| 474 |
+
*
|
| 475 |
+
* `cf_call_data` is intended to be a member of the cfilter's `ctx` type.
|
| 476 |
+
* A filter defines the macro `CF_CTX_CALL_DATA` to give access to that.
|
| 477 |
+
*
|
| 478 |
+
* With all values 0, the default, this indicates that there is no cfilter
|
| 479 |
+
* call with `data` ongoing.
|
| 480 |
+
* Macro `CF_DATA_SAVE` preserves the current `cf_call_data` in a local
|
| 481 |
+
* variable and sets the `data` given, incrementing the `depth` counter.
|
| 482 |
+
*
|
| 483 |
+
* Macro `CF_DATA_RESTORE` restores the old values from the local variable,
|
| 484 |
+
* while checking that `depth` values are as expected (debug build), catching
|
| 485 |
+
* cases where a "lower" RESTORE was not called.
|
| 486 |
+
*
|
| 487 |
+
* Finally, macro `CF_DATA_CURRENT` gives the easy handle of the current
|
| 488 |
+
* invocation.
|
| 489 |
+
*/
|
| 490 |
+
struct cf_call_data {
|
| 491 |
+
struct Curl_easy *data;
|
| 492 |
+
#ifdef DEBUGBUILD
|
| 493 |
+
int depth;
|
| 494 |
+
#endif
|
| 495 |
+
};
|
| 496 |
+
|
| 497 |
+
/**
|
| 498 |
+
* define to access the `struct cf_call_data for a cfilter. Normally
|
| 499 |
+
* a member in the cfilter's `ctx`.
|
| 500 |
+
*
|
| 501 |
+
* #define CF_CTX_CALL_DATA(cf) -> struct cf_call_data instance
|
| 502 |
+
*/
|
| 503 |
+
|
| 504 |
+
#ifdef DEBUGBUILD
|
| 505 |
+
|
| 506 |
+
#define CF_DATA_SAVE(save, cf, data) \
|
| 507 |
+
do { \
|
| 508 |
+
(save) = CF_CTX_CALL_DATA(cf); \
|
| 509 |
+
DEBUGASSERT((save).data == NULL || (save).depth > 0); \
|
| 510 |
+
CF_CTX_CALL_DATA(cf).depth++; \
|
| 511 |
+
CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)data; \
|
| 512 |
+
} while(0)
|
| 513 |
+
|
| 514 |
+
#define CF_DATA_RESTORE(cf, save) \
|
| 515 |
+
do { \
|
| 516 |
+
DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
|
| 517 |
+
DEBUGASSERT((save).data == NULL || (save).depth > 0); \
|
| 518 |
+
CF_CTX_CALL_DATA(cf) = (save); \
|
| 519 |
+
} while(0)
|
| 520 |
+
|
| 521 |
+
#else /* DEBUGBUILD */
|
| 522 |
+
|
| 523 |
+
#define CF_DATA_SAVE(save, cf, data) \
|
| 524 |
+
do { \
|
| 525 |
+
(save) = CF_CTX_CALL_DATA(cf); \
|
| 526 |
+
CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)data; \
|
| 527 |
+
} while(0)
|
| 528 |
+
|
| 529 |
+
#define CF_DATA_RESTORE(cf, save) \
|
| 530 |
+
do { \
|
| 531 |
+
CF_CTX_CALL_DATA(cf) = (save); \
|
| 532 |
+
} while(0)
|
| 533 |
+
|
| 534 |
+
#endif /* !DEBUGBUILD */
|
| 535 |
+
|
| 536 |
+
#define CF_DATA_CURRENT(cf) \
|
| 537 |
+
((cf)? (CF_CTX_CALL_DATA(cf).data) : NULL)
|
| 538 |
+
|
| 539 |
+
#endif /* HEADER_CURL_CFILTERS_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-amigaos.h
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CONFIG_AMIGAOS_H
|
| 2 |
+
#define HEADER_CURL_CONFIG_AMIGAOS_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
/* ================================================================ */
|
| 28 |
+
/* Hand crafted config file for AmigaOS */
|
| 29 |
+
/* ================================================================ */
|
| 30 |
+
|
| 31 |
+
#ifdef __AMIGA__ /* Any AmigaOS flavour */
|
| 32 |
+
|
| 33 |
+
#define HAVE_ARPA_INET_H 1
|
| 34 |
+
#define HAVE_CLOSESOCKET_CAMEL 1
|
| 35 |
+
#define HAVE_INTTYPES_H 1
|
| 36 |
+
#define HAVE_IOCTLSOCKET_CAMEL 1
|
| 37 |
+
#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
|
| 38 |
+
#define HAVE_LONGLONG 1
|
| 39 |
+
#define HAVE_NETDB_H 1
|
| 40 |
+
#define HAVE_NETINET_IN_H 1
|
| 41 |
+
#define HAVE_NET_IF_H 1
|
| 42 |
+
#define HAVE_PWD_H 1
|
| 43 |
+
#define HAVE_SELECT 1
|
| 44 |
+
#define HAVE_SIGNAL 1
|
| 45 |
+
#define HAVE_SOCKET 1
|
| 46 |
+
#define HAVE_STRCASECMP 1
|
| 47 |
+
#define HAVE_STRDUP 1
|
| 48 |
+
#define HAVE_STRICMP 1
|
| 49 |
+
#define HAVE_STRINGS_H 1
|
| 50 |
+
#define HAVE_STRUCT_TIMEVAL 1
|
| 51 |
+
#define HAVE_SYS_PARAM_H 1
|
| 52 |
+
#define HAVE_SYS_SOCKET_H 1
|
| 53 |
+
#define HAVE_SYS_SOCKIO_H 1
|
| 54 |
+
#define HAVE_SYS_STAT_H 1
|
| 55 |
+
#define HAVE_SYS_TIME_H 1
|
| 56 |
+
#define HAVE_SYS_TYPES_H 1
|
| 57 |
+
#define HAVE_UNISTD_H 1
|
| 58 |
+
#define HAVE_UTIME 1
|
| 59 |
+
#define HAVE_UTIME_H 1
|
| 60 |
+
#define HAVE_WRITABLE_ARGV 1
|
| 61 |
+
#define HAVE_SYS_IOCTL_H 1
|
| 62 |
+
|
| 63 |
+
#define NEED_MALLOC_H 1
|
| 64 |
+
|
| 65 |
+
#define SIZEOF_INT 4
|
| 66 |
+
#define SIZEOF_SIZE_T 4
|
| 67 |
+
|
| 68 |
+
#ifndef SIZEOF_CURL_OFF_T
|
| 69 |
+
#define SIZEOF_CURL_OFF_T 8
|
| 70 |
+
#endif
|
| 71 |
+
|
| 72 |
+
#define USE_MANUAL 1
|
| 73 |
+
#define CURL_DISABLE_LDAP 1
|
| 74 |
+
|
| 75 |
+
#ifndef OS
|
| 76 |
+
#define OS "AmigaOS"
|
| 77 |
+
#endif
|
| 78 |
+
|
| 79 |
+
#define PACKAGE "curl"
|
| 80 |
+
#define PACKAGE_BUGREPORT "a suitable mailing list: https://curl.se/mail/"
|
| 81 |
+
#define PACKAGE_NAME "curl"
|
| 82 |
+
#define PACKAGE_STRING "curl -"
|
| 83 |
+
#define PACKAGE_TARNAME "curl"
|
| 84 |
+
#define PACKAGE_VERSION "-"
|
| 85 |
+
|
| 86 |
+
#if defined(USE_AMISSL)
|
| 87 |
+
#define CURL_CA_PATH "AmiSSL:Certs"
|
| 88 |
+
#elif defined(__MORPHOS__)
|
| 89 |
+
#define CURL_CA_BUNDLE "MOSSYS:Data/SSL/curl-ca-bundle.crt"
|
| 90 |
+
#else
|
| 91 |
+
#define CURL_CA_BUNDLE "s:curl-ca-bundle.crt"
|
| 92 |
+
#endif
|
| 93 |
+
|
| 94 |
+
#define STDC_HEADERS 1
|
| 95 |
+
|
| 96 |
+
#define in_addr_t int
|
| 97 |
+
|
| 98 |
+
#ifndef F_OK
|
| 99 |
+
# define F_OK 0
|
| 100 |
+
#endif
|
| 101 |
+
|
| 102 |
+
#ifndef O_RDONLY
|
| 103 |
+
# define O_RDONLY 0x0000
|
| 104 |
+
#endif
|
| 105 |
+
|
| 106 |
+
#ifndef LONG_MAX
|
| 107 |
+
# define LONG_MAX 0x7fffffffL
|
| 108 |
+
#endif
|
| 109 |
+
|
| 110 |
+
#ifndef LONG_MIN
|
| 111 |
+
# define LONG_MIN (-0x7fffffffL-1)
|
| 112 |
+
#endif
|
| 113 |
+
|
| 114 |
+
#define HAVE_RECV 1
|
| 115 |
+
#define RECV_TYPE_ARG1 long
|
| 116 |
+
#define RECV_TYPE_ARG2 char *
|
| 117 |
+
#define RECV_TYPE_ARG3 long
|
| 118 |
+
#define RECV_TYPE_ARG4 long
|
| 119 |
+
#define RECV_TYPE_RETV long
|
| 120 |
+
|
| 121 |
+
#define HAVE_SEND 1
|
| 122 |
+
#define SEND_TYPE_ARG1 int
|
| 123 |
+
#define SEND_QUAL_ARG2 const
|
| 124 |
+
#define SEND_TYPE_ARG2 char *
|
| 125 |
+
#define SEND_TYPE_ARG3 int
|
| 126 |
+
#define SEND_TYPE_ARG4 int
|
| 127 |
+
#define SEND_TYPE_RETV int
|
| 128 |
+
|
| 129 |
+
#endif /* __AMIGA__ */
|
| 130 |
+
#endif /* HEADER_CURL_CONFIG_AMIGAOS_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-dos.h
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CONFIG_DOS_H
|
| 2 |
+
#define HEADER_CURL_CONFIG_DOS_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
/* ================================================================ */
|
| 29 |
+
/* lib/config-dos.h - Hand crafted config file for DOS */
|
| 30 |
+
/* ================================================================ */
|
| 31 |
+
|
| 32 |
+
#ifndef OS
|
| 33 |
+
#if defined(DJGPP)
|
| 34 |
+
#define OS "MSDOS/djgpp"
|
| 35 |
+
#elif defined(__HIGHC__)
|
| 36 |
+
#define OS "MSDOS/HighC"
|
| 37 |
+
#else
|
| 38 |
+
#define OS "MSDOS/?"
|
| 39 |
+
#endif
|
| 40 |
+
#endif
|
| 41 |
+
|
| 42 |
+
#define PACKAGE "curl"
|
| 43 |
+
|
| 44 |
+
#define USE_MANUAL 1
|
| 45 |
+
|
| 46 |
+
#define HAVE_ARPA_INET_H 1
|
| 47 |
+
#define HAVE_FCNTL_H 1
|
| 48 |
+
#define HAVE_FREEADDRINFO 1
|
| 49 |
+
#define HAVE_GETADDRINFO 1
|
| 50 |
+
#define HAVE_GETTIMEOFDAY 1
|
| 51 |
+
#define HAVE_IO_H 1
|
| 52 |
+
#define HAVE_IOCTL_FIONBIO 1
|
| 53 |
+
#define HAVE_IOCTLSOCKET 1
|
| 54 |
+
#define HAVE_IOCTLSOCKET_FIONBIO 1
|
| 55 |
+
#define HAVE_LOCALE_H 1
|
| 56 |
+
#define HAVE_LONGLONG 1
|
| 57 |
+
#define HAVE_NETDB_H 1
|
| 58 |
+
#define HAVE_NETINET_IN_H 1
|
| 59 |
+
#define HAVE_NETINET_TCP_H 1
|
| 60 |
+
#define HAVE_NET_IF_H 1
|
| 61 |
+
#define HAVE_RECV 1
|
| 62 |
+
#define HAVE_SELECT 1
|
| 63 |
+
#define HAVE_SEND 1
|
| 64 |
+
#define HAVE_SETLOCALE 1
|
| 65 |
+
#define HAVE_SETMODE 1
|
| 66 |
+
#define HAVE_SIGNAL 1
|
| 67 |
+
#define HAVE_SOCKET 1
|
| 68 |
+
#define HAVE_STRDUP 1
|
| 69 |
+
#define HAVE_STRICMP 1
|
| 70 |
+
#define HAVE_STRTOLL 1
|
| 71 |
+
#define HAVE_STRUCT_TIMEVAL 1
|
| 72 |
+
#define HAVE_SYS_IOCTL_H 1
|
| 73 |
+
#define HAVE_SYS_SOCKET_H 1
|
| 74 |
+
#define HAVE_SYS_STAT_H 1
|
| 75 |
+
#define HAVE_SYS_TYPES_H 1
|
| 76 |
+
#define HAVE_UNISTD_H 1
|
| 77 |
+
|
| 78 |
+
#define NEED_MALLOC_H 1
|
| 79 |
+
|
| 80 |
+
#define SIZEOF_INT 4
|
| 81 |
+
#define SIZEOF_LONG 4
|
| 82 |
+
#define SIZEOF_SIZE_T 4
|
| 83 |
+
#define SIZEOF_CURL_OFF_T 8
|
| 84 |
+
#define STDC_HEADERS 1
|
| 85 |
+
|
| 86 |
+
/* Qualifiers for send() and recv() */
|
| 87 |
+
|
| 88 |
+
#define SEND_TYPE_ARG1 int
|
| 89 |
+
#define SEND_QUAL_ARG2 const
|
| 90 |
+
#define SEND_TYPE_ARG2 void *
|
| 91 |
+
#define SEND_TYPE_ARG3 int
|
| 92 |
+
#define SEND_TYPE_ARG4 int
|
| 93 |
+
#define SEND_TYPE_RETV int
|
| 94 |
+
|
| 95 |
+
#define RECV_TYPE_ARG1 int
|
| 96 |
+
#define RECV_TYPE_ARG2 void *
|
| 97 |
+
#define RECV_TYPE_ARG3 int
|
| 98 |
+
#define RECV_TYPE_ARG4 int
|
| 99 |
+
#define RECV_TYPE_RETV int
|
| 100 |
+
|
| 101 |
+
#define BSD
|
| 102 |
+
|
| 103 |
+
/* CURLDEBUG definition enables memory tracking */
|
| 104 |
+
/* #define CURLDEBUG */
|
| 105 |
+
|
| 106 |
+
/* to disable LDAP */
|
| 107 |
+
#define CURL_DISABLE_LDAP 1
|
| 108 |
+
|
| 109 |
+
#define in_addr_t u_long
|
| 110 |
+
|
| 111 |
+
#if defined(__HIGHC__) || \
|
| 112 |
+
(defined(__GNUC__) && (__GNUC__ < 4))
|
| 113 |
+
#define ssize_t int
|
| 114 |
+
#endif
|
| 115 |
+
|
| 116 |
+
/* Target HAVE_x section */
|
| 117 |
+
|
| 118 |
+
#if defined(DJGPP)
|
| 119 |
+
#define HAVE_BASENAME 1
|
| 120 |
+
#define HAVE_STRCASECMP 1
|
| 121 |
+
#define HAVE_SIGACTION 1
|
| 122 |
+
#define HAVE_SIGSETJMP 1
|
| 123 |
+
#define HAVE_SYS_TIME_H 1
|
| 124 |
+
#define HAVE_TERMIOS_H 1
|
| 125 |
+
#define HAVE_VARIADIC_MACROS_GCC 1
|
| 126 |
+
|
| 127 |
+
#elif defined(__HIGHC__)
|
| 128 |
+
#define HAVE_SYS_TIME_H 1
|
| 129 |
+
#define strerror(e) strerror_s_((e))
|
| 130 |
+
#endif
|
| 131 |
+
|
| 132 |
+
#ifdef MSDOS /* Watt-32 */
|
| 133 |
+
#define HAVE_CLOSE_S 1
|
| 134 |
+
#endif
|
| 135 |
+
|
| 136 |
+
#undef word
|
| 137 |
+
#undef byte
|
| 138 |
+
|
| 139 |
+
#endif /* HEADER_CURL_CONFIG_DOS_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-mac.h
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CONFIG_MAC_H
|
| 2 |
+
#define HEADER_CURL_CONFIG_MAC_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
/* =================================================================== */
|
| 28 |
+
/* Hand crafted config file for Mac OS 9 */
|
| 29 |
+
/* =================================================================== */
|
| 30 |
+
/* On Mac OS X you must run configure to generate curl_config.h file */
|
| 31 |
+
/* =================================================================== */
|
| 32 |
+
|
| 33 |
+
#ifndef OS
|
| 34 |
+
#define OS "mac"
|
| 35 |
+
#endif
|
| 36 |
+
|
| 37 |
+
#include <ConditionalMacros.h>
|
| 38 |
+
#if TYPE_LONGLONG
|
| 39 |
+
#define HAVE_LONGLONG 1
|
| 40 |
+
#endif
|
| 41 |
+
|
| 42 |
+
/* Define if you want the built-in manual */
|
| 43 |
+
#define USE_MANUAL 1
|
| 44 |
+
|
| 45 |
+
#define HAVE_NETINET_IN_H 1
|
| 46 |
+
#define HAVE_SYS_SOCKET_H 1
|
| 47 |
+
#define HAVE_NETDB_H 1
|
| 48 |
+
#define HAVE_ARPA_INET_H 1
|
| 49 |
+
#define HAVE_UNISTD_H 1
|
| 50 |
+
#define HAVE_NET_IF_H 1
|
| 51 |
+
#define HAVE_SYS_TYPES_H 1
|
| 52 |
+
#define HAVE_GETTIMEOFDAY 1
|
| 53 |
+
#define HAVE_FCNTL_H 1
|
| 54 |
+
#define HAVE_SYS_STAT_H 1
|
| 55 |
+
#define HAVE_UTIME_H 1
|
| 56 |
+
#define HAVE_SYS_TIME_H 1
|
| 57 |
+
#define HAVE_SYS_UTIME_H 1
|
| 58 |
+
#define HAVE_SYS_IOCTL_H 1
|
| 59 |
+
#define HAVE_ALARM 1
|
| 60 |
+
#define HAVE_FTRUNCATE 1
|
| 61 |
+
#define HAVE_UTIME 1
|
| 62 |
+
#define HAVE_SELECT 1
|
| 63 |
+
#define HAVE_SOCKET 1
|
| 64 |
+
#define HAVE_STRUCT_TIMEVAL 1
|
| 65 |
+
|
| 66 |
+
#define HAVE_SIGACTION 1
|
| 67 |
+
|
| 68 |
+
#ifdef MACOS_SSL_SUPPORT
|
| 69 |
+
# define USE_OPENSSL 1
|
| 70 |
+
#endif
|
| 71 |
+
|
| 72 |
+
#define CURL_DISABLE_LDAP 1
|
| 73 |
+
|
| 74 |
+
#define HAVE_IOCTL_FIONBIO 1
|
| 75 |
+
|
| 76 |
+
#define SIZEOF_INT 4
|
| 77 |
+
#define SIZEOF_LONG 4
|
| 78 |
+
#define SIZEOF_SIZE_T 4
|
| 79 |
+
#ifdef HAVE_LONGLONG
|
| 80 |
+
#define SIZEOF_CURL_OFF_T 8
|
| 81 |
+
#else
|
| 82 |
+
#define SIZEOF_CURL_OFF_T 4
|
| 83 |
+
#endif
|
| 84 |
+
|
| 85 |
+
#define HAVE_RECV 1
|
| 86 |
+
#define RECV_TYPE_ARG1 int
|
| 87 |
+
#define RECV_TYPE_ARG2 void *
|
| 88 |
+
#define RECV_TYPE_ARG3 size_t
|
| 89 |
+
#define RECV_TYPE_ARG4 int
|
| 90 |
+
#define RECV_TYPE_RETV ssize_t
|
| 91 |
+
|
| 92 |
+
#define HAVE_SEND 1
|
| 93 |
+
#define SEND_TYPE_ARG1 int
|
| 94 |
+
#define SEND_QUAL_ARG2 const
|
| 95 |
+
#define SEND_TYPE_ARG2 void *
|
| 96 |
+
#define SEND_TYPE_ARG3 size_t
|
| 97 |
+
#define SEND_TYPE_ARG4 int
|
| 98 |
+
#define SEND_TYPE_RETV ssize_t
|
| 99 |
+
|
| 100 |
+
#define HAVE_EXTRA_STRICMP_H 1
|
| 101 |
+
#define HAVE_EXTRA_STRDUP_H 1
|
| 102 |
+
|
| 103 |
+
#endif /* HEADER_CURL_CONFIG_MAC_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-os400.h
ADDED
|
@@ -0,0 +1,346 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CONFIG_OS400_H
|
| 2 |
+
#define HEADER_CURL_CONFIG_OS400_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
/* ================================================================ */
|
| 28 |
+
/* Hand crafted config file for OS/400 */
|
| 29 |
+
/* ================================================================ */
|
| 30 |
+
|
| 31 |
+
#pragma enum(int)
|
| 32 |
+
|
| 33 |
+
#undef PACKAGE
|
| 34 |
+
|
| 35 |
+
/* Version number of this archive. */
|
| 36 |
+
#undef VERSION
|
| 37 |
+
|
| 38 |
+
/* Define cpu-machine-OS */
|
| 39 |
+
#ifndef OS
|
| 40 |
+
#define OS "OS/400"
|
| 41 |
+
#endif
|
| 42 |
+
|
| 43 |
+
/* OS400 supports a 3-argument ASCII version of gethostbyaddr_r(), but its
|
| 44 |
+
* prototype is incompatible with the "standard" one (1st argument is not
|
| 45 |
+
* const). However, getaddrinfo() is supported (ASCII version defined as
|
| 46 |
+
* a local wrapper in setup-os400.h) in a threadsafe way: we can then
|
| 47 |
+
* configure getaddrinfo() as such and get rid of gethostbyname_r() without
|
| 48 |
+
* loss of threadsafeness. */
|
| 49 |
+
#undef HAVE_GETHOSTBYNAME_R
|
| 50 |
+
#undef HAVE_GETHOSTBYNAME_R_3
|
| 51 |
+
#undef HAVE_GETHOSTBYNAME_R_5
|
| 52 |
+
#undef HAVE_GETHOSTBYNAME_R_6
|
| 53 |
+
#define HAVE_GETADDRINFO
|
| 54 |
+
#define HAVE_GETADDRINFO_THREADSAFE
|
| 55 |
+
|
| 56 |
+
/* Define if you need the _REENTRANT define for some functions */
|
| 57 |
+
#undef NEED_REENTRANT
|
| 58 |
+
|
| 59 |
+
/* Define if you want to enable IPv6 support */
|
| 60 |
+
#define ENABLE_IPV6
|
| 61 |
+
|
| 62 |
+
/* Define if struct sockaddr_in6 has the sin6_scope_id member */
|
| 63 |
+
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
|
| 64 |
+
|
| 65 |
+
/* Define this to 'int' if ssize_t is not an available typedefed type */
|
| 66 |
+
#undef ssize_t
|
| 67 |
+
|
| 68 |
+
/* Define this as a suitable file to read random data from */
|
| 69 |
+
#undef RANDOM_FILE
|
| 70 |
+
|
| 71 |
+
/* Define to 1 if you have the alarm function. */
|
| 72 |
+
#define HAVE_ALARM 1
|
| 73 |
+
|
| 74 |
+
/* Define if you have the <arpa/inet.h> header file. */
|
| 75 |
+
#define HAVE_ARPA_INET_H
|
| 76 |
+
|
| 77 |
+
/* Define if you have the `closesocket' function. */
|
| 78 |
+
#undef HAVE_CLOSESOCKET
|
| 79 |
+
|
| 80 |
+
/* Define if you have the <fcntl.h> header file. */
|
| 81 |
+
#define HAVE_FCNTL_H
|
| 82 |
+
|
| 83 |
+
/* Define if you have the `geteuid' function. */
|
| 84 |
+
#define HAVE_GETEUID
|
| 85 |
+
|
| 86 |
+
/* Define if you have the `gethostname' function. */
|
| 87 |
+
#define HAVE_GETHOSTNAME
|
| 88 |
+
|
| 89 |
+
/* Define if you have the `getpass_r' function. */
|
| 90 |
+
#undef HAVE_GETPASS_R
|
| 91 |
+
|
| 92 |
+
/* Define to 1 if you have the getpeername function. */
|
| 93 |
+
#define HAVE_GETPEERNAME 1
|
| 94 |
+
|
| 95 |
+
/* Define if you have the `getpwuid' function. */
|
| 96 |
+
#define HAVE_GETPWUID
|
| 97 |
+
|
| 98 |
+
/* Define to 1 if you have the getsockname function. */
|
| 99 |
+
#define HAVE_GETSOCKNAME 1
|
| 100 |
+
|
| 101 |
+
/* Define if you have the `gettimeofday' function. */
|
| 102 |
+
#define HAVE_GETTIMEOFDAY
|
| 103 |
+
|
| 104 |
+
/* Define if you have the `timeval' struct. */
|
| 105 |
+
#define HAVE_STRUCT_TIMEVAL
|
| 106 |
+
|
| 107 |
+
/* Define if you have the <inttypes.h> header file. */
|
| 108 |
+
#define HAVE_INTTYPES_H
|
| 109 |
+
|
| 110 |
+
/* Define if you have the <io.h> header file. */
|
| 111 |
+
#undef HAVE_IO_H
|
| 112 |
+
|
| 113 |
+
/* Define if you have the `socket' library (-lsocket). */
|
| 114 |
+
#undef HAVE_LIBSOCKET
|
| 115 |
+
|
| 116 |
+
/* Define if you have GSS API. */
|
| 117 |
+
#define HAVE_GSSAPI
|
| 118 |
+
|
| 119 |
+
/* Define if you have the GNU gssapi libraries */
|
| 120 |
+
#undef HAVE_GSSGNU
|
| 121 |
+
|
| 122 |
+
/* Define if you have the Heimdal gssapi libraries */
|
| 123 |
+
#define HAVE_GSSHEIMDAL
|
| 124 |
+
|
| 125 |
+
/* Define if you have the MIT gssapi libraries */
|
| 126 |
+
#undef HAVE_GSSMIT
|
| 127 |
+
|
| 128 |
+
/* Define if you need the malloc.h header file even with stdlib.h */
|
| 129 |
+
/* #define NEED_MALLOC_H 1 */
|
| 130 |
+
|
| 131 |
+
/* Define if you have the <netdb.h> header file. */
|
| 132 |
+
#define HAVE_NETDB_H
|
| 133 |
+
|
| 134 |
+
/* Define if you have the <netinet/in.h> header file. */
|
| 135 |
+
#define HAVE_NETINET_IN_H
|
| 136 |
+
|
| 137 |
+
/* Define if you have the <net/if.h> header file. */
|
| 138 |
+
#define HAVE_NET_IF_H
|
| 139 |
+
|
| 140 |
+
/* Define if you have the <pwd.h> header file. */
|
| 141 |
+
#define HAVE_PWD_H
|
| 142 |
+
|
| 143 |
+
/* Define if you have the `select' function. */
|
| 144 |
+
#define HAVE_SELECT
|
| 145 |
+
|
| 146 |
+
/* Define if you have the `sigaction' function. */
|
| 147 |
+
#define HAVE_SIGACTION
|
| 148 |
+
|
| 149 |
+
/* Define if you have the `signal' function. */
|
| 150 |
+
#undef HAVE_SIGNAL
|
| 151 |
+
|
| 152 |
+
/* Define if you have the `socket' function. */
|
| 153 |
+
#define HAVE_SOCKET
|
| 154 |
+
|
| 155 |
+
/* Define if you have the <stdint.h> header file. */
|
| 156 |
+
#undef HAVE_STDINT_H
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
/* The following define is needed on OS400 to enable strcmpi(), stricmp() and
|
| 160 |
+
strdup(). */
|
| 161 |
+
#define __cplusplus__strings__
|
| 162 |
+
|
| 163 |
+
/* Define if you have the `strcasecmp' function. */
|
| 164 |
+
#undef HAVE_STRCASECMP
|
| 165 |
+
|
| 166 |
+
/* Define if you have the `strcmpi' function. */
|
| 167 |
+
#define HAVE_STRCMPI
|
| 168 |
+
|
| 169 |
+
/* Define if you have the `stricmp' function. */
|
| 170 |
+
#define HAVE_STRICMP
|
| 171 |
+
|
| 172 |
+
/* Define if you have the `strdup' function. */
|
| 173 |
+
#define HAVE_STRDUP
|
| 174 |
+
|
| 175 |
+
/* Define if you have the <strings.h> header file. */
|
| 176 |
+
#define HAVE_STRINGS_H
|
| 177 |
+
|
| 178 |
+
/* Define if you have the <stropts.h> header file. */
|
| 179 |
+
#undef HAVE_STROPTS_H
|
| 180 |
+
|
| 181 |
+
/* Define if you have the `strtok_r' function. */
|
| 182 |
+
#define HAVE_STRTOK_R
|
| 183 |
+
|
| 184 |
+
/* Define if you have the `strtoll' function. */
|
| 185 |
+
#undef HAVE_STRTOLL /* Allows ASCII compile on V5R1. */
|
| 186 |
+
|
| 187 |
+
/* Define if you have the <sys/param.h> header file. */
|
| 188 |
+
#define HAVE_SYS_PARAM_H
|
| 189 |
+
|
| 190 |
+
/* Define if you have the <sys/select.h> header file. */
|
| 191 |
+
#undef HAVE_SYS_SELECT_H
|
| 192 |
+
|
| 193 |
+
/* Define if you have the <sys/socket.h> header file. */
|
| 194 |
+
#define HAVE_SYS_SOCKET_H
|
| 195 |
+
|
| 196 |
+
/* Define if you have the <sys/sockio.h> header file. */
|
| 197 |
+
#undef HAVE_SYS_SOCKIO_H
|
| 198 |
+
|
| 199 |
+
/* Define if you have the <sys/stat.h> header file. */
|
| 200 |
+
#define HAVE_SYS_STAT_H
|
| 201 |
+
|
| 202 |
+
/* Define if you have the <sys/time.h> header file. */
|
| 203 |
+
#define HAVE_SYS_TIME_H
|
| 204 |
+
|
| 205 |
+
/* Define if you have the <sys/types.h> header file. */
|
| 206 |
+
#define HAVE_SYS_TYPES_H
|
| 207 |
+
|
| 208 |
+
/* Define if you have the <sys/un.h> header file. */
|
| 209 |
+
#define HAVE_SYS_UN_H
|
| 210 |
+
|
| 211 |
+
/* Define if you have the <sys/ioctl.h> header file. */
|
| 212 |
+
#define HAVE_SYS_IOCTL_H
|
| 213 |
+
|
| 214 |
+
/* Define if you have the <termios.h> header file. */
|
| 215 |
+
#undef HAVE_TERMIOS_H
|
| 216 |
+
|
| 217 |
+
/* Define if you have the <termio.h> header file. */
|
| 218 |
+
#undef HAVE_TERMIO_H
|
| 219 |
+
|
| 220 |
+
/* Define if you have the <unistd.h> header file. */
|
| 221 |
+
#define HAVE_UNISTD_H
|
| 222 |
+
|
| 223 |
+
/* Name of package */
|
| 224 |
+
#undef PACKAGE
|
| 225 |
+
|
| 226 |
+
/* The size of `int', as computed by sizeof. */
|
| 227 |
+
#define SIZEOF_INT 4
|
| 228 |
+
|
| 229 |
+
/* Define if the compiler supports the 'long long' data type. */
|
| 230 |
+
#define HAVE_LONGLONG
|
| 231 |
+
|
| 232 |
+
/* The size of a `long long', as computed by sizeof. */
|
| 233 |
+
#define SIZEOF_LONG_LONG 8
|
| 234 |
+
|
| 235 |
+
/* The size of `long', as computed by sizeof. */
|
| 236 |
+
#define SIZEOF_LONG 4
|
| 237 |
+
|
| 238 |
+
/* The size of `size_t', as computed by sizeof. */
|
| 239 |
+
#define SIZEOF_SIZE_T 4
|
| 240 |
+
|
| 241 |
+
/* The size of `curl_off_t', as computed by sizeof. */
|
| 242 |
+
#define SIZEOF_CURL_OFF_T 8
|
| 243 |
+
|
| 244 |
+
/* Define this if you have struct sockaddr_storage */
|
| 245 |
+
#define HAVE_STRUCT_SOCKADDR_STORAGE
|
| 246 |
+
|
| 247 |
+
/* Define if you have the ANSI C header files. */
|
| 248 |
+
#define STDC_HEADERS
|
| 249 |
+
|
| 250 |
+
/* Define to enable HTTP3 support (experimental, requires NGTCP2, QUICHE or
|
| 251 |
+
MSH3) */
|
| 252 |
+
#undef ENABLE_QUIC
|
| 253 |
+
|
| 254 |
+
/* Version number of package */
|
| 255 |
+
#undef VERSION
|
| 256 |
+
|
| 257 |
+
/* Number of bits in a file offset, on hosts where this is settable. */
|
| 258 |
+
#undef _FILE_OFFSET_BITS
|
| 259 |
+
|
| 260 |
+
/* Define for large files, on AIX-style hosts. */
|
| 261 |
+
#define _LARGE_FILES
|
| 262 |
+
|
| 263 |
+
/* Define to empty if `const' does not conform to ANSI C. */
|
| 264 |
+
#undef const
|
| 265 |
+
|
| 266 |
+
/* type to use in place of in_addr_t if not defined */
|
| 267 |
+
#define in_addr_t unsigned long
|
| 268 |
+
|
| 269 |
+
/* Define to `unsigned' if <sys/types.h> does not define. */
|
| 270 |
+
#undef size_t
|
| 271 |
+
|
| 272 |
+
/* Define if you have a working ioctl FIONBIO function. */
|
| 273 |
+
#define HAVE_IOCTL_FIONBIO
|
| 274 |
+
|
| 275 |
+
/* Define if you have a working ioctl SIOCGIFADDR function. */
|
| 276 |
+
#define HAVE_IOCTL_SIOCGIFADDR
|
| 277 |
+
|
| 278 |
+
/* To disable LDAP */
|
| 279 |
+
#undef CURL_DISABLE_LDAP
|
| 280 |
+
|
| 281 |
+
/* Definition to make a library symbol externally visible. */
|
| 282 |
+
#define CURL_EXTERN_SYMBOL
|
| 283 |
+
|
| 284 |
+
/* Define if you have the ldap_url_parse procedure. */
|
| 285 |
+
/* #define HAVE_LDAP_URL_PARSE */ /* Disabled because of an IBM bug. */
|
| 286 |
+
|
| 287 |
+
/* Define if you have the recv function. */
|
| 288 |
+
#define HAVE_RECV
|
| 289 |
+
|
| 290 |
+
/* Define to the type of arg 1 for recv. */
|
| 291 |
+
#define RECV_TYPE_ARG1 int
|
| 292 |
+
|
| 293 |
+
/* Define to the type of arg 2 for recv. */
|
| 294 |
+
#define RECV_TYPE_ARG2 char *
|
| 295 |
+
|
| 296 |
+
/* Define to the type of arg 3 for recv. */
|
| 297 |
+
#define RECV_TYPE_ARG3 int
|
| 298 |
+
|
| 299 |
+
/* Define to the type of arg 4 for recv. */
|
| 300 |
+
#define RECV_TYPE_ARG4 int
|
| 301 |
+
|
| 302 |
+
/* Define to the function return type for recv. */
|
| 303 |
+
#define RECV_TYPE_RETV int
|
| 304 |
+
|
| 305 |
+
/* Define if you have the send function. */
|
| 306 |
+
#define HAVE_SEND
|
| 307 |
+
|
| 308 |
+
/* Define to the type of arg 1 for send. */
|
| 309 |
+
#define SEND_TYPE_ARG1 int
|
| 310 |
+
|
| 311 |
+
/* Define to the type qualifier of arg 2 for send. */
|
| 312 |
+
#define SEND_QUAL_ARG2
|
| 313 |
+
|
| 314 |
+
/* Define to the type of arg 2 for send. */
|
| 315 |
+
#define SEND_TYPE_ARG2 char *
|
| 316 |
+
|
| 317 |
+
/* Define to the type of arg 3 for send. */
|
| 318 |
+
#define SEND_TYPE_ARG3 int
|
| 319 |
+
|
| 320 |
+
/* Define to the type of arg 4 for send. */
|
| 321 |
+
#define SEND_TYPE_ARG4 int
|
| 322 |
+
|
| 323 |
+
/* Define to the function return type for send. */
|
| 324 |
+
#define SEND_TYPE_RETV int
|
| 325 |
+
|
| 326 |
+
/* Define to use the OS/400 crypto library. */
|
| 327 |
+
#define USE_OS400CRYPTO
|
| 328 |
+
|
| 329 |
+
/* Define to use Unix sockets. */
|
| 330 |
+
#define USE_UNIX_SOCKETS
|
| 331 |
+
|
| 332 |
+
/* Use the system keyring as the default CA bundle. */
|
| 333 |
+
#define CURL_CA_BUNDLE "/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB"
|
| 334 |
+
|
| 335 |
+
/* ---------------------------------------------------------------- */
|
| 336 |
+
/* ADDITIONAL DEFINITIONS */
|
| 337 |
+
/* ---------------------------------------------------------------- */
|
| 338 |
+
|
| 339 |
+
/* The following must be defined BEFORE system header files inclusion. */
|
| 340 |
+
|
| 341 |
+
#define __ptr128 /* No teraspace. */
|
| 342 |
+
#define qadrt_use_fputc_inline /* Generate fputc() wrapper inline. */
|
| 343 |
+
#define qadrt_use_fread_inline /* Generate fread() wrapper inline. */
|
| 344 |
+
#define qadrt_use_fwrite_inline /* Generate fwrite() wrapper inline. */
|
| 345 |
+
|
| 346 |
+
#endif /* HEADER_CURL_CONFIG_OS400_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-plan9.h
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CONFIG_PLAN9_H
|
| 2 |
+
#define HEADER_CURL_CONFIG_PLAN9_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#define BUILDING_LIBCURL 1
|
| 28 |
+
#define CURL_CA_BUNDLE "/sys/lib/tls/ca.pem"
|
| 29 |
+
#define CURL_CA_PATH "/sys/lib/tls"
|
| 30 |
+
#define CURL_STATICLIB 1
|
| 31 |
+
#define ENABLE_IPV6 1
|
| 32 |
+
#define CURL_DISABLE_LDAP 1
|
| 33 |
+
|
| 34 |
+
#define NEED_REENTRANT 1
|
| 35 |
+
#ifndef OS
|
| 36 |
+
#define OS "plan9"
|
| 37 |
+
#endif
|
| 38 |
+
#define PACKAGE "curl"
|
| 39 |
+
#define PACKAGE_NAME "curl"
|
| 40 |
+
#define PACKAGE_BUGREPORT "a suitable mailing list: https://curl.se/mail/"
|
| 41 |
+
#define PACKAGE_STRING "curl -"
|
| 42 |
+
#define PACKAGE_TARNAME "curl"
|
| 43 |
+
#define PACKAGE_VERSION "-"
|
| 44 |
+
#define RANDOM_FILE "/dev/random"
|
| 45 |
+
#define VERSION "0.0.0" /* TODO */
|
| 46 |
+
|
| 47 |
+
#define STDC_HEADERS 1
|
| 48 |
+
|
| 49 |
+
#ifdef _BITS64
|
| 50 |
+
#error not implement
|
| 51 |
+
#else
|
| 52 |
+
#define SIZEOF_INT 4
|
| 53 |
+
#define SIZEOF_LONG 4
|
| 54 |
+
#define SIZEOF_OFF_T 8
|
| 55 |
+
#define SIZEOF_CURL_OFF_T 4 /* curl_off_t = timediff_t = int */
|
| 56 |
+
#define SIZEOF_SIZE_T 4
|
| 57 |
+
#define SIZEOF_TIME_T 4
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#define HAVE_RECV 1
|
| 61 |
+
#define RECV_TYPE_ARG1 int
|
| 62 |
+
#define RECV_TYPE_ARG2 void *
|
| 63 |
+
#define RECV_TYPE_ARG3 int
|
| 64 |
+
#define RECV_TYPE_ARG4 int
|
| 65 |
+
#define RECV_TYPE_RETV int
|
| 66 |
+
|
| 67 |
+
#define HAVE_SELECT 1
|
| 68 |
+
|
| 69 |
+
#define HAVE_SEND 1
|
| 70 |
+
#define SEND_TYPE_ARG1 int
|
| 71 |
+
#define SEND_TYPE_ARG2 void *
|
| 72 |
+
#define SEND_QUAL_ARG2
|
| 73 |
+
#define SEND_TYPE_ARG3 int
|
| 74 |
+
#define SEND_TYPE_ARG4 int
|
| 75 |
+
#define SEND_TYPE_RETV int
|
| 76 |
+
|
| 77 |
+
#define HAVE_ALARM 1
|
| 78 |
+
#define HAVE_ARPA_INET_H 1
|
| 79 |
+
#define HAVE_BASENAME 1
|
| 80 |
+
#define HAVE_BOOL_T 1
|
| 81 |
+
#define HAVE_FCNTL 1
|
| 82 |
+
#define HAVE_FCNTL_H 1
|
| 83 |
+
#define HAVE_FREEADDRINFO 1
|
| 84 |
+
#define HAVE_FTRUNCATE 1
|
| 85 |
+
#define HAVE_GETADDRINFO 1
|
| 86 |
+
#define HAVE_GETEUID 1
|
| 87 |
+
#define HAVE_GETHOSTNAME 1
|
| 88 |
+
#define HAVE_GETPPID 1
|
| 89 |
+
#define HAVE_GETPWUID 1
|
| 90 |
+
#define HAVE_GETTIMEOFDAY 1
|
| 91 |
+
#define HAVE_GMTIME_R 1
|
| 92 |
+
#define HAVE_INET_NTOP 1
|
| 93 |
+
#define HAVE_INET_PTON 1
|
| 94 |
+
#define HAVE_INTTYPES_H 1
|
| 95 |
+
#define HAVE_LIBGEN_H 1
|
| 96 |
+
#define HAVE_LIBZ 1
|
| 97 |
+
#define HAVE_LOCALE_H 1
|
| 98 |
+
#define HAVE_LONGLONG 1
|
| 99 |
+
#define HAVE_NETDB_H 1
|
| 100 |
+
#define HAVE_NETINET_IN_H 1
|
| 101 |
+
#define HAVE_NETINET_TCP_H 1
|
| 102 |
+
#define HAVE_PWD_H 1
|
| 103 |
+
#define HAVE_SYS_SELECT_H 1
|
| 104 |
+
|
| 105 |
+
#define USE_OPENSSL 1
|
| 106 |
+
|
| 107 |
+
#define HAVE_PIPE 1
|
| 108 |
+
#define HAVE_POLL_FINE 1
|
| 109 |
+
#define HAVE_POLL_H 1
|
| 110 |
+
#define HAVE_PTHREAD_H 1
|
| 111 |
+
#define HAVE_SETLOCALE 1
|
| 112 |
+
|
| 113 |
+
#define HAVE_SIGACTION 1
|
| 114 |
+
#define HAVE_SIGNAL 1
|
| 115 |
+
#define HAVE_SIGSETJMP 1
|
| 116 |
+
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
|
| 117 |
+
#define HAVE_SOCKET 1
|
| 118 |
+
#define HAVE_SSL_GET_SHUTDOWN 1
|
| 119 |
+
#define HAVE_STDBOOL_H 1
|
| 120 |
+
#define HAVE_STDINT_H 1
|
| 121 |
+
#define HAVE_STRCASECMP 1
|
| 122 |
+
#define HAVE_STRDUP 1
|
| 123 |
+
#define HAVE_STRTOK_R 1
|
| 124 |
+
#define HAVE_STRTOLL 1
|
| 125 |
+
#define HAVE_STRUCT_TIMEVAL 1
|
| 126 |
+
#define HAVE_SYS_IOCTL_H 1
|
| 127 |
+
#define HAVE_SYS_PARAM_H 1
|
| 128 |
+
#define HAVE_SYS_RESOURCE_H 1
|
| 129 |
+
#define HAVE_SYS_SOCKET_H 1
|
| 130 |
+
#define HAVE_SYS_STAT_H 1
|
| 131 |
+
#define HAVE_SYS_TIME_H 1
|
| 132 |
+
#define HAVE_SYS_TYPES_H 1
|
| 133 |
+
#define HAVE_SYS_UN_H 1
|
| 134 |
+
#define HAVE_TERMIOS_H 1
|
| 135 |
+
#define HAVE_UNISTD_H 1
|
| 136 |
+
#define HAVE_UTIME 1
|
| 137 |
+
#define HAVE_UTIME_H 1
|
| 138 |
+
|
| 139 |
+
#define HAVE_POSIX_STRERROR_R 1
|
| 140 |
+
#define HAVE_STRERROR_R 1
|
| 141 |
+
#define USE_MANUAL 1
|
| 142 |
+
|
| 143 |
+
#define __attribute__(x)
|
| 144 |
+
|
| 145 |
+
#ifndef __cplusplus
|
| 146 |
+
#undef inline
|
| 147 |
+
#endif
|
| 148 |
+
|
| 149 |
+
#endif /* HEADER_CURL_CONFIG_PLAN9_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-riscos.h
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CONFIG_RISCOS_H
|
| 2 |
+
#define HEADER_CURL_CONFIG_RISCOS_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
/* ================================================================ */
|
| 28 |
+
/* Hand crafted config file for RISC OS */
|
| 29 |
+
/* ================================================================ */
|
| 30 |
+
|
| 31 |
+
/* Name of this package! */
|
| 32 |
+
#undef PACKAGE
|
| 33 |
+
|
| 34 |
+
/* Version number of this archive. */
|
| 35 |
+
#undef VERSION
|
| 36 |
+
|
| 37 |
+
/* Define cpu-machine-OS */
|
| 38 |
+
#ifndef OS
|
| 39 |
+
#define OS "ARM-RISC OS"
|
| 40 |
+
#endif
|
| 41 |
+
|
| 42 |
+
/* Define if you want the built-in manual */
|
| 43 |
+
#define USE_MANUAL
|
| 44 |
+
|
| 45 |
+
/* Define if you have the gethostbyname_r() function with 3 arguments */
|
| 46 |
+
#undef HAVE_GETHOSTBYNAME_R_3
|
| 47 |
+
|
| 48 |
+
/* Define if you have the gethostbyname_r() function with 5 arguments */
|
| 49 |
+
#undef HAVE_GETHOSTBYNAME_R_5
|
| 50 |
+
|
| 51 |
+
/* Define if you have the gethostbyname_r() function with 6 arguments */
|
| 52 |
+
#undef HAVE_GETHOSTBYNAME_R_6
|
| 53 |
+
|
| 54 |
+
/* Define if you need the _REENTRANT define for some functions */
|
| 55 |
+
#undef NEED_REENTRANT
|
| 56 |
+
|
| 57 |
+
/* Define if you want to enable IPv6 support */
|
| 58 |
+
#undef ENABLE_IPV6
|
| 59 |
+
|
| 60 |
+
/* Define if struct sockaddr_in6 has the sin6_scope_id member */
|
| 61 |
+
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
|
| 62 |
+
|
| 63 |
+
/* Define this to 'int' if ssize_t is not an available typedefed type */
|
| 64 |
+
#undef ssize_t
|
| 65 |
+
|
| 66 |
+
/* Define this as a suitable file to read random data from */
|
| 67 |
+
#undef RANDOM_FILE
|
| 68 |
+
|
| 69 |
+
/* Define if you want to enable IPv6 support */
|
| 70 |
+
#undef ENABLE_IPV6
|
| 71 |
+
|
| 72 |
+
/* Define if you have the alarm function. */
|
| 73 |
+
#define HAVE_ALARM
|
| 74 |
+
|
| 75 |
+
/* Define if you have the <arpa/inet.h> header file. */
|
| 76 |
+
#define HAVE_ARPA_INET_H
|
| 77 |
+
|
| 78 |
+
/* Define if you have the `closesocket' function. */
|
| 79 |
+
#undef HAVE_CLOSESOCKET
|
| 80 |
+
|
| 81 |
+
/* Define if you have the <fcntl.h> header file. */
|
| 82 |
+
#define HAVE_FCNTL_H
|
| 83 |
+
|
| 84 |
+
/* Define if you have the `ftruncate' function. */
|
| 85 |
+
#define HAVE_FTRUNCATE
|
| 86 |
+
|
| 87 |
+
/* Define if getaddrinfo exists and works */
|
| 88 |
+
#define HAVE_GETADDRINFO
|
| 89 |
+
|
| 90 |
+
/* Define if you have the `geteuid' function. */
|
| 91 |
+
#undef HAVE_GETEUID
|
| 92 |
+
|
| 93 |
+
/* Define if you have the `gethostbyname_r' function. */
|
| 94 |
+
#undef HAVE_GETHOSTBYNAME_R
|
| 95 |
+
|
| 96 |
+
/* Define if you have the `gethostname' function. */
|
| 97 |
+
#define HAVE_GETHOSTNAME
|
| 98 |
+
|
| 99 |
+
/* Define if you have the `getpass_r' function. */
|
| 100 |
+
#undef HAVE_GETPASS_R
|
| 101 |
+
|
| 102 |
+
/* Define if you have the `getpwuid' function. */
|
| 103 |
+
#undef HAVE_GETPWUID
|
| 104 |
+
|
| 105 |
+
/* Define if you have the `gettimeofday' function. */
|
| 106 |
+
#define HAVE_GETTIMEOFDAY
|
| 107 |
+
|
| 108 |
+
/* Define if you have the `timeval' struct. */
|
| 109 |
+
#define HAVE_STRUCT_TIMEVAL
|
| 110 |
+
|
| 111 |
+
/* Define if you have the <inttypes.h> header file. */
|
| 112 |
+
#define HAVE_INTTYPES_H
|
| 113 |
+
|
| 114 |
+
/* Define if you have the <io.h> header file. */
|
| 115 |
+
#undef HAVE_IO_H
|
| 116 |
+
|
| 117 |
+
/* Define if you have the `socket' library (-lsocket). */
|
| 118 |
+
#undef HAVE_LIBSOCKET
|
| 119 |
+
|
| 120 |
+
/* Define if you need the malloc.h header file even with stdlib.h */
|
| 121 |
+
/* #define NEED_MALLOC_H 1 */
|
| 122 |
+
|
| 123 |
+
/* Define if you have the <netdb.h> header file. */
|
| 124 |
+
#define HAVE_NETDB_H
|
| 125 |
+
|
| 126 |
+
/* Define if you have the <netinet/in.h> header file. */
|
| 127 |
+
#define HAVE_NETINET_IN_H
|
| 128 |
+
|
| 129 |
+
/* Define if you have the <net/if.h> header file. */
|
| 130 |
+
#define HAVE_NET_IF_H
|
| 131 |
+
|
| 132 |
+
/* Define if you have the <pwd.h> header file. */
|
| 133 |
+
#undef HAVE_PWD_H
|
| 134 |
+
|
| 135 |
+
/* Define if you have the `select' function. */
|
| 136 |
+
#define HAVE_SELECT
|
| 137 |
+
|
| 138 |
+
/* Define if you have the `sigaction' function. */
|
| 139 |
+
#undef HAVE_SIGACTION
|
| 140 |
+
|
| 141 |
+
/* Define if you have the `signal' function. */
|
| 142 |
+
#define HAVE_SIGNAL
|
| 143 |
+
|
| 144 |
+
/* Define if you have the `socket' function. */
|
| 145 |
+
#define HAVE_SOCKET
|
| 146 |
+
|
| 147 |
+
/* Define if you have the <stdint.h> header file. */
|
| 148 |
+
#undef HAVE_STDINT_H
|
| 149 |
+
|
| 150 |
+
/* Define if you have the `strcasecmp' function. */
|
| 151 |
+
#undef HAVE_STRCASECMP
|
| 152 |
+
|
| 153 |
+
/* Define if you have the `strcmpi' function. */
|
| 154 |
+
#undef HAVE_STRCMPI
|
| 155 |
+
|
| 156 |
+
/* Define if you have the `strdup' function. */
|
| 157 |
+
#define HAVE_STRDUP
|
| 158 |
+
|
| 159 |
+
/* Define if you have the `stricmp' function. */
|
| 160 |
+
#define HAVE_STRICMP
|
| 161 |
+
|
| 162 |
+
/* Define if you have the <strings.h> header file. */
|
| 163 |
+
#undef HAVE_STRINGS_H
|
| 164 |
+
|
| 165 |
+
/* Define if you have the `strtok_r' function. */
|
| 166 |
+
#undef HAVE_STRTOK_R
|
| 167 |
+
|
| 168 |
+
/* Define if you have the `strtoll' function. */
|
| 169 |
+
#undef HAVE_STRTOLL
|
| 170 |
+
|
| 171 |
+
/* Define if you have the <sys/param.h> header file. */
|
| 172 |
+
#undef HAVE_SYS_PARAM_H
|
| 173 |
+
|
| 174 |
+
/* Define if you have the <sys/select.h> header file. */
|
| 175 |
+
#undef HAVE_SYS_SELECT_H
|
| 176 |
+
|
| 177 |
+
/* Define if you have the <sys/socket.h> header file. */
|
| 178 |
+
#define HAVE_SYS_SOCKET_H
|
| 179 |
+
|
| 180 |
+
/* Define if you have the <sys/sockio.h> header file. */
|
| 181 |
+
#undef HAVE_SYS_SOCKIO_H
|
| 182 |
+
|
| 183 |
+
/* Define if you have the <sys/stat.h> header file. */
|
| 184 |
+
#undef HAVE_SYS_STAT_H
|
| 185 |
+
|
| 186 |
+
/* Define if you have the <sys/time.h> header file. */
|
| 187 |
+
#define HAVE_SYS_TIME_H
|
| 188 |
+
|
| 189 |
+
/* Define if you have the <sys/types.h> header file. */
|
| 190 |
+
#define HAVE_SYS_TYPES_H
|
| 191 |
+
|
| 192 |
+
/* Define if you have the <termios.h> header file. */
|
| 193 |
+
#define HAVE_TERMIOS_H
|
| 194 |
+
|
| 195 |
+
/* Define if you have the <termio.h> header file. */
|
| 196 |
+
#undef HAVE_TERMIO_H
|
| 197 |
+
|
| 198 |
+
/* Define if you have the <unistd.h> header file. */
|
| 199 |
+
#define HAVE_UNISTD_H
|
| 200 |
+
|
| 201 |
+
/* Name of package */
|
| 202 |
+
#undef PACKAGE
|
| 203 |
+
|
| 204 |
+
/* The size of `int', as computed by sizeof. */
|
| 205 |
+
#define SIZEOF_INT 4
|
| 206 |
+
|
| 207 |
+
/* The size of `long long', as computed by sizeof. */
|
| 208 |
+
#undef SIZEOF_LONG_LONG
|
| 209 |
+
|
| 210 |
+
/* The size of `size_t', as computed by sizeof. */
|
| 211 |
+
#define SIZEOF_SIZE_T 4
|
| 212 |
+
|
| 213 |
+
/* Define if you have the ANSI C header files. */
|
| 214 |
+
#undef STDC_HEADERS
|
| 215 |
+
|
| 216 |
+
/* Version number of package */
|
| 217 |
+
#undef VERSION
|
| 218 |
+
|
| 219 |
+
/* Define if on AIX 3.
|
| 220 |
+
System headers sometimes define this.
|
| 221 |
+
We just want to avoid a redefinition error message. */
|
| 222 |
+
#ifndef _ALL_SOURCE
|
| 223 |
+
# undef _ALL_SOURCE
|
| 224 |
+
#endif
|
| 225 |
+
|
| 226 |
+
/* Number of bits in a file offset, on hosts where this is settable. */
|
| 227 |
+
#undef _FILE_OFFSET_BITS
|
| 228 |
+
|
| 229 |
+
/* Define for large files, on AIX-style hosts. */
|
| 230 |
+
#undef _LARGE_FILES
|
| 231 |
+
|
| 232 |
+
/* Define to empty if `const' does not conform to ANSI C. */
|
| 233 |
+
#undef const
|
| 234 |
+
|
| 235 |
+
/* Define to `unsigned' if <sys/types.h> does not define. */
|
| 236 |
+
#undef size_t
|
| 237 |
+
|
| 238 |
+
/* Define to `int' if <sys/types.h> does not define. */
|
| 239 |
+
#undef ssize_t
|
| 240 |
+
|
| 241 |
+
/* Define if you have a working ioctl FIONBIO function. */
|
| 242 |
+
#define HAVE_IOCTL_FIONBIO
|
| 243 |
+
|
| 244 |
+
/* to disable LDAP */
|
| 245 |
+
#define CURL_DISABLE_LDAP
|
| 246 |
+
|
| 247 |
+
/* Define if you have the recv function. */
|
| 248 |
+
#define HAVE_RECV 1
|
| 249 |
+
|
| 250 |
+
/* Define to the type of arg 1 for recv. */
|
| 251 |
+
#define RECV_TYPE_ARG1 int
|
| 252 |
+
|
| 253 |
+
/* Define to the type of arg 2 for recv. */
|
| 254 |
+
#define RECV_TYPE_ARG2 void *
|
| 255 |
+
|
| 256 |
+
/* Define to the type of arg 3 for recv. */
|
| 257 |
+
#define RECV_TYPE_ARG3 size_t
|
| 258 |
+
|
| 259 |
+
/* Define to the type of arg 4 for recv. */
|
| 260 |
+
#define RECV_TYPE_ARG4 int
|
| 261 |
+
|
| 262 |
+
/* Define to the function return type for recv. */
|
| 263 |
+
#define RECV_TYPE_RETV ssize_t
|
| 264 |
+
|
| 265 |
+
/* Define if you have the send function. */
|
| 266 |
+
#define HAVE_SEND 1
|
| 267 |
+
|
| 268 |
+
/* Define to the type of arg 1 for send. */
|
| 269 |
+
#define SEND_TYPE_ARG1 int
|
| 270 |
+
|
| 271 |
+
/* Define to the type qualifier of arg 2 for send. */
|
| 272 |
+
#define SEND_QUAL_ARG2 const
|
| 273 |
+
|
| 274 |
+
/* Define to the type of arg 2 for send. */
|
| 275 |
+
#define SEND_TYPE_ARG2 void *
|
| 276 |
+
|
| 277 |
+
/* Define to the type of arg 3 for send. */
|
| 278 |
+
#define SEND_TYPE_ARG3 size_t
|
| 279 |
+
|
| 280 |
+
/* Define to the type of arg 4 for send. */
|
| 281 |
+
#define SEND_TYPE_ARG4 int
|
| 282 |
+
|
| 283 |
+
/* Define to the function return type for send. */
|
| 284 |
+
#define SEND_TYPE_RETV ssize_t
|
| 285 |
+
|
| 286 |
+
#endif /* HEADER_CURL_CONFIG_RISCOS_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-win32.h
ADDED
|
@@ -0,0 +1,642 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CONFIG_WIN32_H
|
| 2 |
+
#define HEADER_CURL_CONFIG_WIN32_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
/* ================================================================ */
|
| 28 |
+
/* Hand crafted config file for Windows */
|
| 29 |
+
/* ================================================================ */
|
| 30 |
+
|
| 31 |
+
/* ---------------------------------------------------------------- */
|
| 32 |
+
/* HEADER FILES */
|
| 33 |
+
/* ---------------------------------------------------------------- */
|
| 34 |
+
|
| 35 |
+
/* Define if you have the <arpa/inet.h> header file. */
|
| 36 |
+
/* #define HAVE_ARPA_INET_H 1 */
|
| 37 |
+
|
| 38 |
+
/* Define if you have the <fcntl.h> header file. */
|
| 39 |
+
#define HAVE_FCNTL_H 1
|
| 40 |
+
|
| 41 |
+
/* Define to 1 if you have the <inttypes.h> header file. */
|
| 42 |
+
#if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || defined(__MINGW32__)
|
| 43 |
+
#define HAVE_INTTYPES_H 1
|
| 44 |
+
#endif
|
| 45 |
+
|
| 46 |
+
/* Define to 1 if you have the <stdint.h> header file. */
|
| 47 |
+
#if (defined(_MSC_VER) && (_MSC_VER >= 1600)) || defined(__MINGW32__) || \
|
| 48 |
+
(defined(__BORLANDC__) && (__BORLANDC__ >= 0x0582)) || defined(__POCC__)
|
| 49 |
+
#define HAVE_STDINT_H 1
|
| 50 |
+
#endif
|
| 51 |
+
|
| 52 |
+
/* Define if you have the <io.h> header file. */
|
| 53 |
+
#define HAVE_IO_H 1
|
| 54 |
+
|
| 55 |
+
/* Define if you have the <locale.h> header file. */
|
| 56 |
+
#define HAVE_LOCALE_H 1
|
| 57 |
+
|
| 58 |
+
/* Define if you need <malloc.h> header even with <stdlib.h> header file. */
|
| 59 |
+
#if !defined(__SALFORDC__) && !defined(__POCC__)
|
| 60 |
+
#define NEED_MALLOC_H 1
|
| 61 |
+
#endif
|
| 62 |
+
|
| 63 |
+
/* Define if you have the <netdb.h> header file. */
|
| 64 |
+
/* #define HAVE_NETDB_H 1 */
|
| 65 |
+
|
| 66 |
+
/* Define if you have the <netinet/in.h> header file. */
|
| 67 |
+
/* #define HAVE_NETINET_IN_H 1 */
|
| 68 |
+
|
| 69 |
+
/* Define to 1 if you have the <stdbool.h> header file. */
|
| 70 |
+
#if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || defined(__MINGW32__)
|
| 71 |
+
#define HAVE_STDBOOL_H 1
|
| 72 |
+
#endif
|
| 73 |
+
|
| 74 |
+
/* Define if you have the <sys/param.h> header file. */
|
| 75 |
+
/* #define HAVE_SYS_PARAM_H 1 */
|
| 76 |
+
|
| 77 |
+
/* Define if you have the <sys/select.h> header file. */
|
| 78 |
+
/* #define HAVE_SYS_SELECT_H 1 */
|
| 79 |
+
|
| 80 |
+
/* Define if you have the <sys/socket.h> header file. */
|
| 81 |
+
/* #define HAVE_SYS_SOCKET_H 1 */
|
| 82 |
+
|
| 83 |
+
/* Define if you have the <sys/sockio.h> header file. */
|
| 84 |
+
/* #define HAVE_SYS_SOCKIO_H 1 */
|
| 85 |
+
|
| 86 |
+
/* Define if you have the <sys/stat.h> header file. */
|
| 87 |
+
#define HAVE_SYS_STAT_H 1
|
| 88 |
+
|
| 89 |
+
/* Define if you have the <sys/time.h> header file. */
|
| 90 |
+
/* #define HAVE_SYS_TIME_H 1 */
|
| 91 |
+
|
| 92 |
+
/* Define if you have the <sys/types.h> header file. */
|
| 93 |
+
#define HAVE_SYS_TYPES_H 1
|
| 94 |
+
|
| 95 |
+
/* Define if you have the <sys/utime.h> header file. */
|
| 96 |
+
#ifndef __BORLANDC__
|
| 97 |
+
#define HAVE_SYS_UTIME_H 1
|
| 98 |
+
#endif
|
| 99 |
+
|
| 100 |
+
/* Define if you have the <termio.h> header file. */
|
| 101 |
+
/* #define HAVE_TERMIO_H 1 */
|
| 102 |
+
|
| 103 |
+
/* Define if you have the <termios.h> header file. */
|
| 104 |
+
/* #define HAVE_TERMIOS_H 1 */
|
| 105 |
+
|
| 106 |
+
/* Define if you have the <unistd.h> header file. */
|
| 107 |
+
#if defined(__MINGW32__) || defined(__LCC__) || defined(__POCC__)
|
| 108 |
+
#define HAVE_UNISTD_H 1
|
| 109 |
+
#endif
|
| 110 |
+
|
| 111 |
+
/* Define if you have the <windows.h> header file. */
|
| 112 |
+
#define HAVE_WINDOWS_H 1
|
| 113 |
+
|
| 114 |
+
/* Define if you have the <winsock2.h> header file. */
|
| 115 |
+
#ifndef __SALFORDC__
|
| 116 |
+
#define HAVE_WINSOCK2_H 1
|
| 117 |
+
#endif
|
| 118 |
+
|
| 119 |
+
/* Define if you have the <ws2tcpip.h> header file. */
|
| 120 |
+
#ifndef __SALFORDC__
|
| 121 |
+
#define HAVE_WS2TCPIP_H 1
|
| 122 |
+
#endif
|
| 123 |
+
|
| 124 |
+
/* Define to 1 if you have the <libgen.h> header file. */
|
| 125 |
+
#if defined(__MINGW32__)
|
| 126 |
+
#define HAVE_LIBGEN_H 1
|
| 127 |
+
#endif
|
| 128 |
+
|
| 129 |
+
/* ---------------------------------------------------------------- */
|
| 130 |
+
/* OTHER HEADER INFO */
|
| 131 |
+
/* ---------------------------------------------------------------- */
|
| 132 |
+
|
| 133 |
+
/* Define if you have the ANSI C header files. */
|
| 134 |
+
#define STDC_HEADERS 1
|
| 135 |
+
|
| 136 |
+
/* Define to 1 if bool is an available type. */
|
| 137 |
+
#if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || defined(__MINGW32__)
|
| 138 |
+
#define HAVE_BOOL_T 1
|
| 139 |
+
#endif
|
| 140 |
+
|
| 141 |
+
/* ---------------------------------------------------------------- */
|
| 142 |
+
/* FUNCTIONS */
|
| 143 |
+
/* ---------------------------------------------------------------- */
|
| 144 |
+
|
| 145 |
+
/* Define if you have the closesocket function. */
|
| 146 |
+
#define HAVE_CLOSESOCKET 1
|
| 147 |
+
|
| 148 |
+
/* Define if you have the ftruncate function. */
|
| 149 |
+
#if defined(__MINGW32__)
|
| 150 |
+
#define HAVE_FTRUNCATE 1
|
| 151 |
+
#endif
|
| 152 |
+
|
| 153 |
+
/* Define to 1 if you have the `getpeername' function. */
|
| 154 |
+
#define HAVE_GETPEERNAME 1
|
| 155 |
+
|
| 156 |
+
/* Define to 1 if you have the getsockname function. */
|
| 157 |
+
#define HAVE_GETSOCKNAME 1
|
| 158 |
+
|
| 159 |
+
/* Define if you have the gethostname function. */
|
| 160 |
+
#define HAVE_GETHOSTNAME 1
|
| 161 |
+
|
| 162 |
+
/* Define if you have the gettimeofday function. */
|
| 163 |
+
/* #define HAVE_GETTIMEOFDAY 1 */
|
| 164 |
+
|
| 165 |
+
/* Define if you have the ioctlsocket function. */
|
| 166 |
+
#define HAVE_IOCTLSOCKET 1
|
| 167 |
+
|
| 168 |
+
/* Define if you have a working ioctlsocket FIONBIO function. */
|
| 169 |
+
#define HAVE_IOCTLSOCKET_FIONBIO 1
|
| 170 |
+
|
| 171 |
+
/* Define if you have the select function. */
|
| 172 |
+
#define HAVE_SELECT 1
|
| 173 |
+
|
| 174 |
+
/* Define if you have the setlocale function. */
|
| 175 |
+
#define HAVE_SETLOCALE 1
|
| 176 |
+
|
| 177 |
+
/* Define if you have the setmode function. */
|
| 178 |
+
#define HAVE_SETMODE 1
|
| 179 |
+
|
| 180 |
+
/* Define if you have the socket function. */
|
| 181 |
+
#define HAVE_SOCKET 1
|
| 182 |
+
|
| 183 |
+
/* Define if you have the strcasecmp function. */
|
| 184 |
+
#if defined(__MINGW32__)
|
| 185 |
+
#define HAVE_STRCASECMP 1
|
| 186 |
+
#endif
|
| 187 |
+
|
| 188 |
+
/* Define if you have the strdup function. */
|
| 189 |
+
#define HAVE_STRDUP 1
|
| 190 |
+
|
| 191 |
+
/* Define if you have the stricmp function. */
|
| 192 |
+
#define HAVE_STRICMP 1
|
| 193 |
+
|
| 194 |
+
/* Define if you have the strtoll function. */
|
| 195 |
+
#if defined(__MINGW32__) || defined(__POCC__) || \
|
| 196 |
+
(defined(_MSC_VER) && (_MSC_VER >= 1800))
|
| 197 |
+
#define HAVE_STRTOLL 1
|
| 198 |
+
#endif
|
| 199 |
+
|
| 200 |
+
/* Define if you have the utime function. */
|
| 201 |
+
#ifndef __BORLANDC__
|
| 202 |
+
#define HAVE_UTIME 1
|
| 203 |
+
#endif
|
| 204 |
+
|
| 205 |
+
/* Define if you have the recv function. */
|
| 206 |
+
#define HAVE_RECV 1
|
| 207 |
+
|
| 208 |
+
/* Define to the type of arg 1 for recv. */
|
| 209 |
+
#define RECV_TYPE_ARG1 SOCKET
|
| 210 |
+
|
| 211 |
+
/* Define to the type of arg 2 for recv. */
|
| 212 |
+
#define RECV_TYPE_ARG2 char *
|
| 213 |
+
|
| 214 |
+
/* Define to the type of arg 3 for recv. */
|
| 215 |
+
#define RECV_TYPE_ARG3 int
|
| 216 |
+
|
| 217 |
+
/* Define to the type of arg 4 for recv. */
|
| 218 |
+
#define RECV_TYPE_ARG4 int
|
| 219 |
+
|
| 220 |
+
/* Define to the function return type for recv. */
|
| 221 |
+
#define RECV_TYPE_RETV int
|
| 222 |
+
|
| 223 |
+
/* Define if you have the send function. */
|
| 224 |
+
#define HAVE_SEND 1
|
| 225 |
+
|
| 226 |
+
/* Define to the type of arg 1 for send. */
|
| 227 |
+
#define SEND_TYPE_ARG1 SOCKET
|
| 228 |
+
|
| 229 |
+
/* Define to the type qualifier of arg 2 for send. */
|
| 230 |
+
#define SEND_QUAL_ARG2 const
|
| 231 |
+
|
| 232 |
+
/* Define to the type of arg 2 for send. */
|
| 233 |
+
#define SEND_TYPE_ARG2 char *
|
| 234 |
+
|
| 235 |
+
/* Define to the type of arg 3 for send. */
|
| 236 |
+
#define SEND_TYPE_ARG3 int
|
| 237 |
+
|
| 238 |
+
/* Define to the type of arg 4 for send. */
|
| 239 |
+
#define SEND_TYPE_ARG4 int
|
| 240 |
+
|
| 241 |
+
/* Define to the function return type for send. */
|
| 242 |
+
#define SEND_TYPE_RETV int
|
| 243 |
+
|
| 244 |
+
/* Define to 1 if you have the snprintf function. */
|
| 245 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1900)
|
| 246 |
+
#define HAVE_SNPRINTF 1
|
| 247 |
+
#endif
|
| 248 |
+
|
| 249 |
+
#if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x600 /* Vista */
|
| 250 |
+
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */
|
| 251 |
+
#define HAVE_INET_NTOP 1
|
| 252 |
+
/* Define to 1 if you have a IPv6 capable working inet_pton function. */
|
| 253 |
+
#define HAVE_INET_PTON 1
|
| 254 |
+
#endif
|
| 255 |
+
|
| 256 |
+
/* Define to 1 if you have the `basename' function. */
|
| 257 |
+
#if defined(__MINGW32__)
|
| 258 |
+
#define HAVE_BASENAME 1
|
| 259 |
+
#endif
|
| 260 |
+
|
| 261 |
+
/* Define to 1 if you have the strtok_r function. */
|
| 262 |
+
#if defined(__MINGW32__)
|
| 263 |
+
#define HAVE_STRTOK_R 1
|
| 264 |
+
#endif
|
| 265 |
+
|
| 266 |
+
/* Define to 1 if you have the signal function. */
|
| 267 |
+
#define HAVE_SIGNAL 1
|
| 268 |
+
|
| 269 |
+
/* ---------------------------------------------------------------- */
|
| 270 |
+
/* TYPEDEF REPLACEMENTS */
|
| 271 |
+
/* ---------------------------------------------------------------- */
|
| 272 |
+
|
| 273 |
+
/* Define if in_addr_t is not an available 'typedefed' type. */
|
| 274 |
+
#define in_addr_t unsigned long
|
| 275 |
+
|
| 276 |
+
/* Define if ssize_t is not an available 'typedefed' type. */
|
| 277 |
+
#ifndef _SSIZE_T_DEFINED
|
| 278 |
+
# if defined(__POCC__) || defined(__MINGW32__)
|
| 279 |
+
# elif defined(_WIN64)
|
| 280 |
+
# define _SSIZE_T_DEFINED
|
| 281 |
+
# define ssize_t __int64
|
| 282 |
+
# else
|
| 283 |
+
# define _SSIZE_T_DEFINED
|
| 284 |
+
# define ssize_t int
|
| 285 |
+
# endif
|
| 286 |
+
#endif
|
| 287 |
+
|
| 288 |
+
/* ---------------------------------------------------------------- */
|
| 289 |
+
/* TYPE SIZES */
|
| 290 |
+
/* ---------------------------------------------------------------- */
|
| 291 |
+
|
| 292 |
+
/* Define to the size of `int', as computed by sizeof. */
|
| 293 |
+
#define SIZEOF_INT 4
|
| 294 |
+
|
| 295 |
+
/* Define to the size of `long long', as computed by sizeof. */
|
| 296 |
+
/* #define SIZEOF_LONG_LONG 8 */
|
| 297 |
+
|
| 298 |
+
/* Define to the size of `long', as computed by sizeof. */
|
| 299 |
+
#define SIZEOF_LONG 4
|
| 300 |
+
|
| 301 |
+
/* Define to the size of `size_t', as computed by sizeof. */
|
| 302 |
+
#if defined(_WIN64)
|
| 303 |
+
# define SIZEOF_SIZE_T 8
|
| 304 |
+
#else
|
| 305 |
+
# define SIZEOF_SIZE_T 4
|
| 306 |
+
#endif
|
| 307 |
+
|
| 308 |
+
/* Define to the size of `curl_off_t', as computed by sizeof. */
|
| 309 |
+
#define SIZEOF_CURL_OFF_T 8
|
| 310 |
+
|
| 311 |
+
/* ---------------------------------------------------------------- */
|
| 312 |
+
/* BSD-style lwIP TCP/IP stack SPECIFIC */
|
| 313 |
+
/* ---------------------------------------------------------------- */
|
| 314 |
+
|
| 315 |
+
/* Define to use BSD-style lwIP TCP/IP stack. */
|
| 316 |
+
/* #define USE_LWIPSOCK 1 */
|
| 317 |
+
|
| 318 |
+
#ifdef USE_LWIPSOCK
|
| 319 |
+
# undef USE_WINSOCK
|
| 320 |
+
# undef HAVE_WINSOCK2_H
|
| 321 |
+
# undef HAVE_WS2TCPIP_H
|
| 322 |
+
# undef HAVE_GETHOSTNAME
|
| 323 |
+
# undef LWIP_POSIX_SOCKETS_IO_NAMES
|
| 324 |
+
# undef RECV_TYPE_ARG1
|
| 325 |
+
# undef RECV_TYPE_ARG3
|
| 326 |
+
# undef SEND_TYPE_ARG1
|
| 327 |
+
# undef SEND_TYPE_ARG3
|
| 328 |
+
# define HAVE_FREEADDRINFO
|
| 329 |
+
# define HAVE_GETADDRINFO
|
| 330 |
+
# define HAVE_GETHOSTBYNAME_R
|
| 331 |
+
# define HAVE_GETHOSTBYNAME_R_6
|
| 332 |
+
# define LWIP_POSIX_SOCKETS_IO_NAMES 0
|
| 333 |
+
# define RECV_TYPE_ARG1 int
|
| 334 |
+
# define RECV_TYPE_ARG3 size_t
|
| 335 |
+
# define SEND_TYPE_ARG1 int
|
| 336 |
+
# define SEND_TYPE_ARG3 size_t
|
| 337 |
+
#endif
|
| 338 |
+
|
| 339 |
+
/* ---------------------------------------------------------------- */
|
| 340 |
+
/* Watt-32 tcp/ip SPECIFIC */
|
| 341 |
+
/* ---------------------------------------------------------------- */
|
| 342 |
+
|
| 343 |
+
#ifdef USE_WATT32
|
| 344 |
+
#include <tcp.h>
|
| 345 |
+
#undef byte
|
| 346 |
+
#undef word
|
| 347 |
+
#undef USE_WINSOCK
|
| 348 |
+
#undef HAVE_WINSOCK2_H
|
| 349 |
+
#undef HAVE_WS2TCPIP_H
|
| 350 |
+
#define HAVE_GETADDRINFO
|
| 351 |
+
#define HAVE_SYS_IOCTL_H
|
| 352 |
+
#define HAVE_SYS_SOCKET_H
|
| 353 |
+
#define HAVE_NETINET_IN_H
|
| 354 |
+
#define HAVE_NETDB_H
|
| 355 |
+
#define HAVE_ARPA_INET_H
|
| 356 |
+
#define HAVE_FREEADDRINFO
|
| 357 |
+
#define SOCKET int
|
| 358 |
+
#endif
|
| 359 |
+
|
| 360 |
+
|
| 361 |
+
/* ---------------------------------------------------------------- */
|
| 362 |
+
/* COMPILER SPECIFIC */
|
| 363 |
+
/* ---------------------------------------------------------------- */
|
| 364 |
+
|
| 365 |
+
/* Define to nothing if compiler does not support 'const' qualifier. */
|
| 366 |
+
/* #define const */
|
| 367 |
+
|
| 368 |
+
/* Define to nothing if compiler does not support 'volatile' qualifier. */
|
| 369 |
+
/* #define volatile */
|
| 370 |
+
|
| 371 |
+
/* Windows should not have HAVE_GMTIME_R defined */
|
| 372 |
+
/* #undef HAVE_GMTIME_R */
|
| 373 |
+
|
| 374 |
+
/* Define if the compiler supports C99 variadic macro style. */
|
| 375 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
| 376 |
+
#define HAVE_VARIADIC_MACROS_C99 1
|
| 377 |
+
#endif
|
| 378 |
+
|
| 379 |
+
/* Define if the compiler supports the 'long long' data type. */
|
| 380 |
+
#if defined(__MINGW32__) || \
|
| 381 |
+
(defined(_MSC_VER) && (_MSC_VER >= 1310)) || \
|
| 382 |
+
(defined(__BORLANDC__) && (__BORLANDC__ >= 0x561))
|
| 383 |
+
#define HAVE_LONGLONG 1
|
| 384 |
+
#endif
|
| 385 |
+
|
| 386 |
+
/* Define to avoid VS2005 complaining about portable C functions. */
|
| 387 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
| 388 |
+
#define _CRT_SECURE_NO_DEPRECATE 1
|
| 389 |
+
#define _CRT_NONSTDC_NO_DEPRECATE 1
|
| 390 |
+
#endif
|
| 391 |
+
|
| 392 |
+
/* mingw-w64 and visual studio >= 2005 (MSVCR80)
|
| 393 |
+
all default to 64-bit time_t unless _USE_32BIT_TIME_T is defined */
|
| 394 |
+
#if (defined(_MSC_VER) && (_MSC_VER >= 1400)) || defined(__MINGW32__)
|
| 395 |
+
# ifndef _USE_32BIT_TIME_T
|
| 396 |
+
# define SIZEOF_TIME_T 8
|
| 397 |
+
# else
|
| 398 |
+
# define SIZEOF_TIME_T 4
|
| 399 |
+
# endif
|
| 400 |
+
#endif
|
| 401 |
+
|
| 402 |
+
/* Define some minimum and default build targets for Visual Studio */
|
| 403 |
+
#if defined(_MSC_VER)
|
| 404 |
+
/* Officially, Microsoft's Windows SDK versions 6.X does not support Windows
|
| 405 |
+
2000 as a supported build target. VS2008 default installations provides
|
| 406 |
+
an embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
|
| 407 |
+
valid build target for VS2008. Popular belief is that binaries built with
|
| 408 |
+
VS2008 using Windows SDK versions v6.X and Windows 2000 as a build target
|
| 409 |
+
are functional. */
|
| 410 |
+
# define VS2008_MIN_TARGET 0x0500
|
| 411 |
+
|
| 412 |
+
/* The minimum build target for VS2012 is Vista unless Update 1 is installed
|
| 413 |
+
and the v110_xp toolset is chosen. */
|
| 414 |
+
# if defined(_USING_V110_SDK71_)
|
| 415 |
+
# define VS2012_MIN_TARGET 0x0501
|
| 416 |
+
# else
|
| 417 |
+
# define VS2012_MIN_TARGET 0x0600
|
| 418 |
+
# endif
|
| 419 |
+
|
| 420 |
+
/* VS2008 default build target is Windows Vista. We override default target
|
| 421 |
+
to be Windows XP. */
|
| 422 |
+
# define VS2008_DEF_TARGET 0x0501
|
| 423 |
+
|
| 424 |
+
/* VS2012 default build target is Windows Vista unless Update 1 is installed
|
| 425 |
+
and the v110_xp toolset is chosen. */
|
| 426 |
+
# if defined(_USING_V110_SDK71_)
|
| 427 |
+
# define VS2012_DEF_TARGET 0x0501
|
| 428 |
+
# else
|
| 429 |
+
# define VS2012_DEF_TARGET 0x0600
|
| 430 |
+
# endif
|
| 431 |
+
#endif
|
| 432 |
+
|
| 433 |
+
/* VS2008 default target settings and minimum build target check. */
|
| 434 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1500) && (_MSC_VER <= 1600)
|
| 435 |
+
# ifndef _WIN32_WINNT
|
| 436 |
+
# define _WIN32_WINNT VS2008_DEF_TARGET
|
| 437 |
+
# endif
|
| 438 |
+
# ifndef WINVER
|
| 439 |
+
# define WINVER VS2008_DEF_TARGET
|
| 440 |
+
# endif
|
| 441 |
+
# if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET)
|
| 442 |
+
# error VS2008 does not support Windows build targets prior to Windows 2000
|
| 443 |
+
# endif
|
| 444 |
+
#endif
|
| 445 |
+
|
| 446 |
+
/* VS2012 default target settings and minimum build target check. */
|
| 447 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1700)
|
| 448 |
+
# ifndef _WIN32_WINNT
|
| 449 |
+
# define _WIN32_WINNT VS2012_DEF_TARGET
|
| 450 |
+
# endif
|
| 451 |
+
# ifndef WINVER
|
| 452 |
+
# define WINVER VS2012_DEF_TARGET
|
| 453 |
+
# endif
|
| 454 |
+
# if (_WIN32_WINNT < VS2012_MIN_TARGET) || (WINVER < VS2012_MIN_TARGET)
|
| 455 |
+
# if defined(_USING_V110_SDK71_)
|
| 456 |
+
# error VS2012 does not support Windows build targets prior to Windows XP
|
| 457 |
+
# else
|
| 458 |
+
# error VS2012 does not support Windows build targets prior to Windows \
|
| 459 |
+
Vista
|
| 460 |
+
# endif
|
| 461 |
+
# endif
|
| 462 |
+
#endif
|
| 463 |
+
|
| 464 |
+
/* When no build target is specified Pelles C 5.00 and later default build
|
| 465 |
+
target is Windows Vista. We override default target to be Windows 2000. */
|
| 466 |
+
#if defined(__POCC__) && (__POCC__ >= 500)
|
| 467 |
+
# ifndef _WIN32_WINNT
|
| 468 |
+
# define _WIN32_WINNT 0x0500
|
| 469 |
+
# endif
|
| 470 |
+
# ifndef WINVER
|
| 471 |
+
# define WINVER 0x0500
|
| 472 |
+
# endif
|
| 473 |
+
#endif
|
| 474 |
+
|
| 475 |
+
/* Availability of freeaddrinfo, getaddrinfo, and if_nametoindex
|
| 476 |
+
functions is quite convoluted, compiler dependent and even build target
|
| 477 |
+
dependent. */
|
| 478 |
+
#if defined(HAVE_WS2TCPIP_H)
|
| 479 |
+
# if defined(__POCC__)
|
| 480 |
+
# define HAVE_FREEADDRINFO 1
|
| 481 |
+
# define HAVE_GETADDRINFO 1
|
| 482 |
+
# define HAVE_GETADDRINFO_THREADSAFE 1
|
| 483 |
+
# elif defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
|
| 484 |
+
# define HAVE_FREEADDRINFO 1
|
| 485 |
+
# define HAVE_GETADDRINFO 1
|
| 486 |
+
# define HAVE_GETADDRINFO_THREADSAFE 1
|
| 487 |
+
# elif defined(_MSC_VER) && (_MSC_VER >= 1200)
|
| 488 |
+
# define HAVE_FREEADDRINFO 1
|
| 489 |
+
# define HAVE_GETADDRINFO 1
|
| 490 |
+
# define HAVE_GETADDRINFO_THREADSAFE 1
|
| 491 |
+
# endif
|
| 492 |
+
#endif
|
| 493 |
+
|
| 494 |
+
#if defined(__POCC__)
|
| 495 |
+
# ifndef _MSC_VER
|
| 496 |
+
# error Microsoft extensions /Ze compiler option is required
|
| 497 |
+
# endif
|
| 498 |
+
# ifndef __POCC__OLDNAMES
|
| 499 |
+
# error Compatibility names /Go compiler option is required
|
| 500 |
+
# endif
|
| 501 |
+
#endif
|
| 502 |
+
|
| 503 |
+
/* ---------------------------------------------------------------- */
|
| 504 |
+
/* STRUCT RELATED */
|
| 505 |
+
/* ---------------------------------------------------------------- */
|
| 506 |
+
|
| 507 |
+
/* Define if you have struct sockaddr_storage. */
|
| 508 |
+
#if !defined(__SALFORDC__) && !defined(__BORLANDC__)
|
| 509 |
+
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
|
| 510 |
+
#endif
|
| 511 |
+
|
| 512 |
+
/* Define if you have struct timeval. */
|
| 513 |
+
#define HAVE_STRUCT_TIMEVAL 1
|
| 514 |
+
|
| 515 |
+
/* Define if struct sockaddr_in6 has the sin6_scope_id member. */
|
| 516 |
+
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
|
| 517 |
+
|
| 518 |
+
/* ---------------------------------------------------------------- */
|
| 519 |
+
/* LARGE FILE SUPPORT */
|
| 520 |
+
/* ---------------------------------------------------------------- */
|
| 521 |
+
|
| 522 |
+
#if defined(_MSC_VER) && !defined(_WIN32_WCE)
|
| 523 |
+
# if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
|
| 524 |
+
# define USE_WIN32_LARGE_FILES
|
| 525 |
+
# else
|
| 526 |
+
# define USE_WIN32_SMALL_FILES
|
| 527 |
+
# endif
|
| 528 |
+
#endif
|
| 529 |
+
|
| 530 |
+
#if defined(__MINGW32__) && !defined(USE_WIN32_LARGE_FILES)
|
| 531 |
+
# define USE_WIN32_LARGE_FILES
|
| 532 |
+
#endif
|
| 533 |
+
|
| 534 |
+
#if defined(__POCC__)
|
| 535 |
+
# undef USE_WIN32_LARGE_FILES
|
| 536 |
+
#endif
|
| 537 |
+
|
| 538 |
+
#if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
|
| 539 |
+
# define USE_WIN32_SMALL_FILES
|
| 540 |
+
#endif
|
| 541 |
+
|
| 542 |
+
/* Number of bits in a file offset, on hosts where this is settable. */
|
| 543 |
+
#if defined(USE_WIN32_LARGE_FILES) && defined(__MINGW32__)
|
| 544 |
+
# ifndef _FILE_OFFSET_BITS
|
| 545 |
+
# define _FILE_OFFSET_BITS 64
|
| 546 |
+
# endif
|
| 547 |
+
#endif
|
| 548 |
+
|
| 549 |
+
#ifdef USE_WIN32_LARGE_FILES
|
| 550 |
+
#define HAVE__FSEEKI64
|
| 551 |
+
#endif
|
| 552 |
+
|
| 553 |
+
/* Define to the size of `off_t', as computed by sizeof. */
|
| 554 |
+
#if defined(__MINGW32__) && \
|
| 555 |
+
defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
|
| 556 |
+
# define SIZEOF_OFF_T 8
|
| 557 |
+
#else
|
| 558 |
+
# define SIZEOF_OFF_T 4
|
| 559 |
+
#endif
|
| 560 |
+
|
| 561 |
+
/* ---------------------------------------------------------------- */
|
| 562 |
+
/* DNS RESOLVER SPECIALTY */
|
| 563 |
+
/* ---------------------------------------------------------------- */
|
| 564 |
+
|
| 565 |
+
/*
|
| 566 |
+
* Undefine both USE_ARES and USE_THREADS_WIN32 for synchronous DNS.
|
| 567 |
+
*/
|
| 568 |
+
|
| 569 |
+
/* Define to enable c-ares asynchronous DNS lookups. */
|
| 570 |
+
/* #define USE_ARES 1 */
|
| 571 |
+
|
| 572 |
+
/* Default define to enable threaded asynchronous DNS lookups. */
|
| 573 |
+
#if !defined(USE_SYNC_DNS) && !defined(USE_ARES) && \
|
| 574 |
+
!defined(USE_THREADS_WIN32)
|
| 575 |
+
# define USE_THREADS_WIN32 1
|
| 576 |
+
#endif
|
| 577 |
+
|
| 578 |
+
#if defined(USE_ARES) && defined(USE_THREADS_WIN32)
|
| 579 |
+
# error "Only one DNS lookup specialty may be defined at most"
|
| 580 |
+
#endif
|
| 581 |
+
|
| 582 |
+
/* ---------------------------------------------------------------- */
|
| 583 |
+
/* LDAP SUPPORT */
|
| 584 |
+
/* ---------------------------------------------------------------- */
|
| 585 |
+
|
| 586 |
+
#if defined(CURL_HAS_NOVELL_LDAPSDK)
|
| 587 |
+
#undef USE_WIN32_LDAP
|
| 588 |
+
#define HAVE_LDAP_SSL_H 1
|
| 589 |
+
#define HAVE_LDAP_URL_PARSE 1
|
| 590 |
+
#elif defined(CURL_HAS_OPENLDAP_LDAPSDK)
|
| 591 |
+
#undef USE_WIN32_LDAP
|
| 592 |
+
#define HAVE_LDAP_URL_PARSE 1
|
| 593 |
+
#else
|
| 594 |
+
#undef HAVE_LDAP_URL_PARSE
|
| 595 |
+
#define HAVE_LDAP_SSL 1
|
| 596 |
+
#define USE_WIN32_LDAP 1
|
| 597 |
+
#endif
|
| 598 |
+
|
| 599 |
+
#if defined(__POCC__) && defined(USE_WIN32_LDAP)
|
| 600 |
+
# define CURL_DISABLE_LDAP 1
|
| 601 |
+
#endif
|
| 602 |
+
|
| 603 |
+
/* Define to use the Windows crypto library. */
|
| 604 |
+
#if !defined(CURL_WINDOWS_APP)
|
| 605 |
+
#define USE_WIN32_CRYPTO
|
| 606 |
+
#endif
|
| 607 |
+
|
| 608 |
+
/* Define to use Unix sockets. */
|
| 609 |
+
#define USE_UNIX_SOCKETS
|
| 610 |
+
|
| 611 |
+
/* ---------------------------------------------------------------- */
|
| 612 |
+
/* ADDITIONAL DEFINITIONS */
|
| 613 |
+
/* ---------------------------------------------------------------- */
|
| 614 |
+
|
| 615 |
+
/* Define cpu-machine-OS */
|
| 616 |
+
#ifndef OS
|
| 617 |
+
#if defined(_M_IX86) || defined(__i386__) /* x86 (MSVC or gcc) */
|
| 618 |
+
#define OS "i386-pc-win32"
|
| 619 |
+
#elif defined(_M_X64) || defined(__x86_64__) /* x86_64 (MSVC >=2005 or gcc) */
|
| 620 |
+
#define OS "x86_64-pc-win32"
|
| 621 |
+
#elif defined(_M_IA64) || defined(__ia64__) /* Itanium */
|
| 622 |
+
#define OS "ia64-pc-win32"
|
| 623 |
+
#elif defined(_M_ARM_NT) || defined(__arm__) /* ARMv7-Thumb2 (Windows RT) */
|
| 624 |
+
#define OS "thumbv7a-pc-win32"
|
| 625 |
+
#elif defined(_M_ARM64) || defined(__aarch64__) /* ARM64 (Windows 10) */
|
| 626 |
+
#define OS "aarch64-pc-win32"
|
| 627 |
+
#else
|
| 628 |
+
#define OS "unknown-pc-win32"
|
| 629 |
+
#endif
|
| 630 |
+
#endif
|
| 631 |
+
|
| 632 |
+
/* Name of package */
|
| 633 |
+
#define PACKAGE "curl"
|
| 634 |
+
|
| 635 |
+
/* If you want to build curl with the built-in manual */
|
| 636 |
+
#define USE_MANUAL 1
|
| 637 |
+
|
| 638 |
+
#if defined(__POCC__) || defined(USE_IPV6)
|
| 639 |
+
# define ENABLE_IPV6 1
|
| 640 |
+
#endif
|
| 641 |
+
|
| 642 |
+
#endif /* HEADER_CURL_CONFIG_WIN32_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/config-win32ce.h
ADDED
|
@@ -0,0 +1,313 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CONFIG_WIN32CE_H
|
| 2 |
+
#define HEADER_CURL_CONFIG_WIN32CE_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
/* ================================================================ */
|
| 28 |
+
/* lib/config-win32ce.h - Hand crafted config file for windows ce */
|
| 29 |
+
/* ================================================================ */
|
| 30 |
+
|
| 31 |
+
/* ---------------------------------------------------------------- */
|
| 32 |
+
/* HEADER FILES */
|
| 33 |
+
/* ---------------------------------------------------------------- */
|
| 34 |
+
|
| 35 |
+
/* Define if you have the <arpa/inet.h> header file. */
|
| 36 |
+
/* #define HAVE_ARPA_INET_H 1 */
|
| 37 |
+
|
| 38 |
+
/* Define if you have the <fcntl.h> header file. */
|
| 39 |
+
#define HAVE_FCNTL_H 1
|
| 40 |
+
|
| 41 |
+
/* Define if you have the <io.h> header file. */
|
| 42 |
+
#define HAVE_IO_H 1
|
| 43 |
+
|
| 44 |
+
/* Define if you need the malloc.h header file even with stdlib.h */
|
| 45 |
+
#define NEED_MALLOC_H 1
|
| 46 |
+
|
| 47 |
+
/* Define if you have the <netdb.h> header file. */
|
| 48 |
+
/* #define HAVE_NETDB_H 1 */
|
| 49 |
+
|
| 50 |
+
/* Define if you have the <netinet/in.h> header file. */
|
| 51 |
+
/* #define HAVE_NETINET_IN_H 1 */
|
| 52 |
+
|
| 53 |
+
/* Define if you have the <sys/param.h> header file. */
|
| 54 |
+
/* #define HAVE_SYS_PARAM_H 1 */
|
| 55 |
+
|
| 56 |
+
/* Define if you have the <sys/select.h> header file. */
|
| 57 |
+
/* #define HAVE_SYS_SELECT_H 1 */
|
| 58 |
+
|
| 59 |
+
/* Define if you have the <sys/socket.h> header file. */
|
| 60 |
+
/* #define HAVE_SYS_SOCKET_H 1 */
|
| 61 |
+
|
| 62 |
+
/* Define if you have the <sys/sockio.h> header file. */
|
| 63 |
+
/* #define HAVE_SYS_SOCKIO_H 1 */
|
| 64 |
+
|
| 65 |
+
/* Define if you have the <sys/stat.h> header file. */
|
| 66 |
+
#define HAVE_SYS_STAT_H 1
|
| 67 |
+
|
| 68 |
+
/* Define if you have the <sys/time.h> header file */
|
| 69 |
+
/* #define HAVE_SYS_TIME_H 1 */
|
| 70 |
+
|
| 71 |
+
/* Define if you have the <sys/types.h> header file. */
|
| 72 |
+
/* #define HAVE_SYS_TYPES_H 1 */
|
| 73 |
+
|
| 74 |
+
/* Define if you have the <sys/utime.h> header file */
|
| 75 |
+
#define HAVE_SYS_UTIME_H 1
|
| 76 |
+
|
| 77 |
+
/* Define if you have the <termio.h> header file. */
|
| 78 |
+
/* #define HAVE_TERMIO_H 1 */
|
| 79 |
+
|
| 80 |
+
/* Define if you have the <termios.h> header file. */
|
| 81 |
+
/* #define HAVE_TERMIOS_H 1 */
|
| 82 |
+
|
| 83 |
+
/* Define if you have the <unistd.h> header file. */
|
| 84 |
+
#if defined(__MINGW32__) || defined(__LCC__)
|
| 85 |
+
#define HAVE_UNISTD_H 1
|
| 86 |
+
#endif
|
| 87 |
+
|
| 88 |
+
/* Define if you have the <windows.h> header file. */
|
| 89 |
+
#define HAVE_WINDOWS_H 1
|
| 90 |
+
|
| 91 |
+
/* Define if you have the <winsock2.h> header file. */
|
| 92 |
+
#define HAVE_WINSOCK2_H 1
|
| 93 |
+
|
| 94 |
+
/* Define if you have the <ws2tcpip.h> header file. */
|
| 95 |
+
#define HAVE_WS2TCPIP_H 1
|
| 96 |
+
|
| 97 |
+
/* ---------------------------------------------------------------- */
|
| 98 |
+
/* OTHER HEADER INFO */
|
| 99 |
+
/* ---------------------------------------------------------------- */
|
| 100 |
+
|
| 101 |
+
/* Define if you have the ANSI C header files. */
|
| 102 |
+
#define STDC_HEADERS 1
|
| 103 |
+
|
| 104 |
+
/* ---------------------------------------------------------------- */
|
| 105 |
+
/* FUNCTIONS */
|
| 106 |
+
/* ---------------------------------------------------------------- */
|
| 107 |
+
|
| 108 |
+
/* Define if you have the closesocket function. */
|
| 109 |
+
#define HAVE_CLOSESOCKET 1
|
| 110 |
+
|
| 111 |
+
/* Define if you have the gethostname function. */
|
| 112 |
+
#define HAVE_GETHOSTNAME 1
|
| 113 |
+
|
| 114 |
+
/* Define if you have the gettimeofday function. */
|
| 115 |
+
/* #define HAVE_GETTIMEOFDAY 1 */
|
| 116 |
+
|
| 117 |
+
/* Define if you have the ioctlsocket function. */
|
| 118 |
+
#define HAVE_IOCTLSOCKET 1
|
| 119 |
+
|
| 120 |
+
/* Define if you have a working ioctlsocket FIONBIO function. */
|
| 121 |
+
#define HAVE_IOCTLSOCKET_FIONBIO 1
|
| 122 |
+
|
| 123 |
+
/* Define if you have the select function. */
|
| 124 |
+
#define HAVE_SELECT 1
|
| 125 |
+
|
| 126 |
+
/* Define if you have the socket function. */
|
| 127 |
+
#define HAVE_SOCKET 1
|
| 128 |
+
|
| 129 |
+
/* Define if you have the strcasecmp function. */
|
| 130 |
+
/* #define HAVE_STRCASECMP 1 */
|
| 131 |
+
|
| 132 |
+
/* Define if you have the strdup function. */
|
| 133 |
+
/* #define HAVE_STRDUP 1 */
|
| 134 |
+
|
| 135 |
+
/* Define if you have the stricmp function. */
|
| 136 |
+
/* #define HAVE_STRICMP 1 */
|
| 137 |
+
|
| 138 |
+
/* Define if you have the strtoll function. */
|
| 139 |
+
#if defined(__MINGW32__)
|
| 140 |
+
#define HAVE_STRTOLL 1
|
| 141 |
+
#endif
|
| 142 |
+
|
| 143 |
+
/* Define if you have the utime function */
|
| 144 |
+
#define HAVE_UTIME 1
|
| 145 |
+
|
| 146 |
+
/* Define if you have the recv function. */
|
| 147 |
+
#define HAVE_RECV 1
|
| 148 |
+
|
| 149 |
+
/* Define to the type of arg 1 for recv. */
|
| 150 |
+
#define RECV_TYPE_ARG1 SOCKET
|
| 151 |
+
|
| 152 |
+
/* Define to the type of arg 2 for recv. */
|
| 153 |
+
#define RECV_TYPE_ARG2 char *
|
| 154 |
+
|
| 155 |
+
/* Define to the type of arg 3 for recv. */
|
| 156 |
+
#define RECV_TYPE_ARG3 int
|
| 157 |
+
|
| 158 |
+
/* Define to the type of arg 4 for recv. */
|
| 159 |
+
#define RECV_TYPE_ARG4 int
|
| 160 |
+
|
| 161 |
+
/* Define to the function return type for recv. */
|
| 162 |
+
#define RECV_TYPE_RETV int
|
| 163 |
+
|
| 164 |
+
/* Define if you have the send function. */
|
| 165 |
+
#define HAVE_SEND 1
|
| 166 |
+
|
| 167 |
+
/* Define to the type of arg 1 for send. */
|
| 168 |
+
#define SEND_TYPE_ARG1 SOCKET
|
| 169 |
+
|
| 170 |
+
/* Define to the type qualifier of arg 2 for send. */
|
| 171 |
+
#define SEND_QUAL_ARG2 const
|
| 172 |
+
|
| 173 |
+
/* Define to the type of arg 2 for send. */
|
| 174 |
+
#define SEND_TYPE_ARG2 char *
|
| 175 |
+
|
| 176 |
+
/* Define to the type of arg 3 for send. */
|
| 177 |
+
#define SEND_TYPE_ARG3 int
|
| 178 |
+
|
| 179 |
+
/* Define to the type of arg 4 for send. */
|
| 180 |
+
#define SEND_TYPE_ARG4 int
|
| 181 |
+
|
| 182 |
+
/* Define to the function return type for send. */
|
| 183 |
+
#define SEND_TYPE_RETV int
|
| 184 |
+
|
| 185 |
+
/* ---------------------------------------------------------------- */
|
| 186 |
+
/* TYPEDEF REPLACEMENTS */
|
| 187 |
+
/* ---------------------------------------------------------------- */
|
| 188 |
+
|
| 189 |
+
/* Define this if in_addr_t is not an available 'typedefed' type */
|
| 190 |
+
#define in_addr_t unsigned long
|
| 191 |
+
|
| 192 |
+
/* Define ssize_t if it is not an available 'typedefed' type */
|
| 193 |
+
#if defined(__POCC__)
|
| 194 |
+
#elif defined(_WIN64)
|
| 195 |
+
#define ssize_t __int64
|
| 196 |
+
#else
|
| 197 |
+
#define ssize_t int
|
| 198 |
+
#endif
|
| 199 |
+
|
| 200 |
+
/* ---------------------------------------------------------------- */
|
| 201 |
+
/* TYPE SIZES */
|
| 202 |
+
/* ---------------------------------------------------------------- */
|
| 203 |
+
|
| 204 |
+
/* The size of `int', as computed by sizeof. */
|
| 205 |
+
#define SIZEOF_INT 4
|
| 206 |
+
|
| 207 |
+
/* The size of `long long', as computed by sizeof. */
|
| 208 |
+
/* #define SIZEOF_LONG_LONG 8 */
|
| 209 |
+
|
| 210 |
+
/* Define to the size of `long', as computed by sizeof. */
|
| 211 |
+
#define SIZEOF_LONG 4
|
| 212 |
+
|
| 213 |
+
/* The size of `size_t', as computed by sizeof. */
|
| 214 |
+
#if defined(_WIN64)
|
| 215 |
+
# define SIZEOF_SIZE_T 8
|
| 216 |
+
#else
|
| 217 |
+
# define SIZEOF_SIZE_T 4
|
| 218 |
+
#endif
|
| 219 |
+
|
| 220 |
+
/* ---------------------------------------------------------------- */
|
| 221 |
+
/* STRUCT RELATED */
|
| 222 |
+
/* ---------------------------------------------------------------- */
|
| 223 |
+
|
| 224 |
+
/* Define this if you have struct sockaddr_storage */
|
| 225 |
+
/* #define HAVE_STRUCT_SOCKADDR_STORAGE 1 */
|
| 226 |
+
|
| 227 |
+
/* Define this if you have struct timeval */
|
| 228 |
+
#define HAVE_STRUCT_TIMEVAL 1
|
| 229 |
+
|
| 230 |
+
/* Define this if struct sockaddr_in6 has the sin6_scope_id member */
|
| 231 |
+
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
|
| 232 |
+
|
| 233 |
+
/* ---------------------------------------------------------------- */
|
| 234 |
+
/* COMPILER SPECIFIC */
|
| 235 |
+
/* ---------------------------------------------------------------- */
|
| 236 |
+
|
| 237 |
+
/* Undef keyword 'const' if it does not work. */
|
| 238 |
+
/* #undef const */
|
| 239 |
+
|
| 240 |
+
/* Define to avoid VS2005 complaining about portable C functions */
|
| 241 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
| 242 |
+
#define _CRT_SECURE_NO_DEPRECATE 1
|
| 243 |
+
#define _CRT_NONSTDC_NO_DEPRECATE 1
|
| 244 |
+
#endif
|
| 245 |
+
|
| 246 |
+
/* VS2005 and later default size for time_t is 64-bit, unless */
|
| 247 |
+
/* _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */
|
| 248 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
| 249 |
+
# ifndef _USE_32BIT_TIME_T
|
| 250 |
+
# define SIZEOF_TIME_T 8
|
| 251 |
+
# else
|
| 252 |
+
# define SIZEOF_TIME_T 4
|
| 253 |
+
# endif
|
| 254 |
+
#endif
|
| 255 |
+
|
| 256 |
+
/* ---------------------------------------------------------------- */
|
| 257 |
+
/* LARGE FILE SUPPORT */
|
| 258 |
+
/* ---------------------------------------------------------------- */
|
| 259 |
+
|
| 260 |
+
#if defined(_MSC_VER) && !defined(_WIN32_WCE)
|
| 261 |
+
# if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
|
| 262 |
+
# define USE_WIN32_LARGE_FILES
|
| 263 |
+
# else
|
| 264 |
+
# define USE_WIN32_SMALL_FILES
|
| 265 |
+
# endif
|
| 266 |
+
#endif
|
| 267 |
+
|
| 268 |
+
#if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
|
| 269 |
+
# define USE_WIN32_SMALL_FILES
|
| 270 |
+
#endif
|
| 271 |
+
|
| 272 |
+
/* ---------------------------------------------------------------- */
|
| 273 |
+
/* LDAP SUPPORT */
|
| 274 |
+
/* ---------------------------------------------------------------- */
|
| 275 |
+
|
| 276 |
+
#define USE_WIN32_LDAP 1
|
| 277 |
+
#undef HAVE_LDAP_URL_PARSE
|
| 278 |
+
|
| 279 |
+
/* ---------------------------------------------------------------- */
|
| 280 |
+
/* ADDITIONAL DEFINITIONS */
|
| 281 |
+
/* ---------------------------------------------------------------- */
|
| 282 |
+
|
| 283 |
+
/* Define cpu-machine-OS */
|
| 284 |
+
#ifndef OS
|
| 285 |
+
#define OS "i386-pc-win32ce"
|
| 286 |
+
#endif
|
| 287 |
+
|
| 288 |
+
/* Name of package */
|
| 289 |
+
#define PACKAGE "curl"
|
| 290 |
+
|
| 291 |
+
/* ---------------------------------------------------------------- */
|
| 292 |
+
/* WinCE */
|
| 293 |
+
/* ---------------------------------------------------------------- */
|
| 294 |
+
|
| 295 |
+
#ifndef UNICODE
|
| 296 |
+
# define UNICODE
|
| 297 |
+
#endif
|
| 298 |
+
|
| 299 |
+
#ifndef _UNICODE
|
| 300 |
+
# define _UNICODE
|
| 301 |
+
#endif
|
| 302 |
+
|
| 303 |
+
#define CURL_DISABLE_FILE 1
|
| 304 |
+
#define CURL_DISABLE_TELNET 1
|
| 305 |
+
#define CURL_DISABLE_LDAP 1
|
| 306 |
+
|
| 307 |
+
#define ENOSPC 1
|
| 308 |
+
#define ENOMEM 2
|
| 309 |
+
#define EAGAIN 3
|
| 310 |
+
|
| 311 |
+
extern int stat(const char *path, struct stat *buffer);
|
| 312 |
+
|
| 313 |
+
#endif /* HEADER_CURL_CONFIG_WIN32CE_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/conncache.h
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CONNCACHE_H
|
| 2 |
+
#define HEADER_CURL_CONNCACHE_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
* Copyright (C) Linus Nielsen Feltzing, <linus@haxx.se>
|
| 12 |
+
*
|
| 13 |
+
* This software is licensed as described in the file COPYING, which
|
| 14 |
+
* you should have received as part of this distribution. The terms
|
| 15 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 16 |
+
*
|
| 17 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 18 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 19 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 20 |
+
*
|
| 21 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 22 |
+
* KIND, either express or implied.
|
| 23 |
+
*
|
| 24 |
+
* SPDX-License-Identifier: curl
|
| 25 |
+
*
|
| 26 |
+
***************************************************************************/
|
| 27 |
+
|
| 28 |
+
/*
|
| 29 |
+
* All accesses to struct fields and changing of data in the connection cache
|
| 30 |
+
* and connectbundles must be done with the conncache LOCKED. The cache might
|
| 31 |
+
* be shared.
|
| 32 |
+
*/
|
| 33 |
+
|
| 34 |
+
#include <curl/curl.h>
|
| 35 |
+
#include "timeval.h"
|
| 36 |
+
|
| 37 |
+
struct connectdata;
|
| 38 |
+
|
| 39 |
+
struct conncache {
|
| 40 |
+
struct Curl_hash hash;
|
| 41 |
+
size_t num_conn;
|
| 42 |
+
curl_off_t next_connection_id;
|
| 43 |
+
curl_off_t next_easy_id;
|
| 44 |
+
struct curltime last_cleanup;
|
| 45 |
+
/* handle used for closing cached connections */
|
| 46 |
+
struct Curl_easy *closure_handle;
|
| 47 |
+
};
|
| 48 |
+
|
| 49 |
+
#define BUNDLE_NO_MULTIUSE -1
|
| 50 |
+
#define BUNDLE_UNKNOWN 0 /* initial value */
|
| 51 |
+
#define BUNDLE_MULTIPLEX 2
|
| 52 |
+
|
| 53 |
+
#ifdef CURLDEBUG
|
| 54 |
+
/* the debug versions of these macros make extra certain that the lock is
|
| 55 |
+
never doubly locked or unlocked */
|
| 56 |
+
#define CONNCACHE_LOCK(x) \
|
| 57 |
+
do { \
|
| 58 |
+
if((x)->share) { \
|
| 59 |
+
Curl_share_lock((x), CURL_LOCK_DATA_CONNECT, \
|
| 60 |
+
CURL_LOCK_ACCESS_SINGLE); \
|
| 61 |
+
DEBUGASSERT(!(x)->state.conncache_lock); \
|
| 62 |
+
(x)->state.conncache_lock = TRUE; \
|
| 63 |
+
} \
|
| 64 |
+
} while(0)
|
| 65 |
+
|
| 66 |
+
#define CONNCACHE_UNLOCK(x) \
|
| 67 |
+
do { \
|
| 68 |
+
if((x)->share) { \
|
| 69 |
+
DEBUGASSERT((x)->state.conncache_lock); \
|
| 70 |
+
(x)->state.conncache_lock = FALSE; \
|
| 71 |
+
Curl_share_unlock((x), CURL_LOCK_DATA_CONNECT); \
|
| 72 |
+
} \
|
| 73 |
+
} while(0)
|
| 74 |
+
#else
|
| 75 |
+
#define CONNCACHE_LOCK(x) if((x)->share) \
|
| 76 |
+
Curl_share_lock((x), CURL_LOCK_DATA_CONNECT, CURL_LOCK_ACCESS_SINGLE)
|
| 77 |
+
#define CONNCACHE_UNLOCK(x) if((x)->share) \
|
| 78 |
+
Curl_share_unlock((x), CURL_LOCK_DATA_CONNECT)
|
| 79 |
+
#endif
|
| 80 |
+
|
| 81 |
+
struct connectbundle {
|
| 82 |
+
int multiuse; /* supports multi-use */
|
| 83 |
+
size_t num_connections; /* Number of connections in the bundle */
|
| 84 |
+
struct Curl_llist conn_list; /* The connectdata members of the bundle */
|
| 85 |
+
};
|
| 86 |
+
|
| 87 |
+
/* returns 1 on error, 0 is fine */
|
| 88 |
+
int Curl_conncache_init(struct conncache *, int size);
|
| 89 |
+
void Curl_conncache_destroy(struct conncache *connc);
|
| 90 |
+
|
| 91 |
+
/* return the correct bundle, to a host or a proxy */
|
| 92 |
+
struct connectbundle *Curl_conncache_find_bundle(struct Curl_easy *data,
|
| 93 |
+
struct connectdata *conn,
|
| 94 |
+
struct conncache *connc);
|
| 95 |
+
/* returns number of connections currently held in the connection cache */
|
| 96 |
+
size_t Curl_conncache_size(struct Curl_easy *data);
|
| 97 |
+
|
| 98 |
+
bool Curl_conncache_return_conn(struct Curl_easy *data,
|
| 99 |
+
struct connectdata *conn);
|
| 100 |
+
CURLcode Curl_conncache_add_conn(struct Curl_easy *data) WARN_UNUSED_RESULT;
|
| 101 |
+
void Curl_conncache_remove_conn(struct Curl_easy *data,
|
| 102 |
+
struct connectdata *conn,
|
| 103 |
+
bool lock);
|
| 104 |
+
bool Curl_conncache_foreach(struct Curl_easy *data,
|
| 105 |
+
struct conncache *connc,
|
| 106 |
+
void *param,
|
| 107 |
+
int (*func)(struct Curl_easy *data,
|
| 108 |
+
struct connectdata *conn,
|
| 109 |
+
void *param));
|
| 110 |
+
|
| 111 |
+
struct connectdata *
|
| 112 |
+
Curl_conncache_find_first_connection(struct conncache *connc);
|
| 113 |
+
|
| 114 |
+
struct connectdata *
|
| 115 |
+
Curl_conncache_extract_bundle(struct Curl_easy *data,
|
| 116 |
+
struct connectbundle *bundle);
|
| 117 |
+
struct connectdata *
|
| 118 |
+
Curl_conncache_extract_oldest(struct Curl_easy *data);
|
| 119 |
+
void Curl_conncache_close_all_connections(struct conncache *connc);
|
| 120 |
+
void Curl_conncache_print(struct conncache *connc);
|
| 121 |
+
|
| 122 |
+
#endif /* HEADER_CURL_CONNCACHE_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/connect.h
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CONNECT_H
|
| 2 |
+
#define HEADER_CURL_CONNECT_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
#include "curl_setup.h"
|
| 27 |
+
|
| 28 |
+
#include "nonblock.h" /* for curlx_nonblock(), formerly Curl_nonblock() */
|
| 29 |
+
#include "sockaddr.h"
|
| 30 |
+
#include "timeval.h"
|
| 31 |
+
|
| 32 |
+
struct Curl_dns_entry;
|
| 33 |
+
|
| 34 |
+
/* generic function that returns how much time there's left to run, according
|
| 35 |
+
to the timeouts set */
|
| 36 |
+
timediff_t Curl_timeleft(struct Curl_easy *data,
|
| 37 |
+
struct curltime *nowp,
|
| 38 |
+
bool duringconnect);
|
| 39 |
+
|
| 40 |
+
#define DEFAULT_CONNECT_TIMEOUT 300000 /* milliseconds == five minutes */
|
| 41 |
+
|
| 42 |
+
/*
|
| 43 |
+
* Used to extract socket and connectdata struct for the most recent
|
| 44 |
+
* transfer on the given Curl_easy.
|
| 45 |
+
*
|
| 46 |
+
* The returned socket will be CURL_SOCKET_BAD in case of failure!
|
| 47 |
+
*/
|
| 48 |
+
curl_socket_t Curl_getconnectinfo(struct Curl_easy *data,
|
| 49 |
+
struct connectdata **connp);
|
| 50 |
+
|
| 51 |
+
bool Curl_addr2string(struct sockaddr *sa, curl_socklen_t salen,
|
| 52 |
+
char *addr, int *port);
|
| 53 |
+
|
| 54 |
+
void Curl_persistconninfo(struct Curl_easy *data, struct connectdata *conn,
|
| 55 |
+
char *local_ip, int local_port);
|
| 56 |
+
|
| 57 |
+
/*
|
| 58 |
+
* Curl_conncontrol() marks the end of a connection/stream. The 'closeit'
|
| 59 |
+
* argument specifies if it is the end of a connection or a stream.
|
| 60 |
+
*
|
| 61 |
+
* For stream-based protocols (such as HTTP/2), a stream close will not cause
|
| 62 |
+
* a connection close. Other protocols will close the connection for both
|
| 63 |
+
* cases.
|
| 64 |
+
*
|
| 65 |
+
* It sets the bit.close bit to TRUE (with an explanation for debug builds),
|
| 66 |
+
* when the connection will close.
|
| 67 |
+
*/
|
| 68 |
+
|
| 69 |
+
#define CONNCTRL_KEEP 0 /* undo a marked closure */
|
| 70 |
+
#define CONNCTRL_CONNECTION 1
|
| 71 |
+
#define CONNCTRL_STREAM 2
|
| 72 |
+
|
| 73 |
+
void Curl_conncontrol(struct connectdata *conn,
|
| 74 |
+
int closeit
|
| 75 |
+
#if defined(DEBUGBUILD) && !defined(CURL_DISABLE_VERBOSE_STRINGS)
|
| 76 |
+
, const char *reason
|
| 77 |
+
#endif
|
| 78 |
+
);
|
| 79 |
+
|
| 80 |
+
#if defined(DEBUGBUILD) && !defined(CURL_DISABLE_VERBOSE_STRINGS)
|
| 81 |
+
#define streamclose(x,y) Curl_conncontrol(x, CONNCTRL_STREAM, y)
|
| 82 |
+
#define connclose(x,y) Curl_conncontrol(x, CONNCTRL_CONNECTION, y)
|
| 83 |
+
#define connkeep(x,y) Curl_conncontrol(x, CONNCTRL_KEEP, y)
|
| 84 |
+
#else /* if !DEBUGBUILD || CURL_DISABLE_VERBOSE_STRINGS */
|
| 85 |
+
#define streamclose(x,y) Curl_conncontrol(x, CONNCTRL_STREAM)
|
| 86 |
+
#define connclose(x,y) Curl_conncontrol(x, CONNCTRL_CONNECTION)
|
| 87 |
+
#define connkeep(x,y) Curl_conncontrol(x, CONNCTRL_KEEP)
|
| 88 |
+
#endif
|
| 89 |
+
|
| 90 |
+
/**
|
| 91 |
+
* Create a cfilter for making an "ip" connection to the
|
| 92 |
+
* given address, using parameters from `conn`. The "ip" connection
|
| 93 |
+
* can be a TCP socket, a UDP socket or even a QUIC connection.
|
| 94 |
+
*
|
| 95 |
+
* It MUST use only the supplied `ai` for its connection attempt.
|
| 96 |
+
*
|
| 97 |
+
* Such a filter may be used in "happy eyeball" scenarios, and its
|
| 98 |
+
* `connect` implementation needs to support non-blocking. Once connected,
|
| 99 |
+
* it MAY be installed in the connection filter chain to serve transfers.
|
| 100 |
+
*/
|
| 101 |
+
typedef CURLcode cf_ip_connect_create(struct Curl_cfilter **pcf,
|
| 102 |
+
struct Curl_easy *data,
|
| 103 |
+
struct connectdata *conn,
|
| 104 |
+
const struct Curl_addrinfo *ai,
|
| 105 |
+
int transport);
|
| 106 |
+
|
| 107 |
+
CURLcode Curl_cf_setup_insert_after(struct Curl_cfilter *cf_at,
|
| 108 |
+
struct Curl_easy *data,
|
| 109 |
+
const struct Curl_dns_entry *remotehost,
|
| 110 |
+
int transport,
|
| 111 |
+
int ssl_mode);
|
| 112 |
+
|
| 113 |
+
/**
|
| 114 |
+
* Setup the cfilters at `sockindex` in connection `conn`.
|
| 115 |
+
* If no filter chain is installed yet, inspects the configuration
|
| 116 |
+
* in `data` and `conn? to install a suitable filter chain.
|
| 117 |
+
*/
|
| 118 |
+
CURLcode Curl_conn_setup(struct Curl_easy *data,
|
| 119 |
+
struct connectdata *conn,
|
| 120 |
+
int sockindex,
|
| 121 |
+
const struct Curl_dns_entry *remotehost,
|
| 122 |
+
int ssl_mode);
|
| 123 |
+
|
| 124 |
+
extern struct Curl_cftype Curl_cft_happy_eyeballs;
|
| 125 |
+
extern struct Curl_cftype Curl_cft_setup;
|
| 126 |
+
|
| 127 |
+
#ifdef DEBUGBUILD
|
| 128 |
+
void Curl_debug_set_transport_provider(int transport,
|
| 129 |
+
cf_ip_connect_create *cf_create);
|
| 130 |
+
#endif
|
| 131 |
+
|
| 132 |
+
#endif /* HEADER_CURL_CONNECT_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/content_encoding.h
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CONTENT_ENCODING_H
|
| 2 |
+
#define HEADER_CURL_CONTENT_ENCODING_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
#include "curl_setup.h"
|
| 27 |
+
|
| 28 |
+
struct contenc_writer;
|
| 29 |
+
|
| 30 |
+
char *Curl_all_content_encodings(void);
|
| 31 |
+
|
| 32 |
+
CURLcode Curl_build_unencoding_stack(struct Curl_easy *data,
|
| 33 |
+
const char *enclist, int is_transfer);
|
| 34 |
+
CURLcode Curl_unencode_write(struct Curl_easy *data,
|
| 35 |
+
struct contenc_writer *writer,
|
| 36 |
+
const char *buf, size_t nbytes);
|
| 37 |
+
void Curl_unencode_cleanup(struct Curl_easy *data);
|
| 38 |
+
|
| 39 |
+
#endif /* HEADER_CURL_CONTENT_ENCODING_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/cookie.h
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_COOKIE_H
|
| 2 |
+
#define HEADER_CURL_COOKIE_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
#include "curl_setup.h"
|
| 27 |
+
|
| 28 |
+
#include <curl/curl.h>
|
| 29 |
+
|
| 30 |
+
struct Cookie {
|
| 31 |
+
struct Cookie *next; /* next in the chain */
|
| 32 |
+
char *name; /* <this> = value */
|
| 33 |
+
char *value; /* name = <this> */
|
| 34 |
+
char *path; /* path = <this> which is in Set-Cookie: */
|
| 35 |
+
char *spath; /* sanitized cookie path */
|
| 36 |
+
char *domain; /* domain = <this> */
|
| 37 |
+
curl_off_t expires; /* expires = <this> */
|
| 38 |
+
bool tailmatch; /* whether we do tail-matching of the domain name */
|
| 39 |
+
bool secure; /* whether the 'secure' keyword was used */
|
| 40 |
+
bool livecookie; /* updated from a server, not a stored file */
|
| 41 |
+
bool httponly; /* true if the httponly directive is present */
|
| 42 |
+
int creationtime; /* time when the cookie was written */
|
| 43 |
+
unsigned char prefix; /* bitmap fields indicating which prefix are set */
|
| 44 |
+
};
|
| 45 |
+
|
| 46 |
+
/*
|
| 47 |
+
* Available cookie prefixes, as defined in
|
| 48 |
+
* draft-ietf-httpbis-rfc6265bis-02
|
| 49 |
+
*/
|
| 50 |
+
#define COOKIE_PREFIX__SECURE (1<<0)
|
| 51 |
+
#define COOKIE_PREFIX__HOST (1<<1)
|
| 52 |
+
|
| 53 |
+
#define COOKIE_HASH_SIZE 63
|
| 54 |
+
|
| 55 |
+
struct CookieInfo {
|
| 56 |
+
/* linked list of cookies we know of */
|
| 57 |
+
struct Cookie *cookies[COOKIE_HASH_SIZE];
|
| 58 |
+
curl_off_t next_expiration; /* the next time at which expiration happens */
|
| 59 |
+
int numcookies; /* number of cookies in the "jar" */
|
| 60 |
+
int lastct; /* last creation-time used in the jar */
|
| 61 |
+
bool running; /* state info, for cookie adding information */
|
| 62 |
+
bool newsession; /* new session, discard session cookies on load */
|
| 63 |
+
};
|
| 64 |
+
|
| 65 |
+
/* The maximum sizes we accept for cookies. RFC 6265 section 6.1 says
|
| 66 |
+
"general-use user agents SHOULD provide each of the following minimum
|
| 67 |
+
capabilities":
|
| 68 |
+
|
| 69 |
+
- At least 4096 bytes per cookie (as measured by the sum of the length of
|
| 70 |
+
the cookie's name, value, and attributes).
|
| 71 |
+
In the 6265bis draft document section 5.4 it is phrased even stronger: "If
|
| 72 |
+
the sum of the lengths of the name string and the value string is more than
|
| 73 |
+
4096 octets, abort these steps and ignore the set-cookie-string entirely."
|
| 74 |
+
*/
|
| 75 |
+
|
| 76 |
+
/** Limits for INCOMING cookies **/
|
| 77 |
+
|
| 78 |
+
/* The longest we allow a line to be when reading a cookie from a HTTP header
|
| 79 |
+
or from a cookie jar */
|
| 80 |
+
#define MAX_COOKIE_LINE 5000
|
| 81 |
+
|
| 82 |
+
/* Maximum length of an incoming cookie name or content we deal with. Longer
|
| 83 |
+
cookies are ignored. */
|
| 84 |
+
#define MAX_NAME 4096
|
| 85 |
+
|
| 86 |
+
/* Maximum number of Set-Cookie: lines accepted in a single response. If more
|
| 87 |
+
such header lines are received, they are ignored. This value must be less
|
| 88 |
+
than 256 since an unsigned char is used to count. */
|
| 89 |
+
#define MAX_SET_COOKIE_AMOUNT 50
|
| 90 |
+
|
| 91 |
+
/** Limits for OUTGOING cookies **/
|
| 92 |
+
|
| 93 |
+
/* Maximum size for an outgoing cookie line libcurl will use in an http
|
| 94 |
+
request. This is the default maximum length used in some versions of Apache
|
| 95 |
+
httpd. */
|
| 96 |
+
#define MAX_COOKIE_HEADER_LEN 8190
|
| 97 |
+
|
| 98 |
+
/* Maximum number of cookies libcurl will send in a single request, even if
|
| 99 |
+
there might be more cookies that match. One reason to cap the number is to
|
| 100 |
+
keep the maximum HTTP request within the maximum allowed size. */
|
| 101 |
+
#define MAX_COOKIE_SEND_AMOUNT 150
|
| 102 |
+
|
| 103 |
+
struct Curl_easy;
|
| 104 |
+
/*
|
| 105 |
+
* Add a cookie to the internal list of cookies. The domain and path arguments
|
| 106 |
+
* are only used if the header boolean is TRUE.
|
| 107 |
+
*/
|
| 108 |
+
|
| 109 |
+
struct Cookie *Curl_cookie_add(struct Curl_easy *data,
|
| 110 |
+
struct CookieInfo *c, bool header,
|
| 111 |
+
bool noexpiry, const char *lineptr,
|
| 112 |
+
const char *domain, const char *path,
|
| 113 |
+
bool secure);
|
| 114 |
+
|
| 115 |
+
struct Cookie *Curl_cookie_getlist(struct Curl_easy *data,
|
| 116 |
+
struct CookieInfo *c, const char *host,
|
| 117 |
+
const char *path, bool secure);
|
| 118 |
+
void Curl_cookie_freelist(struct Cookie *cookies);
|
| 119 |
+
void Curl_cookie_clearall(struct CookieInfo *cookies);
|
| 120 |
+
void Curl_cookie_clearsess(struct CookieInfo *cookies);
|
| 121 |
+
|
| 122 |
+
#if defined(CURL_DISABLE_HTTP) || defined(CURL_DISABLE_COOKIES)
|
| 123 |
+
#define Curl_cookie_list(x) NULL
|
| 124 |
+
#define Curl_cookie_loadfiles(x) Curl_nop_stmt
|
| 125 |
+
#define Curl_cookie_init(x,y,z,w) NULL
|
| 126 |
+
#define Curl_cookie_cleanup(x) Curl_nop_stmt
|
| 127 |
+
#define Curl_flush_cookies(x,y) Curl_nop_stmt
|
| 128 |
+
#else
|
| 129 |
+
void Curl_flush_cookies(struct Curl_easy *data, bool cleanup);
|
| 130 |
+
void Curl_cookie_cleanup(struct CookieInfo *c);
|
| 131 |
+
struct CookieInfo *Curl_cookie_init(struct Curl_easy *data,
|
| 132 |
+
const char *file, struct CookieInfo *inc,
|
| 133 |
+
bool newsession);
|
| 134 |
+
struct curl_slist *Curl_cookie_list(struct Curl_easy *data);
|
| 135 |
+
void Curl_cookie_loadfiles(struct Curl_easy *data);
|
| 136 |
+
#endif
|
| 137 |
+
|
| 138 |
+
#endif /* HEADER_CURL_COOKIE_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_addrinfo.h
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_ADDRINFO_H
|
| 2 |
+
#define HEADER_CURL_ADDRINFO_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include "curl_setup.h"
|
| 28 |
+
|
| 29 |
+
#ifdef HAVE_NETINET_IN_H
|
| 30 |
+
# include <netinet/in.h>
|
| 31 |
+
#endif
|
| 32 |
+
#ifdef HAVE_NETDB_H
|
| 33 |
+
# include <netdb.h>
|
| 34 |
+
#endif
|
| 35 |
+
#ifdef HAVE_ARPA_INET_H
|
| 36 |
+
# include <arpa/inet.h>
|
| 37 |
+
#endif
|
| 38 |
+
|
| 39 |
+
#ifdef __VMS
|
| 40 |
+
# include <in.h>
|
| 41 |
+
# include <inet.h>
|
| 42 |
+
# include <stdlib.h>
|
| 43 |
+
#endif
|
| 44 |
+
|
| 45 |
+
/*
|
| 46 |
+
* Curl_addrinfo is our internal struct definition that we use to allow
|
| 47 |
+
* consistent internal handling of this data. We use this even when the
|
| 48 |
+
* system provides an addrinfo structure definition. And we use this for
|
| 49 |
+
* all sorts of IPv4 and IPV6 builds.
|
| 50 |
+
*/
|
| 51 |
+
|
| 52 |
+
struct Curl_addrinfo {
|
| 53 |
+
int ai_flags;
|
| 54 |
+
int ai_family;
|
| 55 |
+
int ai_socktype;
|
| 56 |
+
int ai_protocol;
|
| 57 |
+
curl_socklen_t ai_addrlen; /* Follow rfc3493 struct addrinfo */
|
| 58 |
+
char *ai_canonname;
|
| 59 |
+
struct sockaddr *ai_addr;
|
| 60 |
+
struct Curl_addrinfo *ai_next;
|
| 61 |
+
};
|
| 62 |
+
|
| 63 |
+
void
|
| 64 |
+
Curl_freeaddrinfo(struct Curl_addrinfo *cahead);
|
| 65 |
+
|
| 66 |
+
#ifdef HAVE_GETADDRINFO
|
| 67 |
+
int
|
| 68 |
+
Curl_getaddrinfo_ex(const char *nodename,
|
| 69 |
+
const char *servname,
|
| 70 |
+
const struct addrinfo *hints,
|
| 71 |
+
struct Curl_addrinfo **result);
|
| 72 |
+
#endif
|
| 73 |
+
|
| 74 |
+
struct Curl_addrinfo *
|
| 75 |
+
Curl_he2ai(const struct hostent *he, int port);
|
| 76 |
+
|
| 77 |
+
struct Curl_addrinfo *
|
| 78 |
+
Curl_ip2addr(int af, const void *inaddr, const char *hostname, int port);
|
| 79 |
+
|
| 80 |
+
struct Curl_addrinfo *Curl_str2addr(char *dotted, int port);
|
| 81 |
+
|
| 82 |
+
#ifdef USE_UNIX_SOCKETS
|
| 83 |
+
struct Curl_addrinfo *Curl_unix2addr(const char *path, bool *longpath,
|
| 84 |
+
bool abstract);
|
| 85 |
+
#endif
|
| 86 |
+
|
| 87 |
+
#if defined(CURLDEBUG) && defined(HAVE_GETADDRINFO) && \
|
| 88 |
+
defined(HAVE_FREEADDRINFO)
|
| 89 |
+
void
|
| 90 |
+
curl_dbg_freeaddrinfo(struct addrinfo *freethis, int line, const char *source);
|
| 91 |
+
#endif
|
| 92 |
+
|
| 93 |
+
#if defined(CURLDEBUG) && defined(HAVE_GETADDRINFO)
|
| 94 |
+
int
|
| 95 |
+
curl_dbg_getaddrinfo(const char *hostname, const char *service,
|
| 96 |
+
const struct addrinfo *hints, struct addrinfo **result,
|
| 97 |
+
int line, const char *source);
|
| 98 |
+
#endif
|
| 99 |
+
|
| 100 |
+
#ifdef HAVE_GETADDRINFO
|
| 101 |
+
#ifdef USE_RESOLVE_ON_IPS
|
| 102 |
+
void Curl_addrinfo_set_port(struct Curl_addrinfo *addrinfo, int port);
|
| 103 |
+
#else
|
| 104 |
+
#define Curl_addrinfo_set_port(x,y)
|
| 105 |
+
#endif
|
| 106 |
+
#endif
|
| 107 |
+
|
| 108 |
+
#endif /* HEADER_CURL_ADDRINFO_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_base64.h
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_BASE64_H
|
| 2 |
+
#define HEADER_CURL_BASE64_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#ifndef BUILDING_LIBCURL
|
| 28 |
+
/* this renames functions so that the tool code can use the same code
|
| 29 |
+
without getting symbol collisions */
|
| 30 |
+
#define Curl_base64_encode(a,b,c,d) curlx_base64_encode(a,b,c,d)
|
| 31 |
+
#define Curl_base64url_encode(a,b,c,d) curlx_base64url_encode(a,b,c,d)
|
| 32 |
+
#define Curl_base64_decode(a,b,c) curlx_base64_decode(a,b,c)
|
| 33 |
+
#endif
|
| 34 |
+
|
| 35 |
+
CURLcode Curl_base64_encode(const char *inputbuff, size_t insize,
|
| 36 |
+
char **outptr, size_t *outlen);
|
| 37 |
+
CURLcode Curl_base64url_encode(const char *inputbuff, size_t insize,
|
| 38 |
+
char **outptr, size_t *outlen);
|
| 39 |
+
CURLcode Curl_base64_decode(const char *src,
|
| 40 |
+
unsigned char **outptr, size_t *outlen);
|
| 41 |
+
#endif /* HEADER_CURL_BASE64_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_ctype.h
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_CTYPE_H
|
| 2 |
+
#define HEADER_CURL_CTYPE_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#define ISLOWHEXALHA(x) (((x) >= 'a') && ((x) <= 'f'))
|
| 28 |
+
#define ISUPHEXALHA(x) (((x) >= 'A') && ((x) <= 'F'))
|
| 29 |
+
|
| 30 |
+
#define ISLOWCNTRL(x) ((unsigned char)(x) <= 0x1f)
|
| 31 |
+
#define IS7F(x) ((x) == 0x7f)
|
| 32 |
+
|
| 33 |
+
#define ISLOWPRINT(x) (((x) >= 9) && ((x) <= 0x0d))
|
| 34 |
+
|
| 35 |
+
#define ISPRINT(x) (ISLOWPRINT(x) || (((x) >= ' ') && ((x) <= 0x7e)))
|
| 36 |
+
#define ISGRAPH(x) (ISLOWPRINT(x) || (((x) > ' ') && ((x) <= 0x7e)))
|
| 37 |
+
#define ISCNTRL(x) (ISLOWCNTRL(x) || IS7F(x))
|
| 38 |
+
#define ISALPHA(x) (ISLOWER(x) || ISUPPER(x))
|
| 39 |
+
#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALHA(x) || ISUPHEXALHA(x))
|
| 40 |
+
#define ISALNUM(x) (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
|
| 41 |
+
#define ISUPPER(x) (((x) >= 'A') && ((x) <= 'Z'))
|
| 42 |
+
#define ISLOWER(x) (((x) >= 'a') && ((x) <= 'z'))
|
| 43 |
+
#define ISDIGIT(x) (((x) >= '0') && ((x) <= '9'))
|
| 44 |
+
#define ISBLANK(x) (((x) == ' ') || ((x) == '\t'))
|
| 45 |
+
#define ISSPACE(x) (ISBLANK(x) || (((x) >= 0xa) && ((x) <= 0x0d)))
|
| 46 |
+
#define ISURLPUNTCS(x) (((x) == '-') || ((x) == '.') || ((x) == '_') || \
|
| 47 |
+
((x) == '~'))
|
| 48 |
+
#define ISUNRESERVED(x) (ISALNUM(x) || ISURLPUNTCS(x))
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
#endif /* HEADER_CURL_CTYPE_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_des.h
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_DES_H
|
| 2 |
+
#define HEADER_CURL_DES_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Steve Holme, <steve_holme@hotmail.com>.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include "curl_setup.h"
|
| 28 |
+
|
| 29 |
+
#if defined(USE_CURL_NTLM_CORE) && !defined(USE_WOLFSSL) && \
|
| 30 |
+
(defined(USE_GNUTLS) || \
|
| 31 |
+
defined(USE_SECTRANSP) || \
|
| 32 |
+
defined(USE_OS400CRYPTO) || \
|
| 33 |
+
defined(USE_WIN32_CRYPTO))
|
| 34 |
+
|
| 35 |
+
/* Applies odd parity to the given byte array */
|
| 36 |
+
void Curl_des_set_odd_parity(unsigned char *bytes, size_t length);
|
| 37 |
+
|
| 38 |
+
#endif
|
| 39 |
+
|
| 40 |
+
#endif /* HEADER_CURL_DES_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_endian.h
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_ENDIAN_H
|
| 2 |
+
#define HEADER_CURL_ENDIAN_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
/* Converts a 16-bit integer from little endian */
|
| 28 |
+
unsigned short Curl_read16_le(const unsigned char *buf);
|
| 29 |
+
|
| 30 |
+
/* Converts a 32-bit integer from little endian */
|
| 31 |
+
unsigned int Curl_read32_le(const unsigned char *buf);
|
| 32 |
+
|
| 33 |
+
/* Converts a 16-bit integer from big endian */
|
| 34 |
+
unsigned short Curl_read16_be(const unsigned char *buf);
|
| 35 |
+
|
| 36 |
+
#endif /* HEADER_CURL_ENDIAN_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_fnmatch.h
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_FNMATCH_H
|
| 2 |
+
#define HEADER_CURL_FNMATCH_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#define CURL_FNMATCH_MATCH 0
|
| 28 |
+
#define CURL_FNMATCH_NOMATCH 1
|
| 29 |
+
#define CURL_FNMATCH_FAIL 2
|
| 30 |
+
|
| 31 |
+
/* default pattern matching function
|
| 32 |
+
* =================================
|
| 33 |
+
* Implemented with recursive backtracking, if you want to use Curl_fnmatch,
|
| 34 |
+
* please note that there is not implemented UTF/UNICODE support.
|
| 35 |
+
*
|
| 36 |
+
* Implemented features:
|
| 37 |
+
* '?' notation, does not match UTF characters
|
| 38 |
+
* '*' can also work with UTF string
|
| 39 |
+
* [a-zA-Z0-9] enumeration support
|
| 40 |
+
*
|
| 41 |
+
* keywords: alnum, digit, xdigit, alpha, print, blank, lower, graph, space
|
| 42 |
+
* and upper (use as "[[:alnum:]]")
|
| 43 |
+
*/
|
| 44 |
+
int Curl_fnmatch(void *ptr, const char *pattern, const char *string);
|
| 45 |
+
|
| 46 |
+
#endif /* HEADER_CURL_FNMATCH_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_get_line.h
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_GET_LINE_H
|
| 2 |
+
#define HEADER_CURL_GET_LINE_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
/* get_line() makes sure to only return complete whole lines that fit in 'len'
|
| 28 |
+
* bytes and end with a newline. */
|
| 29 |
+
char *Curl_get_line(char *buf, int len, FILE *input);
|
| 30 |
+
|
| 31 |
+
#endif /* HEADER_CURL_GET_LINE_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_gethostname.h
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_GETHOSTNAME_H
|
| 2 |
+
#define HEADER_CURL_GETHOSTNAME_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
/* Hostname buffer size */
|
| 28 |
+
#define HOSTNAME_MAX 1024
|
| 29 |
+
|
| 30 |
+
/* This returns the local machine's un-qualified hostname */
|
| 31 |
+
int Curl_gethostname(char * const name, GETHOSTNAME_TYPE_ARG2 namelen);
|
| 32 |
+
|
| 33 |
+
#endif /* HEADER_CURL_GETHOSTNAME_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_gssapi.h
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_GSSAPI_H
|
| 2 |
+
#define HEADER_CURL_GSSAPI_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include "curl_setup.h"
|
| 28 |
+
#include "urldata.h"
|
| 29 |
+
|
| 30 |
+
#ifdef HAVE_GSSAPI
|
| 31 |
+
extern gss_OID_desc Curl_spnego_mech_oid;
|
| 32 |
+
extern gss_OID_desc Curl_krb5_mech_oid;
|
| 33 |
+
|
| 34 |
+
/* Common method for using GSS-API */
|
| 35 |
+
OM_uint32 Curl_gss_init_sec_context(
|
| 36 |
+
struct Curl_easy *data,
|
| 37 |
+
OM_uint32 *minor_status,
|
| 38 |
+
gss_ctx_id_t *context,
|
| 39 |
+
gss_name_t target_name,
|
| 40 |
+
gss_OID mech_type,
|
| 41 |
+
gss_channel_bindings_t input_chan_bindings,
|
| 42 |
+
gss_buffer_t input_token,
|
| 43 |
+
gss_buffer_t output_token,
|
| 44 |
+
const bool mutual_auth,
|
| 45 |
+
OM_uint32 *ret_flags);
|
| 46 |
+
|
| 47 |
+
/* Helper to log a GSS-API error status */
|
| 48 |
+
void Curl_gss_log_error(struct Curl_easy *data, const char *prefix,
|
| 49 |
+
OM_uint32 major, OM_uint32 minor);
|
| 50 |
+
|
| 51 |
+
/* Provide some definitions missing in old headers */
|
| 52 |
+
#ifdef HAVE_OLD_GSSMIT
|
| 53 |
+
#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
|
| 54 |
+
#define NCOMPAT 1
|
| 55 |
+
#endif
|
| 56 |
+
|
| 57 |
+
/* Define our privacy and integrity protection values */
|
| 58 |
+
#define GSSAUTH_P_NONE 1
|
| 59 |
+
#define GSSAUTH_P_INTEGRITY 2
|
| 60 |
+
#define GSSAUTH_P_PRIVACY 4
|
| 61 |
+
|
| 62 |
+
#endif /* HAVE_GSSAPI */
|
| 63 |
+
#endif /* HEADER_CURL_GSSAPI_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_hmac.h
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_HMAC_H
|
| 2 |
+
#define HEADER_CURL_HMAC_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) \
|
| 28 |
+
|| !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH)
|
| 29 |
+
|
| 30 |
+
#include <curl/curl.h>
|
| 31 |
+
|
| 32 |
+
#define HMAC_MD5_LENGTH 16
|
| 33 |
+
|
| 34 |
+
typedef CURLcode (* HMAC_hinit_func)(void *context);
|
| 35 |
+
typedef void (* HMAC_hupdate_func)(void *context,
|
| 36 |
+
const unsigned char *data,
|
| 37 |
+
unsigned int len);
|
| 38 |
+
typedef void (* HMAC_hfinal_func)(unsigned char *result, void *context);
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
/* Per-hash function HMAC parameters. */
|
| 42 |
+
struct HMAC_params {
|
| 43 |
+
HMAC_hinit_func
|
| 44 |
+
hmac_hinit; /* Initialize context procedure. */
|
| 45 |
+
HMAC_hupdate_func hmac_hupdate; /* Update context with data. */
|
| 46 |
+
HMAC_hfinal_func hmac_hfinal; /* Get final result procedure. */
|
| 47 |
+
unsigned int hmac_ctxtsize; /* Context structure size. */
|
| 48 |
+
unsigned int hmac_maxkeylen; /* Maximum key length (bytes). */
|
| 49 |
+
unsigned int hmac_resultlen; /* Result length (bytes). */
|
| 50 |
+
};
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
/* HMAC computation context. */
|
| 54 |
+
struct HMAC_context {
|
| 55 |
+
const struct HMAC_params *hmac_hash; /* Hash function definition. */
|
| 56 |
+
void *hmac_hashctxt1; /* Hash function context 1. */
|
| 57 |
+
void *hmac_hashctxt2; /* Hash function context 2. */
|
| 58 |
+
};
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
/* Prototypes. */
|
| 62 |
+
struct HMAC_context *Curl_HMAC_init(const struct HMAC_params *hashparams,
|
| 63 |
+
const unsigned char *key,
|
| 64 |
+
unsigned int keylen);
|
| 65 |
+
int Curl_HMAC_update(struct HMAC_context *context,
|
| 66 |
+
const unsigned char *data,
|
| 67 |
+
unsigned int len);
|
| 68 |
+
int Curl_HMAC_final(struct HMAC_context *context, unsigned char *result);
|
| 69 |
+
|
| 70 |
+
CURLcode Curl_hmacit(const struct HMAC_params *hashparams,
|
| 71 |
+
const unsigned char *key, const size_t keylen,
|
| 72 |
+
const unsigned char *data, const size_t datalen,
|
| 73 |
+
unsigned char *output);
|
| 74 |
+
|
| 75 |
+
#endif
|
| 76 |
+
|
| 77 |
+
#endif /* HEADER_CURL_HMAC_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_krb5.h
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_KRB5_H
|
| 2 |
+
#define HEADER_CURL_KRB5_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
struct Curl_sec_client_mech {
|
| 28 |
+
const char *name;
|
| 29 |
+
size_t size;
|
| 30 |
+
int (*init)(void *);
|
| 31 |
+
int (*auth)(void *, struct Curl_easy *data, struct connectdata *);
|
| 32 |
+
void (*end)(void *);
|
| 33 |
+
int (*check_prot)(void *, int);
|
| 34 |
+
int (*encode)(void *, const void *, int, int, void **);
|
| 35 |
+
int (*decode)(void *, void *, int, int, struct connectdata *);
|
| 36 |
+
};
|
| 37 |
+
|
| 38 |
+
#define AUTH_OK 0
|
| 39 |
+
#define AUTH_CONTINUE 1
|
| 40 |
+
#define AUTH_ERROR 2
|
| 41 |
+
|
| 42 |
+
#ifdef HAVE_GSSAPI
|
| 43 |
+
int Curl_sec_read_msg(struct Curl_easy *data, struct connectdata *conn, char *,
|
| 44 |
+
enum protection_level);
|
| 45 |
+
void Curl_sec_end(struct connectdata *);
|
| 46 |
+
CURLcode Curl_sec_login(struct Curl_easy *, struct connectdata *);
|
| 47 |
+
int Curl_sec_request_prot(struct connectdata *conn, const char *level);
|
| 48 |
+
#else
|
| 49 |
+
#define Curl_sec_end(x)
|
| 50 |
+
#endif
|
| 51 |
+
|
| 52 |
+
#endif /* HEADER_CURL_KRB5_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_ldap.h
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_LDAP_H
|
| 2 |
+
#define HEADER_CURL_LDAP_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
#ifndef CURL_DISABLE_LDAP
|
| 27 |
+
extern const struct Curl_handler Curl_handler_ldap;
|
| 28 |
+
|
| 29 |
+
#if !defined(CURL_DISABLE_LDAPS) && \
|
| 30 |
+
((defined(USE_OPENLDAP) && defined(USE_SSL)) || \
|
| 31 |
+
(!defined(USE_OPENLDAP) && defined(HAVE_LDAP_SSL)))
|
| 32 |
+
extern const struct Curl_handler Curl_handler_ldaps;
|
| 33 |
+
#endif
|
| 34 |
+
|
| 35 |
+
#endif
|
| 36 |
+
#endif /* HEADER_CURL_LDAP_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_md4.h
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_MD4_H
|
| 2 |
+
#define HEADER_CURL_MD4_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include "curl_setup.h"
|
| 28 |
+
#include <curl/curl.h>
|
| 29 |
+
|
| 30 |
+
#if defined(USE_CURL_NTLM_CORE)
|
| 31 |
+
|
| 32 |
+
#define MD4_DIGEST_LENGTH 16
|
| 33 |
+
|
| 34 |
+
CURLcode Curl_md4it(unsigned char *output, const unsigned char *input,
|
| 35 |
+
const size_t len);
|
| 36 |
+
|
| 37 |
+
#endif /* defined(USE_CURL_NTLM_CORE) */
|
| 38 |
+
|
| 39 |
+
#endif /* HEADER_CURL_MD4_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_md5.h
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_MD5_H
|
| 2 |
+
#define HEADER_CURL_MD5_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) \
|
| 28 |
+
|| !defined(CURL_DISABLE_DIGEST_AUTH)
|
| 29 |
+
|
| 30 |
+
#include "curl_hmac.h"
|
| 31 |
+
|
| 32 |
+
#define MD5_DIGEST_LEN 16
|
| 33 |
+
|
| 34 |
+
typedef CURLcode (* Curl_MD5_init_func)(void *context);
|
| 35 |
+
typedef void (* Curl_MD5_update_func)(void *context,
|
| 36 |
+
const unsigned char *data,
|
| 37 |
+
unsigned int len);
|
| 38 |
+
typedef void (* Curl_MD5_final_func)(unsigned char *result, void *context);
|
| 39 |
+
|
| 40 |
+
struct MD5_params {
|
| 41 |
+
Curl_MD5_init_func md5_init_func; /* Initialize context procedure */
|
| 42 |
+
Curl_MD5_update_func md5_update_func; /* Update context with data */
|
| 43 |
+
Curl_MD5_final_func md5_final_func; /* Get final result procedure */
|
| 44 |
+
unsigned int md5_ctxtsize; /* Context structure size */
|
| 45 |
+
unsigned int md5_resultlen; /* Result length (bytes) */
|
| 46 |
+
};
|
| 47 |
+
|
| 48 |
+
struct MD5_context {
|
| 49 |
+
const struct MD5_params *md5_hash; /* Hash function definition */
|
| 50 |
+
void *md5_hashctx; /* Hash function context */
|
| 51 |
+
};
|
| 52 |
+
|
| 53 |
+
extern const struct MD5_params Curl_DIGEST_MD5[1];
|
| 54 |
+
extern const struct HMAC_params Curl_HMAC_MD5[1];
|
| 55 |
+
|
| 56 |
+
CURLcode Curl_md5it(unsigned char *output, const unsigned char *input,
|
| 57 |
+
const size_t len);
|
| 58 |
+
|
| 59 |
+
struct MD5_context *Curl_MD5_init(const struct MD5_params *md5params);
|
| 60 |
+
CURLcode Curl_MD5_update(struct MD5_context *context,
|
| 61 |
+
const unsigned char *data,
|
| 62 |
+
unsigned int len);
|
| 63 |
+
CURLcode Curl_MD5_final(struct MD5_context *context, unsigned char *result);
|
| 64 |
+
|
| 65 |
+
#endif
|
| 66 |
+
|
| 67 |
+
#endif /* HEADER_CURL_MD5_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_memory.h
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_MEMORY_H
|
| 2 |
+
#define HEADER_CURL_MEMORY_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
/*
|
| 28 |
+
* Nasty internal details ahead...
|
| 29 |
+
*
|
| 30 |
+
* File curl_memory.h must be included by _all_ *.c source files
|
| 31 |
+
* that use memory related functions strdup, malloc, calloc, realloc
|
| 32 |
+
* or free, and given source file is used to build libcurl library.
|
| 33 |
+
* It should be included immediately before memdebug.h as the last files
|
| 34 |
+
* included to avoid undesired interaction with other memory function
|
| 35 |
+
* headers in dependent libraries.
|
| 36 |
+
*
|
| 37 |
+
* There is nearly no exception to above rule. All libcurl source
|
| 38 |
+
* files in 'lib' subdirectory as well as those living deep inside
|
| 39 |
+
* 'packages' subdirectories and linked together in order to build
|
| 40 |
+
* libcurl library shall follow it.
|
| 41 |
+
*
|
| 42 |
+
* File lib/strdup.c is an exception, given that it provides a strdup
|
| 43 |
+
* clone implementation while using malloc. Extra care needed inside
|
| 44 |
+
* this one.
|
| 45 |
+
*
|
| 46 |
+
* The need for curl_memory.h inclusion is due to libcurl's feature
|
| 47 |
+
* of allowing library user to provide memory replacement functions,
|
| 48 |
+
* memory callbacks, at runtime with curl_global_init_mem()
|
| 49 |
+
*
|
| 50 |
+
* Any *.c source file used to build libcurl library that does not
|
| 51 |
+
* include curl_memory.h and uses any memory function of the five
|
| 52 |
+
* mentioned above will compile without any indication, but it will
|
| 53 |
+
* trigger weird memory related issues at runtime.
|
| 54 |
+
*
|
| 55 |
+
*/
|
| 56 |
+
|
| 57 |
+
#ifdef HEADER_CURL_MEMDEBUG_H
|
| 58 |
+
/* cleanup after memdebug.h */
|
| 59 |
+
|
| 60 |
+
#ifdef MEMDEBUG_NODEFINES
|
| 61 |
+
#ifdef CURLDEBUG
|
| 62 |
+
|
| 63 |
+
#undef strdup
|
| 64 |
+
#undef malloc
|
| 65 |
+
#undef calloc
|
| 66 |
+
#undef realloc
|
| 67 |
+
#undef free
|
| 68 |
+
#undef send
|
| 69 |
+
#undef recv
|
| 70 |
+
|
| 71 |
+
#ifdef WIN32
|
| 72 |
+
# ifdef UNICODE
|
| 73 |
+
# undef wcsdup
|
| 74 |
+
# undef _wcsdup
|
| 75 |
+
# undef _tcsdup
|
| 76 |
+
# else
|
| 77 |
+
# undef _tcsdup
|
| 78 |
+
# endif
|
| 79 |
+
#endif
|
| 80 |
+
|
| 81 |
+
#undef socket
|
| 82 |
+
#undef accept
|
| 83 |
+
#ifdef HAVE_SOCKETPAIR
|
| 84 |
+
#undef socketpair
|
| 85 |
+
#endif
|
| 86 |
+
|
| 87 |
+
#ifdef HAVE_GETADDRINFO
|
| 88 |
+
#if defined(getaddrinfo) && defined(__osf__)
|
| 89 |
+
#undef ogetaddrinfo
|
| 90 |
+
#else
|
| 91 |
+
#undef getaddrinfo
|
| 92 |
+
#endif
|
| 93 |
+
#endif /* HAVE_GETADDRINFO */
|
| 94 |
+
|
| 95 |
+
#ifdef HAVE_FREEADDRINFO
|
| 96 |
+
#undef freeaddrinfo
|
| 97 |
+
#endif /* HAVE_FREEADDRINFO */
|
| 98 |
+
|
| 99 |
+
/* sclose is probably already defined, redefine it! */
|
| 100 |
+
#undef sclose
|
| 101 |
+
#undef fopen
|
| 102 |
+
#undef fdopen
|
| 103 |
+
#undef fclose
|
| 104 |
+
|
| 105 |
+
#endif /* MEMDEBUG_NODEFINES */
|
| 106 |
+
#endif /* CURLDEBUG */
|
| 107 |
+
|
| 108 |
+
#undef HEADER_CURL_MEMDEBUG_H
|
| 109 |
+
#endif /* HEADER_CURL_MEMDEBUG_H */
|
| 110 |
+
|
| 111 |
+
/*
|
| 112 |
+
** Following section applies even when CURLDEBUG is not defined.
|
| 113 |
+
*/
|
| 114 |
+
|
| 115 |
+
#undef fake_sclose
|
| 116 |
+
|
| 117 |
+
#ifndef CURL_DID_MEMORY_FUNC_TYPEDEFS /* only if not already done */
|
| 118 |
+
/*
|
| 119 |
+
* The following memory function replacement typedef's are COPIED from
|
| 120 |
+
* curl/curl.h and MUST match the originals. We copy them to avoid having to
|
| 121 |
+
* include curl/curl.h here. We avoid that include since it includes stdio.h
|
| 122 |
+
* and other headers that may get messed up with defines done here.
|
| 123 |
+
*/
|
| 124 |
+
typedef void *(*curl_malloc_callback)(size_t size);
|
| 125 |
+
typedef void (*curl_free_callback)(void *ptr);
|
| 126 |
+
typedef void *(*curl_realloc_callback)(void *ptr, size_t size);
|
| 127 |
+
typedef char *(*curl_strdup_callback)(const char *str);
|
| 128 |
+
typedef void *(*curl_calloc_callback)(size_t nmemb, size_t size);
|
| 129 |
+
#define CURL_DID_MEMORY_FUNC_TYPEDEFS
|
| 130 |
+
#endif
|
| 131 |
+
|
| 132 |
+
extern curl_malloc_callback Curl_cmalloc;
|
| 133 |
+
extern curl_free_callback Curl_cfree;
|
| 134 |
+
extern curl_realloc_callback Curl_crealloc;
|
| 135 |
+
extern curl_strdup_callback Curl_cstrdup;
|
| 136 |
+
extern curl_calloc_callback Curl_ccalloc;
|
| 137 |
+
#if defined(WIN32) && defined(UNICODE)
|
| 138 |
+
extern curl_wcsdup_callback Curl_cwcsdup;
|
| 139 |
+
#endif
|
| 140 |
+
|
| 141 |
+
#ifndef CURLDEBUG
|
| 142 |
+
|
| 143 |
+
/*
|
| 144 |
+
* libcurl's 'memory tracking' system defines strdup, malloc, calloc,
|
| 145 |
+
* realloc and free, along with others, in memdebug.h in a different
|
| 146 |
+
* way although still using memory callbacks forward declared above.
|
| 147 |
+
* When using the 'memory tracking' system (CURLDEBUG defined) we do
|
| 148 |
+
* not define here the five memory functions given that definitions
|
| 149 |
+
* from memdebug.h are the ones that shall be used.
|
| 150 |
+
*/
|
| 151 |
+
|
| 152 |
+
#undef strdup
|
| 153 |
+
#define strdup(ptr) Curl_cstrdup(ptr)
|
| 154 |
+
#undef malloc
|
| 155 |
+
#define malloc(size) Curl_cmalloc(size)
|
| 156 |
+
#undef calloc
|
| 157 |
+
#define calloc(nbelem,size) Curl_ccalloc(nbelem, size)
|
| 158 |
+
#undef realloc
|
| 159 |
+
#define realloc(ptr,size) Curl_crealloc(ptr, size)
|
| 160 |
+
#undef free
|
| 161 |
+
#define free(ptr) Curl_cfree(ptr)
|
| 162 |
+
|
| 163 |
+
#ifdef WIN32
|
| 164 |
+
# ifdef UNICODE
|
| 165 |
+
# undef wcsdup
|
| 166 |
+
# define wcsdup(ptr) Curl_cwcsdup(ptr)
|
| 167 |
+
# undef _wcsdup
|
| 168 |
+
# define _wcsdup(ptr) Curl_cwcsdup(ptr)
|
| 169 |
+
# undef _tcsdup
|
| 170 |
+
# define _tcsdup(ptr) Curl_cwcsdup(ptr)
|
| 171 |
+
# else
|
| 172 |
+
# undef _tcsdup
|
| 173 |
+
# define _tcsdup(ptr) Curl_cstrdup(ptr)
|
| 174 |
+
# endif
|
| 175 |
+
#endif
|
| 176 |
+
|
| 177 |
+
#endif /* CURLDEBUG */
|
| 178 |
+
#endif /* HEADER_CURL_MEMORY_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_memrchr.h
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_MEMRCHR_H
|
| 2 |
+
#define HEADER_CURL_MEMRCHR_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include "curl_setup.h"
|
| 28 |
+
|
| 29 |
+
#ifdef HAVE_MEMRCHR
|
| 30 |
+
|
| 31 |
+
#include <string.h>
|
| 32 |
+
#ifdef HAVE_STRINGS_H
|
| 33 |
+
# include <strings.h>
|
| 34 |
+
#endif
|
| 35 |
+
|
| 36 |
+
#else /* HAVE_MEMRCHR */
|
| 37 |
+
|
| 38 |
+
void *Curl_memrchr(const void *s, int c, size_t n);
|
| 39 |
+
|
| 40 |
+
#define memrchr(x,y,z) Curl_memrchr((x),(y),(z))
|
| 41 |
+
|
| 42 |
+
#endif /* HAVE_MEMRCHR */
|
| 43 |
+
|
| 44 |
+
#endif /* HEADER_CURL_MEMRCHR_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_multibyte.h
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_MULTIBYTE_H
|
| 2 |
+
#define HEADER_CURL_MULTIBYTE_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
#include "curl_setup.h"
|
| 27 |
+
|
| 28 |
+
#if defined(WIN32)
|
| 29 |
+
|
| 30 |
+
/*
|
| 31 |
+
* MultiByte conversions using Windows kernel32 library.
|
| 32 |
+
*/
|
| 33 |
+
|
| 34 |
+
wchar_t *curlx_convert_UTF8_to_wchar(const char *str_utf8);
|
| 35 |
+
char *curlx_convert_wchar_to_UTF8(const wchar_t *str_w);
|
| 36 |
+
#endif /* WIN32 */
|
| 37 |
+
|
| 38 |
+
/*
|
| 39 |
+
* Macros curlx_convert_UTF8_to_tchar(), curlx_convert_tchar_to_UTF8()
|
| 40 |
+
* and curlx_unicodefree() main purpose is to minimize the number of
|
| 41 |
+
* preprocessor conditional directives needed by code using these
|
| 42 |
+
* to differentiate UNICODE from non-UNICODE builds.
|
| 43 |
+
*
|
| 44 |
+
* In the case of a non-UNICODE build the tchar strings are char strings that
|
| 45 |
+
* are duplicated via strdup and remain in whatever the passed in encoding is,
|
| 46 |
+
* which is assumed to be UTF-8 but may be other encoding. Therefore the
|
| 47 |
+
* significance of the conversion functions is primarily for UNICODE builds.
|
| 48 |
+
*
|
| 49 |
+
* Allocated memory should be free'd with curlx_unicodefree().
|
| 50 |
+
*
|
| 51 |
+
* Note: Because these are curlx functions their memory usage is not tracked
|
| 52 |
+
* by the curl memory tracker memdebug. You'll notice that curlx function-like
|
| 53 |
+
* macros call free and strdup in parentheses, eg (strdup)(ptr), and that's to
|
| 54 |
+
* ensure that the curl memdebug override macros do not replace them.
|
| 55 |
+
*/
|
| 56 |
+
|
| 57 |
+
#if defined(UNICODE) && defined(WIN32)
|
| 58 |
+
|
| 59 |
+
#define curlx_convert_UTF8_to_tchar(ptr) curlx_convert_UTF8_to_wchar((ptr))
|
| 60 |
+
#define curlx_convert_tchar_to_UTF8(ptr) curlx_convert_wchar_to_UTF8((ptr))
|
| 61 |
+
|
| 62 |
+
typedef union {
|
| 63 |
+
unsigned short *tchar_ptr;
|
| 64 |
+
const unsigned short *const_tchar_ptr;
|
| 65 |
+
unsigned short *tbyte_ptr;
|
| 66 |
+
const unsigned short *const_tbyte_ptr;
|
| 67 |
+
} xcharp_u;
|
| 68 |
+
|
| 69 |
+
#else
|
| 70 |
+
|
| 71 |
+
#define curlx_convert_UTF8_to_tchar(ptr) (strdup)(ptr)
|
| 72 |
+
#define curlx_convert_tchar_to_UTF8(ptr) (strdup)(ptr)
|
| 73 |
+
|
| 74 |
+
typedef union {
|
| 75 |
+
char *tchar_ptr;
|
| 76 |
+
const char *const_tchar_ptr;
|
| 77 |
+
unsigned char *tbyte_ptr;
|
| 78 |
+
const unsigned char *const_tbyte_ptr;
|
| 79 |
+
} xcharp_u;
|
| 80 |
+
|
| 81 |
+
#endif /* UNICODE && WIN32 */
|
| 82 |
+
|
| 83 |
+
#define curlx_unicodefree(ptr) \
|
| 84 |
+
do { \
|
| 85 |
+
if(ptr) { \
|
| 86 |
+
(free)(ptr); \
|
| 87 |
+
(ptr) = NULL; \
|
| 88 |
+
} \
|
| 89 |
+
} while(0)
|
| 90 |
+
|
| 91 |
+
#endif /* HEADER_CURL_MULTIBYTE_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_ntlm_core.h
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_NTLM_CORE_H
|
| 2 |
+
#define HEADER_CURL_NTLM_CORE_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include "curl_setup.h"
|
| 28 |
+
|
| 29 |
+
#if defined(USE_CURL_NTLM_CORE)
|
| 30 |
+
|
| 31 |
+
#if defined(USE_OPENSSL)
|
| 32 |
+
# include <openssl/ssl.h>
|
| 33 |
+
#elif defined(USE_WOLFSSL)
|
| 34 |
+
# include <wolfssl/options.h>
|
| 35 |
+
# include <wolfssl/openssl/ssl.h>
|
| 36 |
+
#endif
|
| 37 |
+
|
| 38 |
+
/* Helpers to generate function byte arguments in little endian order */
|
| 39 |
+
#define SHORTPAIR(x) ((int)((x) & 0xff)), ((int)(((x) >> 8) & 0xff))
|
| 40 |
+
#define LONGQUARTET(x) ((int)((x) & 0xff)), ((int)(((x) >> 8) & 0xff)), \
|
| 41 |
+
((int)(((x) >> 16) & 0xff)), ((int)(((x) >> 24) & 0xff))
|
| 42 |
+
|
| 43 |
+
void Curl_ntlm_core_lm_resp(const unsigned char *keys,
|
| 44 |
+
const unsigned char *plaintext,
|
| 45 |
+
unsigned char *results);
|
| 46 |
+
|
| 47 |
+
CURLcode Curl_ntlm_core_mk_lm_hash(const char *password,
|
| 48 |
+
unsigned char *lmbuffer /* 21 bytes */);
|
| 49 |
+
|
| 50 |
+
CURLcode Curl_ntlm_core_mk_nt_hash(const char *password,
|
| 51 |
+
unsigned char *ntbuffer /* 21 bytes */);
|
| 52 |
+
|
| 53 |
+
#if !defined(USE_WINDOWS_SSPI)
|
| 54 |
+
|
| 55 |
+
CURLcode Curl_hmac_md5(const unsigned char *key, unsigned int keylen,
|
| 56 |
+
const unsigned char *data, unsigned int datalen,
|
| 57 |
+
unsigned char *output);
|
| 58 |
+
|
| 59 |
+
CURLcode Curl_ntlm_core_mk_ntlmv2_hash(const char *user, size_t userlen,
|
| 60 |
+
const char *domain, size_t domlen,
|
| 61 |
+
unsigned char *ntlmhash,
|
| 62 |
+
unsigned char *ntlmv2hash);
|
| 63 |
+
|
| 64 |
+
CURLcode Curl_ntlm_core_mk_ntlmv2_resp(unsigned char *ntlmv2hash,
|
| 65 |
+
unsigned char *challenge_client,
|
| 66 |
+
struct ntlmdata *ntlm,
|
| 67 |
+
unsigned char **ntresp,
|
| 68 |
+
unsigned int *ntresp_len);
|
| 69 |
+
|
| 70 |
+
CURLcode Curl_ntlm_core_mk_lmv2_resp(unsigned char *ntlmv2hash,
|
| 71 |
+
unsigned char *challenge_client,
|
| 72 |
+
unsigned char *challenge_server,
|
| 73 |
+
unsigned char *lmresp);
|
| 74 |
+
|
| 75 |
+
#endif /* !USE_WINDOWS_SSPI */
|
| 76 |
+
|
| 77 |
+
#endif /* USE_CURL_NTLM_CORE */
|
| 78 |
+
|
| 79 |
+
#endif /* HEADER_CURL_NTLM_CORE_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_ntlm_wb.h
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_NTLM_WB_H
|
| 2 |
+
#define HEADER_CURL_NTLM_WB_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include "curl_setup.h"
|
| 28 |
+
|
| 29 |
+
#if !defined(CURL_DISABLE_HTTP) && defined(USE_NTLM) && \
|
| 30 |
+
defined(NTLM_WB_ENABLED)
|
| 31 |
+
|
| 32 |
+
/* this is for ntlm header input */
|
| 33 |
+
CURLcode Curl_input_ntlm_wb(struct Curl_easy *data,
|
| 34 |
+
struct connectdata *conn, bool proxy,
|
| 35 |
+
const char *header);
|
| 36 |
+
|
| 37 |
+
/* this is for creating ntlm header output */
|
| 38 |
+
CURLcode Curl_output_ntlm_wb(struct Curl_easy *data, struct connectdata *conn,
|
| 39 |
+
bool proxy);
|
| 40 |
+
|
| 41 |
+
void Curl_http_auth_cleanup_ntlm_wb(struct connectdata *conn);
|
| 42 |
+
|
| 43 |
+
#endif /* !CURL_DISABLE_HTTP && USE_NTLM && NTLM_WB_ENABLED */
|
| 44 |
+
|
| 45 |
+
#endif /* HEADER_CURL_NTLM_WB_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_path.h
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_PATH_H
|
| 2 |
+
#define HEADER_CURL_PATH_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include "curl_setup.h"
|
| 28 |
+
#include <curl/curl.h>
|
| 29 |
+
#include "urldata.h"
|
| 30 |
+
|
| 31 |
+
#ifdef WIN32
|
| 32 |
+
# undef PATH_MAX
|
| 33 |
+
# define PATH_MAX MAX_PATH
|
| 34 |
+
# ifndef R_OK
|
| 35 |
+
# define R_OK 4
|
| 36 |
+
# endif
|
| 37 |
+
#endif
|
| 38 |
+
|
| 39 |
+
#ifndef PATH_MAX
|
| 40 |
+
#define PATH_MAX 1024 /* just an extra precaution since there are systems that
|
| 41 |
+
have their definition hidden well */
|
| 42 |
+
#endif
|
| 43 |
+
|
| 44 |
+
CURLcode Curl_getworkingpath(struct Curl_easy *data,
|
| 45 |
+
char *homedir,
|
| 46 |
+
char **path);
|
| 47 |
+
|
| 48 |
+
CURLcode Curl_get_pathname(const char **cpp, char **path, char *homedir);
|
| 49 |
+
#endif /* HEADER_CURL_PATH_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_printf.h
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_PRINTF_H
|
| 2 |
+
#define HEADER_CURL_PRINTF_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
/*
|
| 28 |
+
* This header should be included by ALL code in libcurl that uses any
|
| 29 |
+
* *rintf() functions.
|
| 30 |
+
*/
|
| 31 |
+
|
| 32 |
+
#include <curl/mprintf.h>
|
| 33 |
+
|
| 34 |
+
# undef printf
|
| 35 |
+
# undef fprintf
|
| 36 |
+
# undef msnprintf
|
| 37 |
+
# undef vprintf
|
| 38 |
+
# undef vfprintf
|
| 39 |
+
# undef vsnprintf
|
| 40 |
+
# undef mvsnprintf
|
| 41 |
+
# undef aprintf
|
| 42 |
+
# undef vaprintf
|
| 43 |
+
# define printf curl_mprintf
|
| 44 |
+
# define fprintf curl_mfprintf
|
| 45 |
+
# define msnprintf curl_msnprintf
|
| 46 |
+
# define vprintf curl_mvprintf
|
| 47 |
+
# define vfprintf curl_mvfprintf
|
| 48 |
+
# define mvsnprintf curl_mvsnprintf
|
| 49 |
+
# define aprintf curl_maprintf
|
| 50 |
+
# define vaprintf curl_mvaprintf
|
| 51 |
+
#endif /* HEADER_CURL_PRINTF_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_range.h
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_RANGE_H
|
| 2 |
+
#define HEADER_CURL_RANGE_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include "curl_setup.h"
|
| 28 |
+
#include "urldata.h"
|
| 29 |
+
|
| 30 |
+
CURLcode Curl_range(struct Curl_easy *data);
|
| 31 |
+
#endif /* HEADER_CURL_RANGE_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_rtmp.h
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_RTMP_H
|
| 2 |
+
#define HEADER_CURL_RTMP_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Howard Chu, <hyc@highlandsun.com>
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
#ifdef USE_LIBRTMP
|
| 27 |
+
extern const struct Curl_handler Curl_handler_rtmp;
|
| 28 |
+
extern const struct Curl_handler Curl_handler_rtmpt;
|
| 29 |
+
extern const struct Curl_handler Curl_handler_rtmpe;
|
| 30 |
+
extern const struct Curl_handler Curl_handler_rtmpte;
|
| 31 |
+
extern const struct Curl_handler Curl_handler_rtmps;
|
| 32 |
+
extern const struct Curl_handler Curl_handler_rtmpts;
|
| 33 |
+
#endif
|
| 34 |
+
|
| 35 |
+
#endif /* HEADER_CURL_RTMP_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_sasl.h
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_SASL_H
|
| 2 |
+
#define HEADER_CURL_SASL_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include <curl/curl.h>
|
| 28 |
+
|
| 29 |
+
#include "bufref.h"
|
| 30 |
+
|
| 31 |
+
struct Curl_easy;
|
| 32 |
+
struct connectdata;
|
| 33 |
+
|
| 34 |
+
/* Authentication mechanism flags */
|
| 35 |
+
#define SASL_MECH_LOGIN (1 << 0)
|
| 36 |
+
#define SASL_MECH_PLAIN (1 << 1)
|
| 37 |
+
#define SASL_MECH_CRAM_MD5 (1 << 2)
|
| 38 |
+
#define SASL_MECH_DIGEST_MD5 (1 << 3)
|
| 39 |
+
#define SASL_MECH_GSSAPI (1 << 4)
|
| 40 |
+
#define SASL_MECH_EXTERNAL (1 << 5)
|
| 41 |
+
#define SASL_MECH_NTLM (1 << 6)
|
| 42 |
+
#define SASL_MECH_XOAUTH2 (1 << 7)
|
| 43 |
+
#define SASL_MECH_OAUTHBEARER (1 << 8)
|
| 44 |
+
#define SASL_MECH_SCRAM_SHA_1 (1 << 9)
|
| 45 |
+
#define SASL_MECH_SCRAM_SHA_256 (1 << 10)
|
| 46 |
+
|
| 47 |
+
/* Authentication mechanism values */
|
| 48 |
+
#define SASL_AUTH_NONE 0
|
| 49 |
+
#define SASL_AUTH_ANY 0xffff
|
| 50 |
+
#define SASL_AUTH_DEFAULT (SASL_AUTH_ANY & ~SASL_MECH_EXTERNAL)
|
| 51 |
+
|
| 52 |
+
/* Authentication mechanism strings */
|
| 53 |
+
#define SASL_MECH_STRING_LOGIN "LOGIN"
|
| 54 |
+
#define SASL_MECH_STRING_PLAIN "PLAIN"
|
| 55 |
+
#define SASL_MECH_STRING_CRAM_MD5 "CRAM-MD5"
|
| 56 |
+
#define SASL_MECH_STRING_DIGEST_MD5 "DIGEST-MD5"
|
| 57 |
+
#define SASL_MECH_STRING_GSSAPI "GSSAPI"
|
| 58 |
+
#define SASL_MECH_STRING_EXTERNAL "EXTERNAL"
|
| 59 |
+
#define SASL_MECH_STRING_NTLM "NTLM"
|
| 60 |
+
#define SASL_MECH_STRING_XOAUTH2 "XOAUTH2"
|
| 61 |
+
#define SASL_MECH_STRING_OAUTHBEARER "OAUTHBEARER"
|
| 62 |
+
#define SASL_MECH_STRING_SCRAM_SHA_1 "SCRAM-SHA-1"
|
| 63 |
+
#define SASL_MECH_STRING_SCRAM_SHA_256 "SCRAM-SHA-256"
|
| 64 |
+
|
| 65 |
+
/* SASL flags */
|
| 66 |
+
#define SASL_FLAG_BASE64 0x0001 /* Messages are base64-encoded */
|
| 67 |
+
|
| 68 |
+
/* SASL machine states */
|
| 69 |
+
typedef enum {
|
| 70 |
+
SASL_STOP,
|
| 71 |
+
SASL_PLAIN,
|
| 72 |
+
SASL_LOGIN,
|
| 73 |
+
SASL_LOGIN_PASSWD,
|
| 74 |
+
SASL_EXTERNAL,
|
| 75 |
+
SASL_CRAMMD5,
|
| 76 |
+
SASL_DIGESTMD5,
|
| 77 |
+
SASL_DIGESTMD5_RESP,
|
| 78 |
+
SASL_NTLM,
|
| 79 |
+
SASL_NTLM_TYPE2MSG,
|
| 80 |
+
SASL_GSSAPI,
|
| 81 |
+
SASL_GSSAPI_TOKEN,
|
| 82 |
+
SASL_GSSAPI_NO_DATA,
|
| 83 |
+
SASL_OAUTH2,
|
| 84 |
+
SASL_OAUTH2_RESP,
|
| 85 |
+
SASL_GSASL,
|
| 86 |
+
SASL_CANCEL,
|
| 87 |
+
SASL_FINAL
|
| 88 |
+
} saslstate;
|
| 89 |
+
|
| 90 |
+
/* Progress indicator */
|
| 91 |
+
typedef enum {
|
| 92 |
+
SASL_IDLE,
|
| 93 |
+
SASL_INPROGRESS,
|
| 94 |
+
SASL_DONE
|
| 95 |
+
} saslprogress;
|
| 96 |
+
|
| 97 |
+
/* Protocol dependent SASL parameters */
|
| 98 |
+
struct SASLproto {
|
| 99 |
+
const char *service; /* The service name */
|
| 100 |
+
CURLcode (*sendauth)(struct Curl_easy *data, const char *mech,
|
| 101 |
+
const struct bufref *ir);
|
| 102 |
+
/* Send authentication command */
|
| 103 |
+
CURLcode (*contauth)(struct Curl_easy *data, const char *mech,
|
| 104 |
+
const struct bufref *contauth);
|
| 105 |
+
/* Send authentication continuation */
|
| 106 |
+
CURLcode (*cancelauth)(struct Curl_easy *data, const char *mech);
|
| 107 |
+
/* Cancel authentication. */
|
| 108 |
+
CURLcode (*getmessage)(struct Curl_easy *data, struct bufref *out);
|
| 109 |
+
/* Get SASL response message */
|
| 110 |
+
size_t maxirlen; /* Maximum initial response + mechanism length,
|
| 111 |
+
or zero if no max. This is normally the max
|
| 112 |
+
command length - other characters count.
|
| 113 |
+
This has to be zero for non-base64 protocols. */
|
| 114 |
+
int contcode; /* Code to receive when continuation is expected */
|
| 115 |
+
int finalcode; /* Code to receive upon authentication success */
|
| 116 |
+
unsigned short defmechs; /* Mechanisms enabled by default */
|
| 117 |
+
unsigned short flags; /* Configuration flags. */
|
| 118 |
+
};
|
| 119 |
+
|
| 120 |
+
/* Per-connection parameters */
|
| 121 |
+
struct SASL {
|
| 122 |
+
const struct SASLproto *params; /* Protocol dependent parameters */
|
| 123 |
+
saslstate state; /* Current machine state */
|
| 124 |
+
const char *curmech; /* Current mechanism id. */
|
| 125 |
+
unsigned short authmechs; /* Accepted authentication mechanisms */
|
| 126 |
+
unsigned short prefmech; /* Preferred authentication mechanism */
|
| 127 |
+
unsigned short authused; /* Auth mechanism used for the connection */
|
| 128 |
+
BIT(resetprefs); /* For URL auth option parsing. */
|
| 129 |
+
BIT(mutual_auth); /* Mutual authentication enabled (GSSAPI only) */
|
| 130 |
+
BIT(force_ir); /* Protocol always supports initial response */
|
| 131 |
+
};
|
| 132 |
+
|
| 133 |
+
/* This is used to test whether the line starts with the given mechanism */
|
| 134 |
+
#define sasl_mech_equal(line, wordlen, mech) \
|
| 135 |
+
(wordlen == (sizeof(mech) - 1) / sizeof(char) && \
|
| 136 |
+
!memcmp(line, mech, wordlen))
|
| 137 |
+
|
| 138 |
+
/* This is used to cleanup any libraries or curl modules used by the sasl
|
| 139 |
+
functions */
|
| 140 |
+
void Curl_sasl_cleanup(struct connectdata *conn, unsigned short authused);
|
| 141 |
+
|
| 142 |
+
/* Convert a mechanism name to a token */
|
| 143 |
+
unsigned short Curl_sasl_decode_mech(const char *ptr,
|
| 144 |
+
size_t maxlen, size_t *len);
|
| 145 |
+
|
| 146 |
+
/* Parse the URL login options */
|
| 147 |
+
CURLcode Curl_sasl_parse_url_auth_option(struct SASL *sasl,
|
| 148 |
+
const char *value, size_t len);
|
| 149 |
+
|
| 150 |
+
/* Initializes an SASL structure */
|
| 151 |
+
void Curl_sasl_init(struct SASL *sasl, struct Curl_easy *data,
|
| 152 |
+
const struct SASLproto *params);
|
| 153 |
+
|
| 154 |
+
/* Check if we have enough auth data and capabilities to authenticate */
|
| 155 |
+
bool Curl_sasl_can_authenticate(struct SASL *sasl, struct Curl_easy *data);
|
| 156 |
+
|
| 157 |
+
/* Calculate the required login details for SASL authentication */
|
| 158 |
+
CURLcode Curl_sasl_start(struct SASL *sasl, struct Curl_easy *data,
|
| 159 |
+
bool force_ir, saslprogress *progress);
|
| 160 |
+
|
| 161 |
+
/* Continue an SASL authentication */
|
| 162 |
+
CURLcode Curl_sasl_continue(struct SASL *sasl, struct Curl_easy *data,
|
| 163 |
+
int code, saslprogress *progress);
|
| 164 |
+
|
| 165 |
+
#endif /* HEADER_CURL_SASL_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_setup.h
ADDED
|
@@ -0,0 +1,847 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_SETUP_H
|
| 2 |
+
#define HEADER_CURL_SETUP_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#if defined(BUILDING_LIBCURL) && !defined(CURL_NO_OLDIES)
|
| 28 |
+
#define CURL_NO_OLDIES
|
| 29 |
+
#endif
|
| 30 |
+
|
| 31 |
+
/*
|
| 32 |
+
* Disable Visual Studio warnings:
|
| 33 |
+
* 4127 "conditional expression is constant"
|
| 34 |
+
*/
|
| 35 |
+
#ifdef _MSC_VER
|
| 36 |
+
#pragma warning(disable:4127)
|
| 37 |
+
#endif
|
| 38 |
+
|
| 39 |
+
/*
|
| 40 |
+
* Define WIN32 when build target is Win32 API
|
| 41 |
+
*/
|
| 42 |
+
|
| 43 |
+
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
|
| 44 |
+
#define WIN32
|
| 45 |
+
#endif
|
| 46 |
+
|
| 47 |
+
#ifdef WIN32
|
| 48 |
+
/*
|
| 49 |
+
* Don't include unneeded stuff in Windows headers to avoid compiler
|
| 50 |
+
* warnings and macro clashes.
|
| 51 |
+
* Make sure to define this macro before including any Windows headers.
|
| 52 |
+
*/
|
| 53 |
+
# ifndef WIN32_LEAN_AND_MEAN
|
| 54 |
+
# define WIN32_LEAN_AND_MEAN
|
| 55 |
+
# endif
|
| 56 |
+
# ifndef NOGDI
|
| 57 |
+
# define NOGDI
|
| 58 |
+
# endif
|
| 59 |
+
/* Detect Windows App environment which has a restricted access
|
| 60 |
+
* to the Win32 APIs. */
|
| 61 |
+
# if (defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0602)) || \
|
| 62 |
+
defined(WINAPI_FAMILY)
|
| 63 |
+
# include <winapifamily.h>
|
| 64 |
+
# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && \
|
| 65 |
+
!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 66 |
+
# define CURL_WINDOWS_APP
|
| 67 |
+
# endif
|
| 68 |
+
# endif
|
| 69 |
+
#endif
|
| 70 |
+
|
| 71 |
+
/*
|
| 72 |
+
* Include configuration script results or hand-crafted
|
| 73 |
+
* configuration file for platforms which lack config tool.
|
| 74 |
+
*/
|
| 75 |
+
|
| 76 |
+
#ifdef HAVE_CONFIG_H
|
| 77 |
+
|
| 78 |
+
#include "curl_config.h"
|
| 79 |
+
|
| 80 |
+
#else /* HAVE_CONFIG_H */
|
| 81 |
+
|
| 82 |
+
#ifdef _WIN32_WCE
|
| 83 |
+
# include "config-win32ce.h"
|
| 84 |
+
#else
|
| 85 |
+
# ifdef WIN32
|
| 86 |
+
# include "config-win32.h"
|
| 87 |
+
# endif
|
| 88 |
+
#endif
|
| 89 |
+
|
| 90 |
+
#ifdef macintosh
|
| 91 |
+
# include "config-mac.h"
|
| 92 |
+
#endif
|
| 93 |
+
|
| 94 |
+
#ifdef __riscos__
|
| 95 |
+
# include "config-riscos.h"
|
| 96 |
+
#endif
|
| 97 |
+
|
| 98 |
+
#ifdef __AMIGA__
|
| 99 |
+
# include "config-amigaos.h"
|
| 100 |
+
#endif
|
| 101 |
+
|
| 102 |
+
#ifdef __OS400__
|
| 103 |
+
# include "config-os400.h"
|
| 104 |
+
#endif
|
| 105 |
+
|
| 106 |
+
#ifdef __PLAN9__
|
| 107 |
+
# include "config-plan9.h"
|
| 108 |
+
#endif
|
| 109 |
+
|
| 110 |
+
#ifdef MSDOS
|
| 111 |
+
# include "config-dos.h"
|
| 112 |
+
#endif
|
| 113 |
+
|
| 114 |
+
#endif /* HAVE_CONFIG_H */
|
| 115 |
+
|
| 116 |
+
/* ================================================================ */
|
| 117 |
+
/* Definition of preprocessor macros/symbols which modify compiler */
|
| 118 |
+
/* behavior or generated code characteristics must be done here, */
|
| 119 |
+
/* as appropriate, before any system header file is included. It is */
|
| 120 |
+
/* also possible to have them defined in the config file included */
|
| 121 |
+
/* before this point. As a result of all this we frown inclusion of */
|
| 122 |
+
/* system header files in our config files, avoid this at any cost. */
|
| 123 |
+
/* ================================================================ */
|
| 124 |
+
|
| 125 |
+
/*
|
| 126 |
+
* AIX 4.3 and newer needs _THREAD_SAFE defined to build
|
| 127 |
+
* proper reentrant code. Others may also need it.
|
| 128 |
+
*/
|
| 129 |
+
|
| 130 |
+
#ifdef NEED_THREAD_SAFE
|
| 131 |
+
# ifndef _THREAD_SAFE
|
| 132 |
+
# define _THREAD_SAFE
|
| 133 |
+
# endif
|
| 134 |
+
#endif
|
| 135 |
+
|
| 136 |
+
/*
|
| 137 |
+
* Tru64 needs _REENTRANT set for a few function prototypes and
|
| 138 |
+
* things to appear in the system header files. Unixware needs it
|
| 139 |
+
* to build proper reentrant code. Others may also need it.
|
| 140 |
+
*/
|
| 141 |
+
|
| 142 |
+
#ifdef NEED_REENTRANT
|
| 143 |
+
# ifndef _REENTRANT
|
| 144 |
+
# define _REENTRANT
|
| 145 |
+
# endif
|
| 146 |
+
#endif
|
| 147 |
+
|
| 148 |
+
/* Solaris needs this to get a POSIX-conformant getpwuid_r */
|
| 149 |
+
#if defined(sun) || defined(__sun)
|
| 150 |
+
# ifndef _POSIX_PTHREAD_SEMANTICS
|
| 151 |
+
# define _POSIX_PTHREAD_SEMANTICS 1
|
| 152 |
+
# endif
|
| 153 |
+
#endif
|
| 154 |
+
|
| 155 |
+
/* ================================================================ */
|
| 156 |
+
/* If you need to include a system header file for your platform, */
|
| 157 |
+
/* please, do it beyond the point further indicated in this file. */
|
| 158 |
+
/* ================================================================ */
|
| 159 |
+
|
| 160 |
+
/*
|
| 161 |
+
* Disable other protocols when http is the only one desired.
|
| 162 |
+
*/
|
| 163 |
+
|
| 164 |
+
#ifdef HTTP_ONLY
|
| 165 |
+
# ifndef CURL_DISABLE_DICT
|
| 166 |
+
# define CURL_DISABLE_DICT
|
| 167 |
+
# endif
|
| 168 |
+
# ifndef CURL_DISABLE_FILE
|
| 169 |
+
# define CURL_DISABLE_FILE
|
| 170 |
+
# endif
|
| 171 |
+
# ifndef CURL_DISABLE_FTP
|
| 172 |
+
# define CURL_DISABLE_FTP
|
| 173 |
+
# endif
|
| 174 |
+
# ifndef CURL_DISABLE_GOPHER
|
| 175 |
+
# define CURL_DISABLE_GOPHER
|
| 176 |
+
# endif
|
| 177 |
+
# ifndef CURL_DISABLE_IMAP
|
| 178 |
+
# define CURL_DISABLE_IMAP
|
| 179 |
+
# endif
|
| 180 |
+
# ifndef CURL_DISABLE_LDAP
|
| 181 |
+
# define CURL_DISABLE_LDAP
|
| 182 |
+
# endif
|
| 183 |
+
# ifndef CURL_DISABLE_LDAPS
|
| 184 |
+
# define CURL_DISABLE_LDAPS
|
| 185 |
+
# endif
|
| 186 |
+
# ifndef CURL_DISABLE_MQTT
|
| 187 |
+
# define CURL_DISABLE_MQTT
|
| 188 |
+
# endif
|
| 189 |
+
# ifndef CURL_DISABLE_POP3
|
| 190 |
+
# define CURL_DISABLE_POP3
|
| 191 |
+
# endif
|
| 192 |
+
# ifndef CURL_DISABLE_RTSP
|
| 193 |
+
# define CURL_DISABLE_RTSP
|
| 194 |
+
# endif
|
| 195 |
+
# ifndef CURL_DISABLE_SMB
|
| 196 |
+
# define CURL_DISABLE_SMB
|
| 197 |
+
# endif
|
| 198 |
+
# ifndef CURL_DISABLE_SMTP
|
| 199 |
+
# define CURL_DISABLE_SMTP
|
| 200 |
+
# endif
|
| 201 |
+
# ifndef CURL_DISABLE_TELNET
|
| 202 |
+
# define CURL_DISABLE_TELNET
|
| 203 |
+
# endif
|
| 204 |
+
# ifndef CURL_DISABLE_TFTP
|
| 205 |
+
# define CURL_DISABLE_TFTP
|
| 206 |
+
# endif
|
| 207 |
+
#endif
|
| 208 |
+
|
| 209 |
+
/*
|
| 210 |
+
* When http is disabled rtsp is not supported.
|
| 211 |
+
*/
|
| 212 |
+
|
| 213 |
+
#if defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_RTSP)
|
| 214 |
+
# define CURL_DISABLE_RTSP
|
| 215 |
+
#endif
|
| 216 |
+
|
| 217 |
+
/* ================================================================ */
|
| 218 |
+
/* No system header file shall be included in this file before this */
|
| 219 |
+
/* point. */
|
| 220 |
+
/* ================================================================ */
|
| 221 |
+
|
| 222 |
+
/*
|
| 223 |
+
* OS/400 setup file includes some system headers.
|
| 224 |
+
*/
|
| 225 |
+
|
| 226 |
+
#ifdef __OS400__
|
| 227 |
+
# include "setup-os400.h"
|
| 228 |
+
#endif
|
| 229 |
+
|
| 230 |
+
/*
|
| 231 |
+
* VMS setup file includes some system headers.
|
| 232 |
+
*/
|
| 233 |
+
|
| 234 |
+
#ifdef __VMS
|
| 235 |
+
# include "setup-vms.h"
|
| 236 |
+
#endif
|
| 237 |
+
|
| 238 |
+
/*
|
| 239 |
+
* Windows setup file includes some system headers.
|
| 240 |
+
*/
|
| 241 |
+
|
| 242 |
+
#ifdef HAVE_WINDOWS_H
|
| 243 |
+
# include "setup-win32.h"
|
| 244 |
+
#endif
|
| 245 |
+
|
| 246 |
+
#include <curl/system.h>
|
| 247 |
+
|
| 248 |
+
/*
|
| 249 |
+
* Use getaddrinfo to resolve the IPv4 address literal. If the current network
|
| 250 |
+
* interface doesn't support IPv4, but supports IPv6, NAT64, and DNS64,
|
| 251 |
+
* performing this task will result in a synthesized IPv6 address.
|
| 252 |
+
*/
|
| 253 |
+
#if defined(__APPLE__) && !defined(USE_ARES)
|
| 254 |
+
#include <TargetConditionals.h>
|
| 255 |
+
#define USE_RESOLVE_ON_IPS 1
|
| 256 |
+
# if TARGET_OS_MAC && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) && \
|
| 257 |
+
defined(ENABLE_IPV6)
|
| 258 |
+
# define CURL_MACOS_CALL_COPYPROXIES 1
|
| 259 |
+
# endif
|
| 260 |
+
#endif
|
| 261 |
+
|
| 262 |
+
#ifdef USE_LWIPSOCK
|
| 263 |
+
# include <lwip/init.h>
|
| 264 |
+
# include <lwip/sockets.h>
|
| 265 |
+
# include <lwip/netdb.h>
|
| 266 |
+
#endif
|
| 267 |
+
|
| 268 |
+
#ifdef HAVE_EXTRA_STRICMP_H
|
| 269 |
+
# include <extra/stricmp.h>
|
| 270 |
+
#endif
|
| 271 |
+
|
| 272 |
+
#ifdef HAVE_EXTRA_STRDUP_H
|
| 273 |
+
# include <extra/strdup.h>
|
| 274 |
+
#endif
|
| 275 |
+
|
| 276 |
+
#ifdef __AMIGA__
|
| 277 |
+
# ifdef __amigaos4__
|
| 278 |
+
# define __USE_INLINE__
|
| 279 |
+
/* use our own resolver which uses runtime feature detection */
|
| 280 |
+
# define CURLRES_AMIGA
|
| 281 |
+
/* getaddrinfo() currently crashes bsdsocket.library, so disable */
|
| 282 |
+
# undef HAVE_GETADDRINFO
|
| 283 |
+
# if !(defined(__NEWLIB__) || \
|
| 284 |
+
(defined(__CLIB2__) && defined(__THREAD_SAFE)))
|
| 285 |
+
/* disable threaded resolver with clib2 - requires newlib or clib-ts */
|
| 286 |
+
# undef USE_THREADS_POSIX
|
| 287 |
+
# endif
|
| 288 |
+
# endif
|
| 289 |
+
# include <exec/types.h>
|
| 290 |
+
# include <exec/execbase.h>
|
| 291 |
+
# include <proto/exec.h>
|
| 292 |
+
# include <proto/dos.h>
|
| 293 |
+
# include <unistd.h>
|
| 294 |
+
# if defined(HAVE_PROTO_BSDSOCKET_H) && \
|
| 295 |
+
(!defined(__amigaos4__) || defined(USE_AMISSL))
|
| 296 |
+
/* use bsdsocket.library directly, instead of libc networking functions */
|
| 297 |
+
# define _SYS_MBUF_H /* m_len define clashes with curl */
|
| 298 |
+
# include <proto/bsdsocket.h>
|
| 299 |
+
# ifdef __amigaos4__
|
| 300 |
+
int Curl_amiga_select(int nfds, fd_set *readfds, fd_set *writefds,
|
| 301 |
+
fd_set *errorfds, struct timeval *timeout);
|
| 302 |
+
# define select(a,b,c,d,e) Curl_amiga_select(a,b,c,d,e)
|
| 303 |
+
# else
|
| 304 |
+
# define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
|
| 305 |
+
# endif
|
| 306 |
+
/* must not use libc's fcntl() on bsdsocket.library sockfds! */
|
| 307 |
+
# undef HAVE_FCNTL
|
| 308 |
+
# undef HAVE_FCNTL_O_NONBLOCK
|
| 309 |
+
# else
|
| 310 |
+
/* use libc networking and hence close() and fnctl() */
|
| 311 |
+
# undef HAVE_CLOSESOCKET_CAMEL
|
| 312 |
+
# undef HAVE_IOCTLSOCKET_CAMEL
|
| 313 |
+
# endif
|
| 314 |
+
/*
|
| 315 |
+
* In clib2 arpa/inet.h warns that some prototypes may clash
|
| 316 |
+
* with bsdsocket.library. This avoids the definition of those.
|
| 317 |
+
*/
|
| 318 |
+
# define __NO_NET_API
|
| 319 |
+
#endif
|
| 320 |
+
|
| 321 |
+
#include <stdio.h>
|
| 322 |
+
#include <assert.h>
|
| 323 |
+
|
| 324 |
+
#ifdef __TANDEM /* for ns*-tandem-nsk systems */
|
| 325 |
+
# if ! defined __LP64
|
| 326 |
+
# include <floss.h> /* FLOSS is only used for 32-bit builds. */
|
| 327 |
+
# endif
|
| 328 |
+
#endif
|
| 329 |
+
|
| 330 |
+
#ifndef STDC_HEADERS /* no standard C headers! */
|
| 331 |
+
#include <curl/stdcheaders.h>
|
| 332 |
+
#endif
|
| 333 |
+
|
| 334 |
+
#ifdef __POCC__
|
| 335 |
+
# include <sys/types.h>
|
| 336 |
+
# include <unistd.h>
|
| 337 |
+
# define sys_nerr EILSEQ
|
| 338 |
+
#endif
|
| 339 |
+
|
| 340 |
+
/*
|
| 341 |
+
* Salford-C kludge section (mostly borrowed from wxWidgets).
|
| 342 |
+
*/
|
| 343 |
+
#ifdef __SALFORDC__
|
| 344 |
+
#pragma suppress 353 /* Possible nested comments */
|
| 345 |
+
#pragma suppress 593 /* Define not used */
|
| 346 |
+
#pragma suppress 61 /* enum has no name */
|
| 347 |
+
#pragma suppress 106 /* unnamed, unused parameter */
|
| 348 |
+
#include <clib.h>
|
| 349 |
+
#endif
|
| 350 |
+
|
| 351 |
+
/*
|
| 352 |
+
* Large file (>2Gb) support using WIN32 functions.
|
| 353 |
+
*/
|
| 354 |
+
|
| 355 |
+
#ifdef USE_WIN32_LARGE_FILES
|
| 356 |
+
# include <io.h>
|
| 357 |
+
# include <sys/types.h>
|
| 358 |
+
# include <sys/stat.h>
|
| 359 |
+
# undef lseek
|
| 360 |
+
# define lseek(fdes,offset,whence) _lseeki64(fdes, offset, whence)
|
| 361 |
+
# undef fstat
|
| 362 |
+
# define fstat(fdes,stp) _fstati64(fdes, stp)
|
| 363 |
+
# undef stat
|
| 364 |
+
# define stat(fname,stp) curlx_win32_stat(fname, stp)
|
| 365 |
+
# define struct_stat struct _stati64
|
| 366 |
+
# define LSEEK_ERROR (__int64)-1
|
| 367 |
+
# define open curlx_win32_open
|
| 368 |
+
# define fopen(fname,mode) curlx_win32_fopen(fname, mode)
|
| 369 |
+
# define access(fname,mode) curlx_win32_access(fname, mode)
|
| 370 |
+
int curlx_win32_open(const char *filename, int oflag, ...);
|
| 371 |
+
int curlx_win32_stat(const char *path, struct_stat *buffer);
|
| 372 |
+
FILE *curlx_win32_fopen(const char *filename, const char *mode);
|
| 373 |
+
int curlx_win32_access(const char *path, int mode);
|
| 374 |
+
#endif
|
| 375 |
+
|
| 376 |
+
/*
|
| 377 |
+
* Small file (<2Gb) support using WIN32 functions.
|
| 378 |
+
*/
|
| 379 |
+
|
| 380 |
+
#ifdef USE_WIN32_SMALL_FILES
|
| 381 |
+
# include <io.h>
|
| 382 |
+
# include <sys/types.h>
|
| 383 |
+
# include <sys/stat.h>
|
| 384 |
+
# ifndef _WIN32_WCE
|
| 385 |
+
# undef lseek
|
| 386 |
+
# define lseek(fdes,offset,whence) _lseek(fdes, (long)offset, whence)
|
| 387 |
+
# define fstat(fdes,stp) _fstat(fdes, stp)
|
| 388 |
+
# define stat(fname,stp) curlx_win32_stat(fname, stp)
|
| 389 |
+
# define struct_stat struct _stat
|
| 390 |
+
# define open curlx_win32_open
|
| 391 |
+
# define fopen(fname,mode) curlx_win32_fopen(fname, mode)
|
| 392 |
+
# define access(fname,mode) curlx_win32_access(fname, mode)
|
| 393 |
+
int curlx_win32_stat(const char *path, struct_stat *buffer);
|
| 394 |
+
int curlx_win32_open(const char *filename, int oflag, ...);
|
| 395 |
+
FILE *curlx_win32_fopen(const char *filename, const char *mode);
|
| 396 |
+
int curlx_win32_access(const char *path, int mode);
|
| 397 |
+
# endif
|
| 398 |
+
# define LSEEK_ERROR (long)-1
|
| 399 |
+
#endif
|
| 400 |
+
|
| 401 |
+
#ifndef struct_stat
|
| 402 |
+
# define struct_stat struct stat
|
| 403 |
+
#endif
|
| 404 |
+
|
| 405 |
+
#ifndef LSEEK_ERROR
|
| 406 |
+
# define LSEEK_ERROR (off_t)-1
|
| 407 |
+
#endif
|
| 408 |
+
|
| 409 |
+
#ifndef SIZEOF_TIME_T
|
| 410 |
+
/* assume default size of time_t to be 32 bit */
|
| 411 |
+
#define SIZEOF_TIME_T 4
|
| 412 |
+
#endif
|
| 413 |
+
|
| 414 |
+
/*
|
| 415 |
+
* Default sizeof(off_t) in case it hasn't been defined in config file.
|
| 416 |
+
*/
|
| 417 |
+
|
| 418 |
+
#ifndef SIZEOF_OFF_T
|
| 419 |
+
# if defined(__VMS) && !defined(__VAX)
|
| 420 |
+
# if defined(_LARGEFILE)
|
| 421 |
+
# define SIZEOF_OFF_T 8
|
| 422 |
+
# endif
|
| 423 |
+
# elif defined(__OS400__) && defined(__ILEC400__)
|
| 424 |
+
# if defined(_LARGE_FILES)
|
| 425 |
+
# define SIZEOF_OFF_T 8
|
| 426 |
+
# endif
|
| 427 |
+
# elif defined(__MVS__) && defined(__IBMC__)
|
| 428 |
+
# if defined(_LP64) || defined(_LARGE_FILES)
|
| 429 |
+
# define SIZEOF_OFF_T 8
|
| 430 |
+
# endif
|
| 431 |
+
# elif defined(__370__) && defined(__IBMC__)
|
| 432 |
+
# if defined(_LP64) || defined(_LARGE_FILES)
|
| 433 |
+
# define SIZEOF_OFF_T 8
|
| 434 |
+
# endif
|
| 435 |
+
# endif
|
| 436 |
+
# ifndef SIZEOF_OFF_T
|
| 437 |
+
# define SIZEOF_OFF_T 4
|
| 438 |
+
# endif
|
| 439 |
+
#endif
|
| 440 |
+
|
| 441 |
+
#if (SIZEOF_CURL_OFF_T < 8)
|
| 442 |
+
#error "too small curl_off_t"
|
| 443 |
+
#else
|
| 444 |
+
/* assume SIZEOF_CURL_OFF_T == 8 */
|
| 445 |
+
# define CURL_OFF_T_MAX CURL_OFF_T_C(0x7FFFFFFFFFFFFFFF)
|
| 446 |
+
#endif
|
| 447 |
+
#define CURL_OFF_T_MIN (-CURL_OFF_T_MAX - CURL_OFF_T_C(1))
|
| 448 |
+
|
| 449 |
+
#if (SIZEOF_TIME_T == 4)
|
| 450 |
+
# ifdef HAVE_TIME_T_UNSIGNED
|
| 451 |
+
# define TIME_T_MAX UINT_MAX
|
| 452 |
+
# define TIME_T_MIN 0
|
| 453 |
+
# else
|
| 454 |
+
# define TIME_T_MAX INT_MAX
|
| 455 |
+
# define TIME_T_MIN INT_MIN
|
| 456 |
+
# endif
|
| 457 |
+
#else
|
| 458 |
+
# ifdef HAVE_TIME_T_UNSIGNED
|
| 459 |
+
# define TIME_T_MAX 0xFFFFFFFFFFFFFFFF
|
| 460 |
+
# define TIME_T_MIN 0
|
| 461 |
+
# else
|
| 462 |
+
# define TIME_T_MAX 0x7FFFFFFFFFFFFFFF
|
| 463 |
+
# define TIME_T_MIN (-TIME_T_MAX - 1)
|
| 464 |
+
# endif
|
| 465 |
+
#endif
|
| 466 |
+
|
| 467 |
+
#ifndef SIZE_T_MAX
|
| 468 |
+
/* some limits.h headers have this defined, some don't */
|
| 469 |
+
#if defined(SIZEOF_SIZE_T) && (SIZEOF_SIZE_T > 4)
|
| 470 |
+
#define SIZE_T_MAX 18446744073709551615U
|
| 471 |
+
#else
|
| 472 |
+
#define SIZE_T_MAX 4294967295U
|
| 473 |
+
#endif
|
| 474 |
+
#endif
|
| 475 |
+
|
| 476 |
+
#ifndef SSIZE_T_MAX
|
| 477 |
+
/* some limits.h headers have this defined, some don't */
|
| 478 |
+
#if defined(SIZEOF_SIZE_T) && (SIZEOF_SIZE_T > 4)
|
| 479 |
+
#define SSIZE_T_MAX 9223372036854775807
|
| 480 |
+
#else
|
| 481 |
+
#define SSIZE_T_MAX 2147483647
|
| 482 |
+
#endif
|
| 483 |
+
#endif
|
| 484 |
+
|
| 485 |
+
/*
|
| 486 |
+
* Arg 2 type for gethostname in case it hasn't been defined in config file.
|
| 487 |
+
*/
|
| 488 |
+
|
| 489 |
+
#ifndef GETHOSTNAME_TYPE_ARG2
|
| 490 |
+
# ifdef USE_WINSOCK
|
| 491 |
+
# define GETHOSTNAME_TYPE_ARG2 int
|
| 492 |
+
# else
|
| 493 |
+
# define GETHOSTNAME_TYPE_ARG2 size_t
|
| 494 |
+
# endif
|
| 495 |
+
#endif
|
| 496 |
+
|
| 497 |
+
/* Below we define some functions. They should
|
| 498 |
+
|
| 499 |
+
4. set the SIGALRM signal timeout
|
| 500 |
+
5. set dir/file naming defines
|
| 501 |
+
*/
|
| 502 |
+
|
| 503 |
+
#ifdef WIN32
|
| 504 |
+
|
| 505 |
+
# define DIR_CHAR "\\"
|
| 506 |
+
|
| 507 |
+
#else /* WIN32 */
|
| 508 |
+
|
| 509 |
+
# ifdef MSDOS /* Watt-32 */
|
| 510 |
+
|
| 511 |
+
# include <sys/ioctl.h>
|
| 512 |
+
# define select(n,r,w,x,t) select_s(n,r,w,x,t)
|
| 513 |
+
# define ioctl(x,y,z) ioctlsocket(x,y,(char *)(z))
|
| 514 |
+
# include <tcp.h>
|
| 515 |
+
# ifdef word
|
| 516 |
+
# undef word
|
| 517 |
+
# endif
|
| 518 |
+
# ifdef byte
|
| 519 |
+
# undef byte
|
| 520 |
+
# endif
|
| 521 |
+
|
| 522 |
+
# endif /* MSDOS */
|
| 523 |
+
|
| 524 |
+
# ifdef __minix
|
| 525 |
+
/* Minix 3 versions up to at least 3.1.3 are missing these prototypes */
|
| 526 |
+
extern char *strtok_r(char *s, const char *delim, char **last);
|
| 527 |
+
extern struct tm *gmtime_r(const time_t * const timep, struct tm *tmp);
|
| 528 |
+
# endif
|
| 529 |
+
|
| 530 |
+
# define DIR_CHAR "/"
|
| 531 |
+
|
| 532 |
+
# ifndef fileno /* sunos 4 have this as a macro! */
|
| 533 |
+
int fileno(FILE *stream);
|
| 534 |
+
# endif
|
| 535 |
+
|
| 536 |
+
#endif /* WIN32 */
|
| 537 |
+
|
| 538 |
+
/*
|
| 539 |
+
* msvc 6.0 requires PSDK in order to have INET6_ADDRSTRLEN
|
| 540 |
+
* defined in ws2tcpip.h as well as to provide IPv6 support.
|
| 541 |
+
* Does not apply if lwIP is used.
|
| 542 |
+
*/
|
| 543 |
+
|
| 544 |
+
#if defined(_MSC_VER) && !defined(__POCC__) && !defined(USE_LWIPSOCK)
|
| 545 |
+
# if !defined(HAVE_WS2TCPIP_H) || \
|
| 546 |
+
((_MSC_VER < 1300) && !defined(INET6_ADDRSTRLEN))
|
| 547 |
+
# undef HAVE_GETADDRINFO_THREADSAFE
|
| 548 |
+
# undef HAVE_FREEADDRINFO
|
| 549 |
+
# undef HAVE_GETADDRINFO
|
| 550 |
+
# undef ENABLE_IPV6
|
| 551 |
+
# endif
|
| 552 |
+
#endif
|
| 553 |
+
|
| 554 |
+
/* ---------------------------------------------------------------- */
|
| 555 |
+
/* resolver specialty compile-time defines */
|
| 556 |
+
/* CURLRES_* defines to use in the host*.c sources */
|
| 557 |
+
/* ---------------------------------------------------------------- */
|
| 558 |
+
|
| 559 |
+
/*
|
| 560 |
+
* lcc-win32 doesn't have _beginthreadex(), lacks threads support.
|
| 561 |
+
*/
|
| 562 |
+
|
| 563 |
+
#if defined(__LCC__) && defined(WIN32)
|
| 564 |
+
# undef USE_THREADS_POSIX
|
| 565 |
+
# undef USE_THREADS_WIN32
|
| 566 |
+
#endif
|
| 567 |
+
|
| 568 |
+
/*
|
| 569 |
+
* MSVC threads support requires a multi-threaded runtime library.
|
| 570 |
+
* _beginthreadex() is not available in single-threaded ones.
|
| 571 |
+
*/
|
| 572 |
+
|
| 573 |
+
#if defined(_MSC_VER) && !defined(__POCC__) && !defined(_MT)
|
| 574 |
+
# undef USE_THREADS_POSIX
|
| 575 |
+
# undef USE_THREADS_WIN32
|
| 576 |
+
#endif
|
| 577 |
+
|
| 578 |
+
/*
|
| 579 |
+
* Mutually exclusive CURLRES_* definitions.
|
| 580 |
+
*/
|
| 581 |
+
|
| 582 |
+
#if defined(ENABLE_IPV6) && defined(HAVE_GETADDRINFO)
|
| 583 |
+
# define CURLRES_IPV6
|
| 584 |
+
#else
|
| 585 |
+
# define CURLRES_IPV4
|
| 586 |
+
#endif
|
| 587 |
+
|
| 588 |
+
#ifdef USE_ARES
|
| 589 |
+
# define CURLRES_ASYNCH
|
| 590 |
+
# define CURLRES_ARES
|
| 591 |
+
/* now undef the stock libc functions just to avoid them being used */
|
| 592 |
+
# undef HAVE_GETADDRINFO
|
| 593 |
+
# undef HAVE_FREEADDRINFO
|
| 594 |
+
#elif defined(USE_THREADS_POSIX) || defined(USE_THREADS_WIN32)
|
| 595 |
+
# define CURLRES_ASYNCH
|
| 596 |
+
# define CURLRES_THREADED
|
| 597 |
+
#else
|
| 598 |
+
# define CURLRES_SYNCH
|
| 599 |
+
#endif
|
| 600 |
+
|
| 601 |
+
/* ---------------------------------------------------------------- */
|
| 602 |
+
|
| 603 |
+
/*
|
| 604 |
+
* msvc 6.0 does not have struct sockaddr_storage and
|
| 605 |
+
* does not define IPPROTO_ESP in winsock2.h. But both
|
| 606 |
+
* are available if PSDK is properly installed.
|
| 607 |
+
*/
|
| 608 |
+
|
| 609 |
+
#if defined(_MSC_VER) && !defined(__POCC__)
|
| 610 |
+
# if !defined(HAVE_WINSOCK2_H) || ((_MSC_VER < 1300) && !defined(IPPROTO_ESP))
|
| 611 |
+
# undef HAVE_STRUCT_SOCKADDR_STORAGE
|
| 612 |
+
# endif
|
| 613 |
+
#endif
|
| 614 |
+
|
| 615 |
+
/*
|
| 616 |
+
* Intentionally fail to build when using msvc 6.0 without PSDK installed.
|
| 617 |
+
* The brave of heart can circumvent this, defining ALLOW_MSVC6_WITHOUT_PSDK
|
| 618 |
+
* in lib/config-win32.h although absolutely discouraged and unsupported.
|
| 619 |
+
*/
|
| 620 |
+
|
| 621 |
+
#if defined(_MSC_VER) && !defined(__POCC__)
|
| 622 |
+
# if !defined(HAVE_WINDOWS_H) || ((_MSC_VER < 1300) && !defined(_FILETIME_))
|
| 623 |
+
# if !defined(ALLOW_MSVC6_WITHOUT_PSDK)
|
| 624 |
+
# error MSVC 6.0 requires "February 2003 Platform SDK" a.k.a. \
|
| 625 |
+
"Windows Server 2003 PSDK"
|
| 626 |
+
# else
|
| 627 |
+
# define CURL_DISABLE_LDAP 1
|
| 628 |
+
# endif
|
| 629 |
+
# endif
|
| 630 |
+
#endif
|
| 631 |
+
|
| 632 |
+
#if defined(HAVE_LIBIDN2) && defined(HAVE_IDN2_H) && !defined(USE_WIN32_IDN)
|
| 633 |
+
/* The lib and header are present */
|
| 634 |
+
#define USE_LIBIDN2
|
| 635 |
+
#endif
|
| 636 |
+
|
| 637 |
+
#if defined(USE_LIBIDN2) && defined(USE_WIN32_IDN)
|
| 638 |
+
#error "Both libidn2 and WinIDN are enabled, choose one."
|
| 639 |
+
#endif
|
| 640 |
+
|
| 641 |
+
#define LIBIDN_REQUIRED_VERSION "0.4.1"
|
| 642 |
+
|
| 643 |
+
#if defined(USE_GNUTLS) || defined(USE_OPENSSL) || defined(USE_MBEDTLS) || \
|
| 644 |
+
defined(USE_WOLFSSL) || defined(USE_SCHANNEL) || defined(USE_SECTRANSP) || \
|
| 645 |
+
defined(USE_BEARSSL) || defined(USE_RUSTLS)
|
| 646 |
+
#define USE_SSL /* SSL support has been enabled */
|
| 647 |
+
#endif
|
| 648 |
+
|
| 649 |
+
/* Single point where USE_SPNEGO definition might be defined */
|
| 650 |
+
#if !defined(CURL_DISABLE_NEGOTIATE_AUTH) && \
|
| 651 |
+
(defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI))
|
| 652 |
+
#define USE_SPNEGO
|
| 653 |
+
#endif
|
| 654 |
+
|
| 655 |
+
/* Single point where USE_KERBEROS5 definition might be defined */
|
| 656 |
+
#if !defined(CURL_DISABLE_KERBEROS_AUTH) && \
|
| 657 |
+
(defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI))
|
| 658 |
+
#define USE_KERBEROS5
|
| 659 |
+
#endif
|
| 660 |
+
|
| 661 |
+
/* Single point where USE_NTLM definition might be defined */
|
| 662 |
+
#if !defined(CURL_DISABLE_NTLM)
|
| 663 |
+
# if defined(USE_OPENSSL) || defined(USE_MBEDTLS) || \
|
| 664 |
+
defined(USE_GNUTLS) || defined(USE_SECTRANSP) || \
|
| 665 |
+
defined(USE_OS400CRYPTO) || defined(USE_WIN32_CRYPTO) || \
|
| 666 |
+
(defined(USE_WOLFSSL) && defined(HAVE_WOLFSSL_DES_ECB_ENCRYPT))
|
| 667 |
+
# define USE_CURL_NTLM_CORE
|
| 668 |
+
# endif
|
| 669 |
+
# if defined(USE_CURL_NTLM_CORE) || defined(USE_WINDOWS_SSPI)
|
| 670 |
+
# define USE_NTLM
|
| 671 |
+
# endif
|
| 672 |
+
#endif
|
| 673 |
+
|
| 674 |
+
#ifdef CURL_WANTS_CA_BUNDLE_ENV
|
| 675 |
+
#error "No longer supported. Set CURLOPT_CAINFO at runtime instead."
|
| 676 |
+
#endif
|
| 677 |
+
|
| 678 |
+
#if defined(USE_LIBSSH2) || defined(USE_LIBSSH) || defined(USE_WOLFSSH)
|
| 679 |
+
#define USE_SSH
|
| 680 |
+
#endif
|
| 681 |
+
|
| 682 |
+
/*
|
| 683 |
+
* Provide a mechanism to silence picky compilers, such as gcc 4.6+.
|
| 684 |
+
* Parameters should of course normally not be unused, but for example when
|
| 685 |
+
* we have multiple implementations of the same interface it may happen.
|
| 686 |
+
*/
|
| 687 |
+
|
| 688 |
+
#if defined(__GNUC__) && ((__GNUC__ >= 3) || \
|
| 689 |
+
((__GNUC__ == 2) && defined(__GNUC_MINOR__) && (__GNUC_MINOR__ >= 7)))
|
| 690 |
+
# define UNUSED_PARAM __attribute__((__unused__))
|
| 691 |
+
# define WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
| 692 |
+
#else
|
| 693 |
+
# define UNUSED_PARAM /* NOTHING */
|
| 694 |
+
# define WARN_UNUSED_RESULT
|
| 695 |
+
#endif
|
| 696 |
+
|
| 697 |
+
/*
|
| 698 |
+
* Include macros and defines that should only be processed once.
|
| 699 |
+
*/
|
| 700 |
+
|
| 701 |
+
#ifndef HEADER_CURL_SETUP_ONCE_H
|
| 702 |
+
#include "curl_setup_once.h"
|
| 703 |
+
#endif
|
| 704 |
+
|
| 705 |
+
/*
|
| 706 |
+
* Definition of our NOP statement Object-like macro
|
| 707 |
+
*/
|
| 708 |
+
|
| 709 |
+
#ifndef Curl_nop_stmt
|
| 710 |
+
# define Curl_nop_stmt do { } while(0)
|
| 711 |
+
#endif
|
| 712 |
+
|
| 713 |
+
/*
|
| 714 |
+
* Ensure that Winsock and lwIP TCP/IP stacks are not mixed.
|
| 715 |
+
*/
|
| 716 |
+
|
| 717 |
+
#if defined(__LWIP_OPT_H__) || defined(LWIP_HDR_OPT_H)
|
| 718 |
+
# if defined(SOCKET) || \
|
| 719 |
+
defined(USE_WINSOCK) || \
|
| 720 |
+
defined(HAVE_WINSOCK2_H) || \
|
| 721 |
+
defined(HAVE_WS2TCPIP_H)
|
| 722 |
+
# error "WinSock and lwIP TCP/IP stack definitions shall not coexist!"
|
| 723 |
+
# endif
|
| 724 |
+
#endif
|
| 725 |
+
|
| 726 |
+
/*
|
| 727 |
+
* shutdown() flags for systems that don't define them
|
| 728 |
+
*/
|
| 729 |
+
|
| 730 |
+
#ifndef SHUT_RD
|
| 731 |
+
#define SHUT_RD 0x00
|
| 732 |
+
#endif
|
| 733 |
+
|
| 734 |
+
#ifndef SHUT_WR
|
| 735 |
+
#define SHUT_WR 0x01
|
| 736 |
+
#endif
|
| 737 |
+
|
| 738 |
+
#ifndef SHUT_RDWR
|
| 739 |
+
#define SHUT_RDWR 0x02
|
| 740 |
+
#endif
|
| 741 |
+
|
| 742 |
+
/* Define S_ISREG if not defined by system headers, e.g. MSVC */
|
| 743 |
+
#if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG)
|
| 744 |
+
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
| 745 |
+
#endif
|
| 746 |
+
|
| 747 |
+
/* Define S_ISDIR if not defined by system headers, e.g. MSVC */
|
| 748 |
+
#if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR)
|
| 749 |
+
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
| 750 |
+
#endif
|
| 751 |
+
|
| 752 |
+
/* In Windows the default file mode is text but an application can override it.
|
| 753 |
+
Therefore we specify it explicitly. https://github.com/curl/curl/pull/258
|
| 754 |
+
*/
|
| 755 |
+
#if defined(WIN32) || defined(MSDOS)
|
| 756 |
+
#define FOPEN_READTEXT "rt"
|
| 757 |
+
#define FOPEN_WRITETEXT "wt"
|
| 758 |
+
#define FOPEN_APPENDTEXT "at"
|
| 759 |
+
#elif defined(__CYGWIN__)
|
| 760 |
+
/* Cygwin has specific behavior we need to address when WIN32 is not defined.
|
| 761 |
+
https://cygwin.com/cygwin-ug-net/using-textbinary.html
|
| 762 |
+
For write we want our output to have line endings of LF and be compatible with
|
| 763 |
+
other Cygwin utilities. For read we want to handle input that may have line
|
| 764 |
+
endings either CRLF or LF so 't' is appropriate.
|
| 765 |
+
*/
|
| 766 |
+
#define FOPEN_READTEXT "rt"
|
| 767 |
+
#define FOPEN_WRITETEXT "w"
|
| 768 |
+
#define FOPEN_APPENDTEXT "a"
|
| 769 |
+
#else
|
| 770 |
+
#define FOPEN_READTEXT "r"
|
| 771 |
+
#define FOPEN_WRITETEXT "w"
|
| 772 |
+
#define FOPEN_APPENDTEXT "a"
|
| 773 |
+
#endif
|
| 774 |
+
|
| 775 |
+
/* for systems that don't detect this in configure */
|
| 776 |
+
#ifndef CURL_SA_FAMILY_T
|
| 777 |
+
# if defined(HAVE_SA_FAMILY_T)
|
| 778 |
+
# define CURL_SA_FAMILY_T sa_family_t
|
| 779 |
+
# elif defined(HAVE_ADDRESS_FAMILY)
|
| 780 |
+
# define CURL_SA_FAMILY_T ADDRESS_FAMILY
|
| 781 |
+
# else
|
| 782 |
+
/* use a sensible default */
|
| 783 |
+
# define CURL_SA_FAMILY_T unsigned short
|
| 784 |
+
# endif
|
| 785 |
+
#endif
|
| 786 |
+
|
| 787 |
+
/* Some convenience macros to get the larger/smaller value out of two given.
|
| 788 |
+
We prefix with CURL to prevent name collisions. */
|
| 789 |
+
#define CURLMAX(x,y) ((x)>(y)?(x):(y))
|
| 790 |
+
#define CURLMIN(x,y) ((x)<(y)?(x):(y))
|
| 791 |
+
|
| 792 |
+
/* A convenience macro to provide both the string literal and the length of
|
| 793 |
+
the string literal in one go, useful for functions that take "string,len"
|
| 794 |
+
as their argument */
|
| 795 |
+
#define STRCONST(x) x,sizeof(x)-1
|
| 796 |
+
|
| 797 |
+
/* Some versions of the Android SDK is missing the declaration */
|
| 798 |
+
#if defined(HAVE_GETPWUID_R) && defined(HAVE_DECL_GETPWUID_R_MISSING)
|
| 799 |
+
struct passwd;
|
| 800 |
+
int getpwuid_r(uid_t uid, struct passwd *pwd, char *buf,
|
| 801 |
+
size_t buflen, struct passwd **result);
|
| 802 |
+
#endif
|
| 803 |
+
|
| 804 |
+
#ifdef DEBUGBUILD
|
| 805 |
+
#define UNITTEST
|
| 806 |
+
#else
|
| 807 |
+
#define UNITTEST static
|
| 808 |
+
#endif
|
| 809 |
+
|
| 810 |
+
#if defined(USE_NGHTTP2) || defined(USE_HYPER)
|
| 811 |
+
#define USE_HTTP2
|
| 812 |
+
#endif
|
| 813 |
+
|
| 814 |
+
#if (defined(USE_NGTCP2) && defined(USE_NGHTTP3)) || \
|
| 815 |
+
defined(USE_QUICHE) || defined(USE_MSH3)
|
| 816 |
+
#define ENABLE_QUIC
|
| 817 |
+
#define USE_HTTP3
|
| 818 |
+
#endif
|
| 819 |
+
|
| 820 |
+
/* Certain Windows implementations are not aligned with what curl expects,
|
| 821 |
+
so always use the local one on this platform. E.g. the mingw-w64
|
| 822 |
+
implementation can return wrong results for non-ASCII inputs. */
|
| 823 |
+
#if defined(HAVE_BASENAME) && defined(WIN32)
|
| 824 |
+
#undef HAVE_BASENAME
|
| 825 |
+
#endif
|
| 826 |
+
|
| 827 |
+
#if defined(USE_UNIX_SOCKETS) && defined(WIN32)
|
| 828 |
+
# if !defined(UNIX_PATH_MAX)
|
| 829 |
+
/* Replicating logic present in afunix.h
|
| 830 |
+
(distributed with newer Windows 10 SDK versions only) */
|
| 831 |
+
# define UNIX_PATH_MAX 108
|
| 832 |
+
/* !checksrc! disable TYPEDEFSTRUCT 1 */
|
| 833 |
+
typedef struct sockaddr_un {
|
| 834 |
+
ADDRESS_FAMILY sun_family;
|
| 835 |
+
char sun_path[UNIX_PATH_MAX];
|
| 836 |
+
} SOCKADDR_UN, *PSOCKADDR_UN;
|
| 837 |
+
# define WIN32_SOCKADDR_UN
|
| 838 |
+
# endif
|
| 839 |
+
#endif
|
| 840 |
+
|
| 841 |
+
/* OpenSSLv3 marks DES, MD5 and ENGINE functions deprecated but we have no
|
| 842 |
+
replacements (yet) so tell the compiler to not warn for them. */
|
| 843 |
+
#ifdef USE_OPENSSL
|
| 844 |
+
#define OPENSSL_SUPPRESS_DEPRECATED
|
| 845 |
+
#endif
|
| 846 |
+
|
| 847 |
+
#endif /* HEADER_CURL_SETUP_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_setup_once.h
ADDED
|
@@ -0,0 +1,422 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_SETUP_ONCE_H
|
| 2 |
+
#define HEADER_CURL_SETUP_ONCE_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
/*
|
| 29 |
+
* Inclusion of common header files.
|
| 30 |
+
*/
|
| 31 |
+
|
| 32 |
+
#include <stdio.h>
|
| 33 |
+
#include <stdlib.h>
|
| 34 |
+
#include <string.h>
|
| 35 |
+
#include <stdarg.h>
|
| 36 |
+
#include <time.h>
|
| 37 |
+
#include <errno.h>
|
| 38 |
+
|
| 39 |
+
#ifdef HAVE_SYS_TYPES_H
|
| 40 |
+
#include <sys/types.h>
|
| 41 |
+
#endif
|
| 42 |
+
|
| 43 |
+
#ifdef NEED_MALLOC_H
|
| 44 |
+
#include <malloc.h>
|
| 45 |
+
#endif
|
| 46 |
+
|
| 47 |
+
#ifdef NEED_MEMORY_H
|
| 48 |
+
#include <memory.h>
|
| 49 |
+
#endif
|
| 50 |
+
|
| 51 |
+
#ifdef HAVE_SYS_STAT_H
|
| 52 |
+
#include <sys/stat.h>
|
| 53 |
+
#endif
|
| 54 |
+
|
| 55 |
+
#ifdef HAVE_SYS_TIME_H
|
| 56 |
+
#include <sys/time.h>
|
| 57 |
+
#endif
|
| 58 |
+
|
| 59 |
+
#ifdef WIN32
|
| 60 |
+
#include <io.h>
|
| 61 |
+
#include <fcntl.h>
|
| 62 |
+
#endif
|
| 63 |
+
|
| 64 |
+
#if defined(HAVE_STDBOOL_H) && defined(HAVE_BOOL_T)
|
| 65 |
+
#include <stdbool.h>
|
| 66 |
+
#endif
|
| 67 |
+
|
| 68 |
+
#ifdef HAVE_UNISTD_H
|
| 69 |
+
#include <unistd.h>
|
| 70 |
+
#endif
|
| 71 |
+
|
| 72 |
+
#ifdef USE_WOLFSSL
|
| 73 |
+
# if defined(HAVE_STDINT_H)
|
| 74 |
+
# include <stdint.h>
|
| 75 |
+
# elif defined(HAVE_INTTYPES_H)
|
| 76 |
+
# include <inttypes.h>
|
| 77 |
+
# endif
|
| 78 |
+
#endif
|
| 79 |
+
|
| 80 |
+
#ifdef USE_SCHANNEL
|
| 81 |
+
/* Must set this before <schannel.h> is included directly or indirectly by
|
| 82 |
+
another Windows header. */
|
| 83 |
+
# define SCHANNEL_USE_BLACKLISTS 1
|
| 84 |
+
#endif
|
| 85 |
+
|
| 86 |
+
#ifdef __hpux
|
| 87 |
+
# if !defined(_XOPEN_SOURCE_EXTENDED) || defined(_KERNEL)
|
| 88 |
+
# ifdef _APP32_64BIT_OFF_T
|
| 89 |
+
# define OLD_APP32_64BIT_OFF_T _APP32_64BIT_OFF_T
|
| 90 |
+
# undef _APP32_64BIT_OFF_T
|
| 91 |
+
# else
|
| 92 |
+
# undef OLD_APP32_64BIT_OFF_T
|
| 93 |
+
# endif
|
| 94 |
+
# endif
|
| 95 |
+
#endif
|
| 96 |
+
|
| 97 |
+
#ifdef HAVE_SYS_SOCKET_H
|
| 98 |
+
#include <sys/socket.h>
|
| 99 |
+
#endif
|
| 100 |
+
|
| 101 |
+
#include "functypes.h"
|
| 102 |
+
|
| 103 |
+
#ifdef __hpux
|
| 104 |
+
# if !defined(_XOPEN_SOURCE_EXTENDED) || defined(_KERNEL)
|
| 105 |
+
# ifdef OLD_APP32_64BIT_OFF_T
|
| 106 |
+
# define _APP32_64BIT_OFF_T OLD_APP32_64BIT_OFF_T
|
| 107 |
+
# undef OLD_APP32_64BIT_OFF_T
|
| 108 |
+
# endif
|
| 109 |
+
# endif
|
| 110 |
+
#endif
|
| 111 |
+
|
| 112 |
+
/*
|
| 113 |
+
* Definition of timeval struct for platforms that don't have it.
|
| 114 |
+
*/
|
| 115 |
+
|
| 116 |
+
#ifndef HAVE_STRUCT_TIMEVAL
|
| 117 |
+
struct timeval {
|
| 118 |
+
long tv_sec;
|
| 119 |
+
long tv_usec;
|
| 120 |
+
};
|
| 121 |
+
#endif
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
/*
|
| 125 |
+
* If we have the MSG_NOSIGNAL define, make sure we use
|
| 126 |
+
* it as the fourth argument of function send()
|
| 127 |
+
*/
|
| 128 |
+
|
| 129 |
+
#ifdef HAVE_MSG_NOSIGNAL
|
| 130 |
+
#define SEND_4TH_ARG MSG_NOSIGNAL
|
| 131 |
+
#else
|
| 132 |
+
#define SEND_4TH_ARG 0
|
| 133 |
+
#endif
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
#if defined(__minix)
|
| 137 |
+
/* Minix doesn't support recv on TCP sockets */
|
| 138 |
+
#define sread(x,y,z) (ssize_t)read((RECV_TYPE_ARG1)(x), \
|
| 139 |
+
(RECV_TYPE_ARG2)(y), \
|
| 140 |
+
(RECV_TYPE_ARG3)(z))
|
| 141 |
+
|
| 142 |
+
#elif defined(HAVE_RECV)
|
| 143 |
+
/*
|
| 144 |
+
* The definitions for the return type and arguments types
|
| 145 |
+
* of functions recv() and send() belong and come from the
|
| 146 |
+
* configuration file. Do not define them in any other place.
|
| 147 |
+
*
|
| 148 |
+
* HAVE_RECV is defined if you have a function named recv()
|
| 149 |
+
* which is used to read incoming data from sockets. If your
|
| 150 |
+
* function has another name then don't define HAVE_RECV.
|
| 151 |
+
*
|
| 152 |
+
* If HAVE_RECV is defined then RECV_TYPE_ARG1, RECV_TYPE_ARG2,
|
| 153 |
+
* RECV_TYPE_ARG3, RECV_TYPE_ARG4 and RECV_TYPE_RETV must also
|
| 154 |
+
* be defined.
|
| 155 |
+
*
|
| 156 |
+
* HAVE_SEND is defined if you have a function named send()
|
| 157 |
+
* which is used to write outgoing data on a connected socket.
|
| 158 |
+
* If yours has another name then don't define HAVE_SEND.
|
| 159 |
+
*
|
| 160 |
+
* If HAVE_SEND is defined then SEND_TYPE_ARG1, SEND_QUAL_ARG2,
|
| 161 |
+
* SEND_TYPE_ARG2, SEND_TYPE_ARG3, SEND_TYPE_ARG4 and
|
| 162 |
+
* SEND_TYPE_RETV must also be defined.
|
| 163 |
+
*/
|
| 164 |
+
|
| 165 |
+
#define sread(x,y,z) (ssize_t)recv((RECV_TYPE_ARG1)(x), \
|
| 166 |
+
(RECV_TYPE_ARG2)(y), \
|
| 167 |
+
(RECV_TYPE_ARG3)(z), \
|
| 168 |
+
(RECV_TYPE_ARG4)(0))
|
| 169 |
+
#else /* HAVE_RECV */
|
| 170 |
+
#ifndef sread
|
| 171 |
+
/* */
|
| 172 |
+
Error Missing_definition_of_macro_sread
|
| 173 |
+
/* */
|
| 174 |
+
#endif
|
| 175 |
+
#endif /* HAVE_RECV */
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
#if defined(__minix)
|
| 179 |
+
/* Minix doesn't support send on TCP sockets */
|
| 180 |
+
#define swrite(x,y,z) (ssize_t)write((SEND_TYPE_ARG1)(x), \
|
| 181 |
+
(SEND_TYPE_ARG2)(y), \
|
| 182 |
+
(SEND_TYPE_ARG3)(z))
|
| 183 |
+
|
| 184 |
+
#elif defined(HAVE_SEND)
|
| 185 |
+
#define swrite(x,y,z) (ssize_t)send((SEND_TYPE_ARG1)(x), \
|
| 186 |
+
(SEND_QUAL_ARG2 SEND_TYPE_ARG2)(y), \
|
| 187 |
+
(SEND_TYPE_ARG3)(z), \
|
| 188 |
+
(SEND_TYPE_ARG4)(SEND_4TH_ARG))
|
| 189 |
+
#else /* HAVE_SEND */
|
| 190 |
+
#ifndef swrite
|
| 191 |
+
/* */
|
| 192 |
+
Error Missing_definition_of_macro_swrite
|
| 193 |
+
/* */
|
| 194 |
+
#endif
|
| 195 |
+
#endif /* HAVE_SEND */
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
/*
|
| 199 |
+
* Function-like macro definition used to close a socket.
|
| 200 |
+
*/
|
| 201 |
+
|
| 202 |
+
#if defined(HAVE_CLOSESOCKET)
|
| 203 |
+
# define sclose(x) closesocket((x))
|
| 204 |
+
#elif defined(HAVE_CLOSESOCKET_CAMEL)
|
| 205 |
+
# define sclose(x) CloseSocket((x))
|
| 206 |
+
#elif defined(HAVE_CLOSE_S)
|
| 207 |
+
# define sclose(x) close_s((x))
|
| 208 |
+
#elif defined(USE_LWIPSOCK)
|
| 209 |
+
# define sclose(x) lwip_close((x))
|
| 210 |
+
#else
|
| 211 |
+
# define sclose(x) close((x))
|
| 212 |
+
#endif
|
| 213 |
+
|
| 214 |
+
/*
|
| 215 |
+
* Stack-independent version of fcntl() on sockets:
|
| 216 |
+
*/
|
| 217 |
+
#if defined(USE_LWIPSOCK)
|
| 218 |
+
# define sfcntl lwip_fcntl
|
| 219 |
+
#else
|
| 220 |
+
# define sfcntl fcntl
|
| 221 |
+
#endif
|
| 222 |
+
|
| 223 |
+
/*
|
| 224 |
+
* 'bool' stuff compatible with HP-UX headers.
|
| 225 |
+
*/
|
| 226 |
+
|
| 227 |
+
#if defined(__hpux) && !defined(HAVE_BOOL_T)
|
| 228 |
+
typedef int bool;
|
| 229 |
+
# define false 0
|
| 230 |
+
# define true 1
|
| 231 |
+
# define HAVE_BOOL_T
|
| 232 |
+
#endif
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
/*
|
| 236 |
+
* 'bool' exists on platforms with <stdbool.h>, i.e. C99 platforms.
|
| 237 |
+
* On non-C99 platforms there's no bool, so define an enum for that.
|
| 238 |
+
* On C99 platforms 'false' and 'true' also exist. Enum uses a
|
| 239 |
+
* global namespace though, so use bool_false and bool_true.
|
| 240 |
+
*/
|
| 241 |
+
|
| 242 |
+
#ifndef HAVE_BOOL_T
|
| 243 |
+
typedef enum {
|
| 244 |
+
bool_false = 0,
|
| 245 |
+
bool_true = 1
|
| 246 |
+
} bool;
|
| 247 |
+
|
| 248 |
+
/*
|
| 249 |
+
* Use a define to let 'true' and 'false' use those enums. There
|
| 250 |
+
* are currently no use of true and false in libcurl proper, but
|
| 251 |
+
* there are some in the examples. This will cater for any later
|
| 252 |
+
* code happening to use true and false.
|
| 253 |
+
*/
|
| 254 |
+
# define false bool_false
|
| 255 |
+
# define true bool_true
|
| 256 |
+
# define HAVE_BOOL_T
|
| 257 |
+
#endif
|
| 258 |
+
|
| 259 |
+
/* the type we use for storing a single boolean bit */
|
| 260 |
+
#ifdef _MSC_VER
|
| 261 |
+
typedef bool bit;
|
| 262 |
+
#define BIT(x) bool x
|
| 263 |
+
#else
|
| 264 |
+
typedef unsigned int bit;
|
| 265 |
+
#define BIT(x) bit x:1
|
| 266 |
+
#endif
|
| 267 |
+
|
| 268 |
+
/*
|
| 269 |
+
* Redefine TRUE and FALSE too, to catch current use. With this
|
| 270 |
+
* change, 'bool found = 1' will give a warning on MIPSPro, but
|
| 271 |
+
* 'bool found = TRUE' will not. Change tested on IRIX/MIPSPro,
|
| 272 |
+
* AIX 5.1/Xlc, Tru64 5.1/cc, w/make test too.
|
| 273 |
+
*/
|
| 274 |
+
|
| 275 |
+
#ifndef TRUE
|
| 276 |
+
#define TRUE true
|
| 277 |
+
#endif
|
| 278 |
+
#ifndef FALSE
|
| 279 |
+
#define FALSE false
|
| 280 |
+
#endif
|
| 281 |
+
|
| 282 |
+
#include "curl_ctype.h"
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
/*
|
| 286 |
+
* Macro used to include code only in debug builds.
|
| 287 |
+
*/
|
| 288 |
+
|
| 289 |
+
#ifdef DEBUGBUILD
|
| 290 |
+
#define DEBUGF(x) x
|
| 291 |
+
#else
|
| 292 |
+
#define DEBUGF(x) do { } while(0)
|
| 293 |
+
#endif
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
/*
|
| 297 |
+
* Macro used to include assertion code only in debug builds.
|
| 298 |
+
*/
|
| 299 |
+
|
| 300 |
+
#undef DEBUGASSERT
|
| 301 |
+
#if defined(DEBUGBUILD)
|
| 302 |
+
#define DEBUGASSERT(x) assert(x)
|
| 303 |
+
#else
|
| 304 |
+
#define DEBUGASSERT(x) do { } while(0)
|
| 305 |
+
#endif
|
| 306 |
+
|
| 307 |
+
|
| 308 |
+
/*
|
| 309 |
+
* Macro SOCKERRNO / SET_SOCKERRNO() returns / sets the *socket-related* errno
|
| 310 |
+
* (or equivalent) on this platform to hide platform details to code using it.
|
| 311 |
+
*/
|
| 312 |
+
|
| 313 |
+
#ifdef USE_WINSOCK
|
| 314 |
+
#define SOCKERRNO ((int)WSAGetLastError())
|
| 315 |
+
#define SET_SOCKERRNO(x) (WSASetLastError((int)(x)))
|
| 316 |
+
#else
|
| 317 |
+
#define SOCKERRNO (errno)
|
| 318 |
+
#define SET_SOCKERRNO(x) (errno = (x))
|
| 319 |
+
#endif
|
| 320 |
+
|
| 321 |
+
|
| 322 |
+
/*
|
| 323 |
+
* Portable error number symbolic names defined to Winsock error codes.
|
| 324 |
+
*/
|
| 325 |
+
|
| 326 |
+
#ifdef USE_WINSOCK
|
| 327 |
+
#undef EBADF /* override definition in errno.h */
|
| 328 |
+
#define EBADF WSAEBADF
|
| 329 |
+
#undef EINTR /* override definition in errno.h */
|
| 330 |
+
#define EINTR WSAEINTR
|
| 331 |
+
#undef EINVAL /* override definition in errno.h */
|
| 332 |
+
#define EINVAL WSAEINVAL
|
| 333 |
+
#undef EWOULDBLOCK /* override definition in errno.h */
|
| 334 |
+
#define EWOULDBLOCK WSAEWOULDBLOCK
|
| 335 |
+
#undef EINPROGRESS /* override definition in errno.h */
|
| 336 |
+
#define EINPROGRESS WSAEINPROGRESS
|
| 337 |
+
#undef EALREADY /* override definition in errno.h */
|
| 338 |
+
#define EALREADY WSAEALREADY
|
| 339 |
+
#undef ENOTSOCK /* override definition in errno.h */
|
| 340 |
+
#define ENOTSOCK WSAENOTSOCK
|
| 341 |
+
#undef EDESTADDRREQ /* override definition in errno.h */
|
| 342 |
+
#define EDESTADDRREQ WSAEDESTADDRREQ
|
| 343 |
+
#undef EMSGSIZE /* override definition in errno.h */
|
| 344 |
+
#define EMSGSIZE WSAEMSGSIZE
|
| 345 |
+
#undef EPROTOTYPE /* override definition in errno.h */
|
| 346 |
+
#define EPROTOTYPE WSAEPROTOTYPE
|
| 347 |
+
#undef ENOPROTOOPT /* override definition in errno.h */
|
| 348 |
+
#define ENOPROTOOPT WSAENOPROTOOPT
|
| 349 |
+
#undef EPROTONOSUPPORT /* override definition in errno.h */
|
| 350 |
+
#define EPROTONOSUPPORT WSAEPROTONOSUPPORT
|
| 351 |
+
#define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
|
| 352 |
+
#undef EOPNOTSUPP /* override definition in errno.h */
|
| 353 |
+
#define EOPNOTSUPP WSAEOPNOTSUPP
|
| 354 |
+
#define EPFNOSUPPORT WSAEPFNOSUPPORT
|
| 355 |
+
#undef EAFNOSUPPORT /* override definition in errno.h */
|
| 356 |
+
#define EAFNOSUPPORT WSAEAFNOSUPPORT
|
| 357 |
+
#undef EADDRINUSE /* override definition in errno.h */
|
| 358 |
+
#define EADDRINUSE WSAEADDRINUSE
|
| 359 |
+
#undef EADDRNOTAVAIL /* override definition in errno.h */
|
| 360 |
+
#define EADDRNOTAVAIL WSAEADDRNOTAVAIL
|
| 361 |
+
#undef ENETDOWN /* override definition in errno.h */
|
| 362 |
+
#define ENETDOWN WSAENETDOWN
|
| 363 |
+
#undef ENETUNREACH /* override definition in errno.h */
|
| 364 |
+
#define ENETUNREACH WSAENETUNREACH
|
| 365 |
+
#undef ENETRESET /* override definition in errno.h */
|
| 366 |
+
#define ENETRESET WSAENETRESET
|
| 367 |
+
#undef ECONNABORTED /* override definition in errno.h */
|
| 368 |
+
#define ECONNABORTED WSAECONNABORTED
|
| 369 |
+
#undef ECONNRESET /* override definition in errno.h */
|
| 370 |
+
#define ECONNRESET WSAECONNRESET
|
| 371 |
+
#undef ENOBUFS /* override definition in errno.h */
|
| 372 |
+
#define ENOBUFS WSAENOBUFS
|
| 373 |
+
#undef EISCONN /* override definition in errno.h */
|
| 374 |
+
#define EISCONN WSAEISCONN
|
| 375 |
+
#undef ENOTCONN /* override definition in errno.h */
|
| 376 |
+
#define ENOTCONN WSAENOTCONN
|
| 377 |
+
#define ESHUTDOWN WSAESHUTDOWN
|
| 378 |
+
#define ETOOMANYREFS WSAETOOMANYREFS
|
| 379 |
+
#undef ETIMEDOUT /* override definition in errno.h */
|
| 380 |
+
#define ETIMEDOUT WSAETIMEDOUT
|
| 381 |
+
#undef ECONNREFUSED /* override definition in errno.h */
|
| 382 |
+
#define ECONNREFUSED WSAECONNREFUSED
|
| 383 |
+
#undef ELOOP /* override definition in errno.h */
|
| 384 |
+
#define ELOOP WSAELOOP
|
| 385 |
+
#ifndef ENAMETOOLONG /* possible previous definition in errno.h */
|
| 386 |
+
#define ENAMETOOLONG WSAENAMETOOLONG
|
| 387 |
+
#endif
|
| 388 |
+
#define EHOSTDOWN WSAEHOSTDOWN
|
| 389 |
+
#undef EHOSTUNREACH /* override definition in errno.h */
|
| 390 |
+
#define EHOSTUNREACH WSAEHOSTUNREACH
|
| 391 |
+
#ifndef ENOTEMPTY /* possible previous definition in errno.h */
|
| 392 |
+
#define ENOTEMPTY WSAENOTEMPTY
|
| 393 |
+
#endif
|
| 394 |
+
#define EPROCLIM WSAEPROCLIM
|
| 395 |
+
#define EUSERS WSAEUSERS
|
| 396 |
+
#define EDQUOT WSAEDQUOT
|
| 397 |
+
#define ESTALE WSAESTALE
|
| 398 |
+
#define EREMOTE WSAEREMOTE
|
| 399 |
+
#endif
|
| 400 |
+
|
| 401 |
+
/*
|
| 402 |
+
* Macro argv_item_t hides platform details to code using it.
|
| 403 |
+
*/
|
| 404 |
+
|
| 405 |
+
#ifdef __VMS
|
| 406 |
+
#define argv_item_t __char_ptr32
|
| 407 |
+
#elif defined(_UNICODE)
|
| 408 |
+
#define argv_item_t wchar_t *
|
| 409 |
+
#else
|
| 410 |
+
#define argv_item_t char *
|
| 411 |
+
#endif
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
/*
|
| 415 |
+
* We use this ZERO_NULL to avoid picky compiler warnings,
|
| 416 |
+
* when assigning a NULL pointer to a function pointer var.
|
| 417 |
+
*/
|
| 418 |
+
|
| 419 |
+
#define ZERO_NULL 0
|
| 420 |
+
|
| 421 |
+
|
| 422 |
+
#endif /* HEADER_CURL_SETUP_ONCE_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_sha256.h
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_SHA256_H
|
| 2 |
+
#define HEADER_CURL_SHA256_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Florin Petriuc, <petriuc.florin@gmail.com>
|
| 11 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 12 |
+
*
|
| 13 |
+
* This software is licensed as described in the file COPYING, which
|
| 14 |
+
* you should have received as part of this distribution. The terms
|
| 15 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 16 |
+
*
|
| 17 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 18 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 19 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 20 |
+
*
|
| 21 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 22 |
+
* KIND, either express or implied.
|
| 23 |
+
*
|
| 24 |
+
* SPDX-License-Identifier: curl
|
| 25 |
+
*
|
| 26 |
+
***************************************************************************/
|
| 27 |
+
|
| 28 |
+
#if !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH) \
|
| 29 |
+
|| defined(USE_LIBSSH2)
|
| 30 |
+
|
| 31 |
+
#include <curl/curl.h>
|
| 32 |
+
#include "curl_hmac.h"
|
| 33 |
+
|
| 34 |
+
extern const struct HMAC_params Curl_HMAC_SHA256[1];
|
| 35 |
+
|
| 36 |
+
#ifdef USE_WOLFSSL
|
| 37 |
+
/* SHA256_DIGEST_LENGTH is an enum value in wolfSSL. Need to import it from
|
| 38 |
+
* sha.h */
|
| 39 |
+
#include <wolfssl/options.h>
|
| 40 |
+
#include <wolfssl/openssl/sha.h>
|
| 41 |
+
#else
|
| 42 |
+
#define SHA256_DIGEST_LENGTH 32
|
| 43 |
+
#endif
|
| 44 |
+
|
| 45 |
+
CURLcode Curl_sha256it(unsigned char *outbuffer, const unsigned char *input,
|
| 46 |
+
const size_t len);
|
| 47 |
+
|
| 48 |
+
#endif
|
| 49 |
+
|
| 50 |
+
#endif /* HEADER_CURL_SHA256_H */
|
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/external/curl/lib/curl_sspi.h
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef HEADER_CURL_SSPI_H
|
| 2 |
+
#define HEADER_CURL_SSPI_H
|
| 3 |
+
/***************************************************************************
|
| 4 |
+
* _ _ ____ _
|
| 5 |
+
* Project ___| | | | _ \| |
|
| 6 |
+
* / __| | | | |_) | |
|
| 7 |
+
* | (__| |_| | _ <| |___
|
| 8 |
+
* \___|\___/|_| \_\_____|
|
| 9 |
+
*
|
| 10 |
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 11 |
+
*
|
| 12 |
+
* This software is licensed as described in the file COPYING, which
|
| 13 |
+
* you should have received as part of this distribution. The terms
|
| 14 |
+
* are also available at https://curl.se/docs/copyright.html.
|
| 15 |
+
*
|
| 16 |
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 17 |
+
* copies of the Software, and permit persons to whom the Software is
|
| 18 |
+
* furnished to do so, under the terms of the COPYING file.
|
| 19 |
+
*
|
| 20 |
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 21 |
+
* KIND, either express or implied.
|
| 22 |
+
*
|
| 23 |
+
* SPDX-License-Identifier: curl
|
| 24 |
+
*
|
| 25 |
+
***************************************************************************/
|
| 26 |
+
|
| 27 |
+
#include "curl_setup.h"
|
| 28 |
+
|
| 29 |
+
#ifdef USE_WINDOWS_SSPI
|
| 30 |
+
|
| 31 |
+
#include <curl/curl.h>
|
| 32 |
+
|
| 33 |
+
/*
|
| 34 |
+
* When including the following three headers, it is mandatory to define either
|
| 35 |
+
* SECURITY_WIN32 or SECURITY_KERNEL, indicating who is compiling the code.
|
| 36 |
+
*/
|
| 37 |
+
|
| 38 |
+
#undef SECURITY_WIN32
|
| 39 |
+
#undef SECURITY_KERNEL
|
| 40 |
+
#define SECURITY_WIN32 1
|
| 41 |
+
#include <security.h>
|
| 42 |
+
#include <sspi.h>
|
| 43 |
+
#include <rpc.h>
|
| 44 |
+
|
| 45 |
+
CURLcode Curl_sspi_global_init(void);
|
| 46 |
+
void Curl_sspi_global_cleanup(void);
|
| 47 |
+
|
| 48 |
+
/* This is used to populate the domain in a SSPI identity structure */
|
| 49 |
+
CURLcode Curl_override_sspi_http_realm(const char *chlg,
|
| 50 |
+
SEC_WINNT_AUTH_IDENTITY *identity);
|
| 51 |
+
|
| 52 |
+
/* This is used to generate an SSPI identity structure */
|
| 53 |
+
CURLcode Curl_create_sspi_identity(const char *userp, const char *passwdp,
|
| 54 |
+
SEC_WINNT_AUTH_IDENTITY *identity);
|
| 55 |
+
|
| 56 |
+
/* This is used to free an SSPI identity structure */
|
| 57 |
+
void Curl_sspi_free_identity(SEC_WINNT_AUTH_IDENTITY *identity);
|
| 58 |
+
|
| 59 |
+
/* Forward-declaration of global variables defined in curl_sspi.c */
|
| 60 |
+
extern HMODULE s_hSecDll;
|
| 61 |
+
extern PSecurityFunctionTable s_pSecFn;
|
| 62 |
+
|
| 63 |
+
/* Provide some definitions missing in old headers */
|
| 64 |
+
#define SP_NAME_DIGEST "WDigest"
|
| 65 |
+
#define SP_NAME_NTLM "NTLM"
|
| 66 |
+
#define SP_NAME_NEGOTIATE "Negotiate"
|
| 67 |
+
#define SP_NAME_KERBEROS "Kerberos"
|
| 68 |
+
|
| 69 |
+
#ifndef ISC_REQ_USE_HTTP_STYLE
|
| 70 |
+
#define ISC_REQ_USE_HTTP_STYLE 0x01000000
|
| 71 |
+
#endif
|
| 72 |
+
|
| 73 |
+
#ifndef SEC_E_INVALID_PARAMETER
|
| 74 |
+
# define SEC_E_INVALID_PARAMETER ((HRESULT)0x8009035DL)
|
| 75 |
+
#endif
|
| 76 |
+
#ifndef SEC_E_DELEGATION_POLICY
|
| 77 |
+
# define SEC_E_DELEGATION_POLICY ((HRESULT)0x8009035EL)
|
| 78 |
+
#endif
|
| 79 |
+
#ifndef SEC_E_POLICY_NLTM_ONLY
|
| 80 |
+
# define SEC_E_POLICY_NLTM_ONLY ((HRESULT)0x8009035FL)
|
| 81 |
+
#endif
|
| 82 |
+
|
| 83 |
+
#ifndef SEC_I_SIGNATURE_NEEDED
|
| 84 |
+
# define SEC_I_SIGNATURE_NEEDED ((HRESULT)0x0009035CL)
|
| 85 |
+
#endif
|
| 86 |
+
|
| 87 |
+
#ifndef CRYPT_E_REVOKED
|
| 88 |
+
# define CRYPT_E_REVOKED ((HRESULT)0x80092010L)
|
| 89 |
+
#endif
|
| 90 |
+
|
| 91 |
+
#ifdef UNICODE
|
| 92 |
+
# define SECFLAG_WINNT_AUTH_IDENTITY \
|
| 93 |
+
(unsigned long)SEC_WINNT_AUTH_IDENTITY_UNICODE
|
| 94 |
+
#else
|
| 95 |
+
# define SECFLAG_WINNT_AUTH_IDENTITY \
|
| 96 |
+
(unsigned long)SEC_WINNT_AUTH_IDENTITY_ANSI
|
| 97 |
+
#endif
|
| 98 |
+
|
| 99 |
+
/*
|
| 100 |
+
* Definitions required from ntsecapi.h are directly provided below this point
|
| 101 |
+
* to avoid including ntsecapi.h due to a conflict with OpenSSL's safestack.h
|
| 102 |
+
*/
|
| 103 |
+
#define KERB_WRAP_NO_ENCRYPT 0x80000001
|
| 104 |
+
|
| 105 |
+
#endif /* USE_WINDOWS_SSPI */
|
| 106 |
+
|
| 107 |
+
#endif /* HEADER_CURL_SSPI_H */
|