mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
Update ASN.1
This commit is contained in:
@@ -103,7 +103,8 @@ static int test_asn1_length(void)
|
||||
for (i = 0; i < sizeof(tests)/sizeof(tests[0]); i++) {
|
||||
int ret;
|
||||
ret = asn1_length_from_der(&length, &cp, &len);
|
||||
if (ret != 1 && ret != -2) {
|
||||
// TLV in test vectors have no Value, asn1_length_from_der will return ASN1_R_TRUNCATED_DATA (-2)
|
||||
if (ret != 1 && ret != ASN1_R_TRUNCATED_DATA) {
|
||||
error_print();
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user