summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2021-04-18 13:39:09 +0430
committerAndreas Kling <kling@serenityos.org>2021-04-18 14:18:16 +0200
commit581f9ff6bbab3de172e27ede04266913d871534c (patch)
treeca968e876d419a92b2389e552cd554329c6eba2c
parenta48d365046c81d4cc742b2a6ebdcb6eb58e6d37b (diff)
downloadserenity-581f9ff6bbab3de172e27ede04266913d871534c.zip
LibCrypto: Add the GeneralizedTime ASN.1 type
-rw-r--r--Userland/Libraries/LibCrypto/ASN1/ASN1.cpp2
-rw-r--r--Userland/Libraries/LibCrypto/ASN1/ASN1.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCrypto/ASN1/ASN1.cpp b/Userland/Libraries/LibCrypto/ASN1/ASN1.cpp
index 612e0bb99e..17d9c68a65 100644
--- a/Userland/Libraries/LibCrypto/ASN1/ASN1.cpp
+++ b/Userland/Libraries/LibCrypto/ASN1/ASN1.cpp
@@ -53,6 +53,8 @@ String kind_name(Kind kind)
return "UTF8String";
case Kind::UTCTime:
return "UTCTime";
+ case Kind::GeneralizedTime:
+ return "GeneralizedTime";
case Kind::Sequence:
return "Sequence";
case Kind::Set:
diff --git a/Userland/Libraries/LibCrypto/ASN1/ASN1.h b/Userland/Libraries/LibCrypto/ASN1/ASN1.h
index dea84b233e..6b7d805b56 100644
--- a/Userland/Libraries/LibCrypto/ASN1/ASN1.h
+++ b/Userland/Libraries/LibCrypto/ASN1/ASN1.h
@@ -43,6 +43,7 @@ enum class Kind : u8 {
PrintableString = 0x13,
Utf8String = 0x0c,
UTCTime = 0x017,
+ GeneralizedTime = 0x018,
Sequence = 0x10,
Set = 0x11,
// Choice = ??,