The first two are essentially taken from our sslheaders plugin, for compatiblity.
| 29 | { |
| 30 | // The first two are essentially taken from our sslheaders plugin, for compatiblity. |
| 31 | void |
| 32 | CertBase::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 | |
| 51 | void |
| 52 | CertBase::Signature::_load() const |
nothing calls this directly
no test coverage detected