mirror of
https://github.com/libtom/libtomcrypt
synced 2026-08-25 20:26:07 -04:00
Correctly treat NULL in the parameters of a SubjectPublicKeyInfo
The NULL is optional. Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
parent
eb807b84d0
commit
dd6ef9cdc7
1 changed files with 2 additions and 0 deletions
|
|
@ -75,6 +75,8 @@ int x509_decode_subject_public_key_info(const unsigned char *in, unsigned long i
|
|||
alg_id_num = 1;
|
||||
} else {
|
||||
LTC_SET_ASN1(alg_id, 1, parameters_type, parameters, *_parameters_len);
|
||||
if (parameters_type == LTC_ASN1_NULL)
|
||||
alg_id[1].optional = 1;
|
||||
alg_id_num = 2;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue