Update ASN.1

This commit is contained in:
Zhi Guan
2025-12-08 16:50:56 +08:00
parent d69783aaa5
commit 2b67dca44a
3 changed files with 19 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2023 The GmSSL Project. All Rights Reserved.
* Copyright 2014-2025 The GmSSL Project. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
@@ -37,6 +37,7 @@ extern "C" {
enum ASN1_TAG {
ASN1_TAG_END_OF_CONTENTS = 0,
ASN1_TAG_BOOLEAN = 1,
ASN1_TAG_INTEGER = 2,
ASN1_TAG_BIT_STRING = 3,
@@ -68,6 +69,10 @@ enum ASN1_TAG {
ASN1_TAG_EXPLICIT = 0xa0,
};
#define ASN1_R_OK 1
#define ASN1_R_EOF 0
#define ASN1_R_ERROR -1
#define ASN1_R_TRUNCATED_DATA -2
const char *asn1_tag_name(int tag);
int asn1_tag_is_cstring(int tag);