Bring UTF8_{getc,putc} up-to-date: it's been a decade since 5- and 6-byte
authorguenther <guenther@openbsd.org>
Tue, 20 May 2014 01:21:52 +0000 (01:21 +0000)
committerguenther <guenther@openbsd.org>
Tue, 20 May 2014 01:21:52 +0000 (01:21 +0000)
commit537292fc482356e53e27fd70c0aa55773a8fb6a7
treeb09b9182738d3cecefab69cf9950607f773caa54
parenteb53841f7bd653fe68c552e079401e5fbacfc936
Bring UTF8_{getc,putc} up-to-date: it's been a decade since 5- and 6-byte
encodings and encoding of surrogate pair code points were banned.  Add
checks for those, both to those functions and to the code decoding the
BMP and UNIV encodings.

ok miod@
lib/libcrypto/asn1/a_mbstr.c
lib/libcrypto/asn1/a_strex.c
lib/libcrypto/asn1/a_utf8.c
lib/libcrypto/asn1/asn1_locl.h
lib/libssl/src/crypto/asn1/a_mbstr.c
lib/libssl/src/crypto/asn1/a_strex.c
lib/libssl/src/crypto/asn1/a_utf8.c
lib/libssl/src/crypto/asn1/asn1_locl.h