mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:47:44 +00:00
LibCrypto: Implement UTCTime and GeneralizedTime parsers
This commit is contained in:
parent
39997e2ab1
commit
13abbc5ea8
2 changed files with 118 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Types.h>
|
||||
#include <LibCore/DateTime.h>
|
||||
#include <LibCrypto/BigInt/UnsignedBigInteger.h>
|
||||
|
||||
namespace Crypto::ASN1 {
|
||||
|
@ -71,4 +72,7 @@ String kind_name(Kind);
|
|||
String class_name(Class);
|
||||
String type_name(Type);
|
||||
|
||||
Optional<Core::DateTime> parse_utc_time(const StringView&);
|
||||
Optional<Core::DateTime> parse_generalized_time(const StringView&);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue