master
1#ifndef HEADER_CURL_VTLS_CONFIG_H
2#define HEADER_CURL_VTLS_CONFIG_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"
28struct Curl_easy;
29struct connectdata;
30struct Curl_peer;
32struct ssl_filter_config {
33 char *CApath; /* certificate directory (does not work on Windows) */
34 char *CAfile; /* certificate to verify peer against */
35 char *issuercert; /* optional issuer certificate filename */
36 char *clientcert;
37 char *cipher_list; /* list of ciphers to use */
38 char *cipher_list13; /* list of TLS 1.3 cipher suites to use */
39 char *signature_algorithms; /* list of signature algorithms to use */
40 char *pinned_key;
41 char *CRLfile; /* CRL to check certificate revocation */
42 char *cert_type; /* format for certificate (default: PEM) */
43 char *key; /* private key filename */
44 char *key_type; /* format for private key (default: PEM) */
45 char *key_passwd; /* plain text private key password */
46#ifdef USE_ECH
47 char *ech_config; /* TLS ECH configuration, base64 string */
48 char *ech_public; /* TLS ECH public DNS (SNI in outer ClientHello) */
49#endif
50 struct curl_blob *cert_blob;
51 struct curl_blob *ca_info_blob;
52 struct curl_blob *issuercert_blob;
53 struct curl_blob *key_blob;
54 char *curves; /* list of curves to use */
55 uint32_t version_max; /* max supported version the client wants to use */
56 uint8_t ssl_options; /* the CURLOPT_SSL_OPTIONS bitmask */
57 uint8_t version; /* what version the client wants to use */
58#ifdef USE_ECH
59 uint8_t ech; /* TLS ECH CURLECH_((DIS|EN)ABLE|GREASE) */
60#endif
61 BIT(verifypeer); /* set TRUE if this is desired */
62 BIT(verifyhost); /* set TRUE if CN/SAN must match hostname */
63 BIT(verifystatus); /* set TRUE if certificate status must be checked */
64 BIT(native_ca_store); /* use the native CA store of operating system */
65 BIT(cache_session); /* cache session or not */
66 BIT(deep_copy); /* members are deep copies, eg. owned here */
67 BIT(earlydata); /* use TLS 1.3 early data */
68 BIT(auto_client_cert); /* automatically locate and use a client
69 certificate for authentication (Schannel) */
70 BIT(enable_beast); /* allow this flaw for interoperability's sake */
71 BIT(no_partialchain); /* do not accept partial certificate chains */
72 BIT(no_revoke); /* disable SSL certificate revocation checks */
73 BIT(revoke_best_effort); /* ignore SSL revocation offline/missing revocation
74 list errors */
75};
77struct ssl_easy_config {
78 long certverifyresult; /* result from the certificate verification */
79 uint32_t version_max; /* max supported version the client wants to use */
80 uint8_t version; /* what version the client wants to use */
81 uint8_t ssl_options; /* the CURLOPT_SSL_OPTIONS bitmask */
82#ifdef USE_ECH
83 uint8_t ech; /* TLS ECH CURLECH_((DIS|EN)ABLE|GREASE) */
84#endif
85 BIT(verifypeer); /* set TRUE if this is desired */
86 BIT(verifyhost); /* set TRUE if CN/SAN must match hostname */
87 BIT(verifystatus); /* set TRUE if certificate status must be checked */
88 BIT(cache_session); /* cache session or not */
89 BIT(certinfo); /* gather lots of certificate info */
90 BIT(custom_cafile); /* application has set custom CA file */
91 BIT(custom_capath); /* application has set custom CA path */
92 BIT(custom_cablob); /* application has set custom CA blob */
93};
95void Curl_ssl_config_init(struct ssl_easy_config *sslc);
96void Curl_ssl_config_cleanup(struct ssl_filter_config *sslc);
98/* Init the SSL filter configs *shallow* for connection matching
99 * with origin and data's configuration settings. */
100CURLcode Curl_ssl_filter_config_tmp_init(
101 struct Curl_easy *data, struct Curl_peer *origin,
102 struct ssl_filter_config *ssl_origin,
103 struct ssl_filter_config *ssl_proxy);
105/* Clone the given filter configs into the connection. */
106CURLcode Curl_ssl_conn_config_clone(struct ssl_filter_config *ssl_config,
107 struct ssl_filter_config *proxy_ssl_config,
108 struct connectdata *conn);
110/**
111 * Free allocated resources in SSL configs (main + proxy) for
112 * the given connection.
113 */
114void Curl_ssl_conn_config_cleanup(struct connectdata *conn);
116/**
117 * Return TRUE if `conn_config` is functionally the
118 * same as the one on `candidate`.
119 * @param proxy match the proxy SSL config or the main one
120 */
121bool Curl_ssl_conn_config_match(struct Curl_easy *data,
122 struct ssl_filter_config *conn_config,
123 struct connectdata *candidate,
124 bool proxy);
126/* Update certain connection SSL config flags after they have
127 * been changed on the easy handle. Works for `verifypeer`,
128 * `verifyhost` and `verifystatus`. */
129void Curl_ssl_conn_config_update(struct Curl_easy *data, bool for_proxy);
131#endif /* HEADER_CURL_VTLS_CONFIG_H */
Diagnostics4 git calls · 44 ms
CallStatusSizeTime044 ms
discover200152 B2 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=3 git.response.bytes=152 git.server.agent=gitty/1.0 git.server.object_format=sha1 git.server.caps=agent ls-refs fetch object-format git.server.fetch=shallow filter sideband-all git.protocol.version=2 git.pkt.frames=8 git.pkt.data=6 git.pkt.flush=2 git.pkt.delim=0 git.pkt.bytes=152 git.pkt.payload.max=34
ls-refs200149 B · hit2 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=2 git.response.bytes=149 git.response.cache=HIT git.response.duration_ms=2 git.protocol.version=2 git.pkt.frames=3 git.pkt.data=2 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=149 git.pkt.payload.max=78 git.ls_refs.count=2 git.ls_refs.head=refs/heads/master
fetchblob:none · deepen 10200287 KiB · hit3 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=39 git.response.bytes=293470 git.response.cache=HIT git.response.duration_ms=3 git.fetch.filter=blob:none git.fetch.filter.requested=tree:0 git.fetch.filter.fallback=blob:none git.fetch.filter.learned=false git.fetch.wants=31c911efe5652725e930f4d2e60c9060e5f6646d git.fetch.haves.count=0 git.fetch.deepen=10 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=10 git.pkt.data=8 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=293470 git.pkt.payload.max=65516 git.sideband.band1.bytes=293354 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=87 git.pack.bytes=293354 git.pack.ofs_delta=0 git.pack.ref_delta=1 git.pack.chain.max=1 git.pack.trailer=6a646bcda6740bab42e321b51998b52ea15146c0 git.pack.full=86Open pack map
fetch2002.1 KiB · hit39 ms
git.upload-pack fetch http.response.status_code=200 git.response.bytes=2165 git.response.cache=HIT git.response.duration_ms=39 git.fetch.wants=cf4263fce87946eb00b60b0f3ae882e42332806a git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=3 git.pkt.data=2 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=2165 git.pkt.payload.max=2144 git.sideband.band1.bytes=2143 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0
Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.
- Remote
- https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/curl.git
- Ref
- refs/heads/master
- Commit
- 31c911efe5652725e930f4d2e60c9060e5f6646d
- cf-ray
- a5e3841a1a83231f
- Request
- 9f0065fc…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format