mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-29 03:36:27 +08:00
Update demos, asn.1 bug fix
This commit is contained in:
@@ -454,13 +454,13 @@ int asn1_integer_to_der_ex(int tag, const uint8_t *a, size_t alen, uint8_t **out
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!a) {
|
||||
return 0;
|
||||
}
|
||||
if (alen <= 0 || alen > INT_MAX) {
|
||||
error_print();
|
||||
return -1;
|
||||
}
|
||||
if (!a) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (out && *out)
|
||||
*(*out)++ = tag;
|
||||
|
||||
Reference in New Issue
Block a user