MCPcopy Create free account
hub / github.com/apache/trafficserver / debug_certificate

Function debug_certificate

example/plugins/c-api/verify_cert/verify_cert.cc:39–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37DbgCtl dbg_ctl{PLUGIN_NAME};
38
39static void
40debug_certificate(const char *msg, X509_NAME *name)
41{
42 BIO *bio;
43
44 if (name == nullptr) {
45 return;
46 }
47
48 bio = BIO_new(BIO_s_mem());
49 if (bio == nullptr) {
50 return;
51 }
52
53 if (X509_NAME_print_ex(bio, name, 0 /* indent */, XN_FLAG_ONELINE) > 0) {
54 long len;
55 char *ptr;
56 len = BIO_get_mem_data(bio, &ptr);
57 Dbg(dbg_ctl, "%s %.*s", msg, static_cast<int>(len), ptr);
58 }
59
60 BIO_free(bio);
61}
62
63int
64CB_clientcert(TSCont /* contp */, TSEvent /* event */, void *edata)

Callers 1

CB_clientcertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected