You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
David Benjamin
1b2db8c7c4
Add a test for ASN1_mbstring_copy and clean up.
...
In writing the tests, I noticed that the documentation was wrong. First,
the maximum lengths are measured in codepoints, not bytes.
Second, the TODO was wrong. We actually do handle this correctly,
*almost*. Rather, the bug is that the function assumes |mask| contains
no extraneous bits. If it does, all extraneous bits are interpreted as
B_ASN1_UTF8STRING. This seems like a bug, so I've gone ahead and fixed
that, with a test.
Change-Id: I7ba8fa700a8e21e6d25cb7ce879dace685eecf7e
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/48825
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Adam Langley <agl@google.com>
4 years ago
..
a_bitstr.c
Compute ASN.1 BIT STRING sizes more consistently.
4 years ago
a_bool.c
Always encode booleans as DER.
4 years ago
a_d2i_fp.c
Remove OPENSSL_NO_FP_API ifdefs.
4 years ago
a_dup.c
acvp: add CMAC-AES support.
5 years ago
a_enum.c
Unwind M_ASN1_* macros for primitive types.
4 years ago
a_gentm.c
Reject years outside 0000-9999 in ASN1_GENERALIZEDTIME_adj.
4 years ago
a_i2d_fp.c
acvp: add CMAC-AES support.
5 years ago
a_int.c
Unwind M_ASN1_* macros for primitive types.
4 years ago
a_mbstr.c
Add a test for ASN1_mbstring_copy and clean up.
4 years ago
a_object.c
Make ASN1_OBJECT opaque.
4 years ago
a_octet.c
Unwind M_ASN1_* macros for primitive types.
4 years ago
a_print.c
acvp: add CMAC-AES support.
5 years ago
a_strex.c
Fix ASN1_STRING_print_ex with negative integers.
4 years ago
a_strnid.c
Always use an ASN1_STRING_TABLE global mask of UTF8String.
4 years ago
a_time.c
Document another batch of functions.
4 years ago
a_type.c
Rename asn1_locl.h to internal.h.
4 years ago
a_utctm.c
Document another batch of functions.
4 years ago
a_utf8.c
Rename asn1_locl.h to internal.h.
4 years ago
asn1_lib.c
Document ASN1_TYPE and related functions.
4 years ago
asn1_par.c
Document ASN.1 printing functions.
4 years ago
asn1_test.cc
Add a test for ASN1_mbstring_copy and clean up.
4 years ago
asn_pack.c
acvp: add CMAC-AES support.
5 years ago
charmap.h
Move a_strex.c back to asn1, split X509_NAME bits out.
4 years ago
charmap.pl
acvp: add CMAC-AES support.
5 years ago
f_enum.c
acvp: add CMAC-AES support.
5 years ago
f_int.c
acvp: add CMAC-AES support.
5 years ago
f_string.c
acvp: add CMAC-AES support.
5 years ago
internal.h
Make ASN1_OBJECT opaque.
4 years ago
tasn_dec.c
Rename asn1_locl.h to internal.h.
4 years ago
tasn_enc.c
Remove ASN1_TFLG_SET_ORDER.
4 years ago
tasn_fre.c
Rename asn1_locl.h to internal.h.
4 years ago
tasn_new.c
Remove ASN1_STRING_FLAG_MSTRING.
4 years ago
tasn_typ.c
Unwind ASN1_TFLG_NDEF.
4 years ago
tasn_utl.c
Rename asn1_locl.h to internal.h.
4 years ago
time_support.c
Rename asn1_locl.h to internal.h.
4 years ago