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

Method _load

src/cripts/Certs.cc:31–49  ·  view source on GitHub ↗

The first two are essentially taken from our sslheaders plugin, for compatiblity.

Source from the content-addressed store, hash-verified

29{
30// The first two are essentially taken from our sslheaders plugin, for compatiblity.
31void
32CertBase::Certificate::_load() const
33{
34 if (!_ready && _owner->_x509) {
35 long remain;
36 char *ptr;
37
38 super_type::_load();
39 PEM_write_bio_X509(_bio.get(), _owner->_x509);
40
41 // The PEM format has newlines in it. mod_ssl replaces those with spaces.
42 remain = BIO_get_mem_data(_bio.get(), &ptr);
43 for (char *nl; (nl = static_cast<char *>(memchr(ptr, '\n', remain))); ptr = nl) {
44 *nl = ' ';
45 remain -= nl - ptr;
46 }
47 _update_value();
48 }
49}
50
51void
52CertBase::Signature::_load() const

Callers

nothing calls this directly

Calls 3

sizeFunction · 0.85
emplace_backMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected