1
Fork 0
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:
AnotherTest 2021-04-18 13:44:36 +04:30 committed by Andreas Kling
parent 39997e2ab1
commit 13abbc5ea8
2 changed files with 118 additions and 0 deletions

View file

@ -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&);
}