| 119 | } |
| 120 | |
| 121 | void |
| 122 | CertBase::X509Value::_load_time(ASN1_TIME *(*getter)(const X509 *)) const |
| 123 | { |
| 124 | if (!_ready && _owner->_x509) { |
| 125 | auto *time = getter(_owner->_x509); |
| 126 | |
| 127 | if (time) { |
| 128 | X509Value::_load(); |
| 129 | ASN1_TIME_print(_bio.get(), time); |
| 130 | X509Value::_update_value(); |
| 131 | } else [[unlikely]] { |
| 132 | _value = cripts::Certs::String(); |
| 133 | _ready = true; |
| 134 | } |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | namespace |
| 139 | { |