浏览代码

LibCrypto: Add the GeneralizedTime ASN.1 type

AnotherTest 4 年之前
父节点
当前提交
581f9ff6bb
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 2 0
      Userland/Libraries/LibCrypto/ASN1/ASN1.cpp
  2. 1 0
      Userland/Libraries/LibCrypto/ASN1/ASN1.h

+ 2 - 0
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:

+ 1 - 0
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 = ??,