David Benjamin 2cb7b337d0 Rewrite ASN1_OBJECT and ASN1_BOOLEAN d2i/i2d functions.
These functions already don't go through tasn_*.c. Rewrite them to use
CBS and CBB. This removes some dependencies on ASN1_get_object and
ASN1_put_object.

Update-Note: d2i_ASN1_OBJECT and d2i_ASN1_BOOLEAN will no longer accept
non-minimal length prefixes (forbidden in DER). d2i_ASN1_BOOLEAN will
also no longer accept non-canonical representations of TRUE (also
forbidden in DER). This does not affect certificate parsing, as that
still goes through the old template system, though we will make a
similar change to those functions later.

Bug: 354, 548
Change-Id: I0b7aa96f47aca5c31ec4f702e27108b4106311f2
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/58145
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Bob Beck <bbe@google.com>
Commit-Queue: Bob Beck <bbe@google.com>
Auto-Submit: David Benjamin <davidben@google.com>
2023-03-16 22:13:42 +00:00
..
2019-04-17 20:57:57 +00:00
2023-02-08 21:48:53 +00:00
2022-06-14 17:57:23 +00:00
2023-02-28 23:12:58 +00:00
2023-03-06 20:05:26 +00:00
2018-09-05 23:41:25 +00:00
2022-06-08 18:05:50 +00:00
2023-02-06 21:33:21 +00:00
2023-01-27 14:19:27 +00:00
2023-01-27 14:19:27 +00:00
2020-05-14 18:17:12 +00:00