diff options
author | tb <> | 2022-05-24 20:20:19 +0000 |
---|---|---|
committer | tb <> | 2022-05-24 20:20:19 +0000 |
commit | ff91cf8b698d5ab331f8b7447009f7b254aac779 (patch) | |
tree | 8d30b5a757803dd178a7aa8b7aa3de069840c50a /src/regress/lib/libc/sys/t_write.c | |
parent | e10e3f1508de3bcfc278adc5e63ee08c206e14e4 (diff) | |
download | openbsd-ff91cf8b698d5ab331f8b7447009f7b254aac779.tar.gz openbsd-ff91cf8b698d5ab331f8b7447009f7b254aac779.tar.bz2 openbsd-ff91cf8b698d5ab331f8b7447009f7b254aac779.zip |
Clean up ASN1_item_sign_ctx() a little
Instead of inl, outl, and outll, use in_len, out_len, and buf_out_len.
Use the appropriate types for them. Check return values properly, check
for overflow. Remove some unnecessary casts and add some for readability.
Use asn1_abs_set_unused_bits() instead of inlining it.
This removes the last direct consumer of ASN1_STRING_FLAG_BITS_LEFT
outside of asn1/a_bitstr.c. The flag is still mentioned in x509/x509_addr.c
but that will hopefully go away soon.
tweaks/ok jsing
Diffstat (limited to 'src/regress/lib/libc/sys/t_write.c')
0 files changed, 0 insertions, 0 deletions