Artifactspublic-v0

curl

master
ply4 git calls28 ms288 KiB3 cachedprotocol v2
98 lines2.8 KiBRaw
1/* File: report_openssl_version.c
2 *
3 * This file dynamically loads the OpenSSL shared image to report the
4 * version string.
5 *
6 * It will optionally place that version string in a DCL symbol.
7 *
8 * Usage: report_openssl_version <shared_image> [<dcl_symbol>]
9 *
10 * Copyright (C) John Malmberg
11 *
12 * Permission to use, copy, modify, and/or distribute this software for any
13 * purpose with or without fee is hereby granted, provided that the above
14 * copyright notice and this permission notice appear in all copies.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
17 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
18 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
19 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
21 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
22 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 *
24 * SPDX-License-Identifier: ISC
25 *
26 */
28#include <dlfcn.h>
29#include <openssl/opensslv.h>
30#include <openssl/crypto.h>
32#include <string.h>
33#include <descrip.h>
34#include <libclidef.h>
35#include <stsdef.h>
36#include <errno.h>
38unsigned long LIB$SET_SYMBOL(const struct dsc$descriptor_s *symbol,
39 const struct dsc$descriptor_s *value,
40 const unsigned long *table_type);
42int main(int argc, char *argv[])
44 void *libptr;
45 const char *(*ssl_version)(int t);
46 const char *version;
48 if(argc < 1) {
49 puts("report_openssl_version filename");
50 return 1;
51 }
53 libptr = dlopen(argv[1], 0);
55 ssl_version = (const char *(*)(int))dlsym(libptr, "SSLeay_version");
56 if(!ssl_version) {
57 ssl_version = (const char *(*)(int))dlsym(libptr, "ssleay_version");
58 if(!ssl_version) {
59 ssl_version = (const char *(*)(int))dlsym(libptr, "SSLEAY_VERSION");
60 }
61 }
63 dlclose(libptr);
65 if(!ssl_version) {
66 puts("Unable to lookup version of OpenSSL");
67 return 1;
68 }
70 version = ssl_version(SSLEAY_VERSION);
72 puts(version);
74 /* Was a symbol argument given? */
75 if(argc > 1) {
76 int status;
77 struct dsc$descriptor_s symbol_dsc;
78 struct dsc$descriptor_s value_dsc;
79 const unsigned long table_type = LIB$K_CLI_LOCAL_SYM;
81 symbol_dsc.dsc$a_pointer = argv[2];
82 symbol_dsc.dsc$w_length = strlen(argv[2]);
83 symbol_dsc.dsc$b_dtype = DSC$K_DTYPE_T;
84 symbol_dsc.dsc$b_class = DSC$K_CLASS_S;
86 value_dsc.dsc$a_pointer = (char *)version; /* Cast ok */
87 value_dsc.dsc$w_length = strlen(version);
88 value_dsc.dsc$b_dtype = DSC$K_DTYPE_T;
89 value_dsc.dsc$b_class = DSC$K_CLASS_S;
91 status = LIB$SET_SYMBOL(&symbol_dsc, &value_dsc, &table_type);
92 if(!$VMS_STATUS_SUCCESS(status)) {
93 return status;
94 }
95 }
97 return 0;
Diagnostics4 git calls · 28 ms
CallStatusSizeTime028 ms
discover200152 B2 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=2
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=3
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=86
Open pack map
fetch2001.3 KiB · hit23 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=23
git.response.bytes=1284
git.response.cache=HIT
git.response.duration_ms=23
git.fetch.wants=9a8538e17da4e973c8dde24a64959c6cfc896c79
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=1284
git.pkt.payload.max=1263
git.sideband.band1.bytes=1262
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
a5e2fa169d2f90c0
Request
6befc39c…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format