diff options
author | Rob Austein <sra@hactrn.net> | 2015-08-25 01:01:30 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-08-25 01:01:30 -0400 |
commit | a4930dbbac93b3637a6f99a443dca55319c35d92 (patch) | |
tree | 3d98996ca208c76350335fb121187a346d6c5b59 /asn1.c | |
parent | 36cd3636538328f381bff9857698b5d1807542e0 (diff) |
ASN.1 bugfixes.
Diffstat (limited to 'asn1.c')
-rw-r--r-- | asn1.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -85,6 +85,8 @@ hal_error_t hal_asn1_encode_header(const uint8_t tag, if (value_len + header_len > der_max) return HAL_ERROR_RESULT_TOO_LONG; + *der++ = tag; + if (value_len < 128) { *der = (uint8_t) value_len; } |