File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Userland/Libraries/LibTLS Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ static ErrorOr<SupportedGroup> oid_to_curve(Vector<int> curve)
85
85
return Error::from_string_view (" Unknown curve oid" sv);
86
86
}
87
87
88
- static ErrorOr<Crypto::UnsignedBigInteger> parse_version (Crypto::ASN1::Decoder& decoder, Vector<StringView> current_scope)
88
+ static ErrorOr<Crypto::UnsignedBigInteger> parse_certificate_version (Crypto::ASN1::Decoder& decoder, Vector<StringView> current_scope)
89
89
{
90
90
// Version ::= INTEGER {v1(0), v2(1), v3(2)}
91
91
if (auto tag = decoder.peek (); !tag.is_error () && tag.value ().type == Crypto::ASN1::Type::Constructed) {
@@ -695,7 +695,7 @@ static ErrorOr<Certificate> parse_tbs_certificate(Crypto::ASN1::Decoder& decoder
695
695
696
696
Certificate certificate;
697
697
certificate.tbs_asn1 = asn1_data;
698
- certificate.version = TRY (parse_version (decoder, current_scope)).to_u64 ();
698
+ certificate.version = TRY (parse_certificate_version (decoder, current_scope)).to_u64 ();
699
699
certificate.serial_number = TRY (parse_serial_number (decoder, current_scope));
700
700
certificate.algorithm = TRY (parse_algorithm_identifier (decoder, current_scope));
701
701
certificate.issuer = TRY (parse_name (decoder, current_scope));
You can’t perform that action at this time.
0 commit comments