Replace hardcoded parameters
This commit is contained in:
@@ -203,7 +203,8 @@ bool X509Cert::IsCaCertificate() const {
|
||||
return X509_check_ca(openssl_cert_) != 0;
|
||||
}
|
||||
|
||||
bool X509Cert::GetV3BooleanExtension(const std::string& oid, bool* value) const {
|
||||
bool X509Cert::GetV3BooleanExtension(const std::string& oid,
|
||||
bool* value) const {
|
||||
ScopedAsn1Object extension_name(OBJ_txt2obj(oid.c_str(), 1));
|
||||
int ext_pos = X509_get_ext_by_OBJ(openssl_cert_, extension_name.get(), -1);
|
||||
if (ext_pos < 0) return false;
|
||||
|
||||
Reference in New Issue
Block a user