BIO: respect opening in text mode
authorRichard Levitte <levitte@openssl.org>
Fri, 8 Apr 2016 18:15:15 +0000 (20:15 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 11 Apr 2016 12:57:34 +0000 (14:57 +0200)
commit2d897ae4d8af83d7920ac4c52d0cab32739d671b
tree3dc008cfc578ffd3a8764d511e1065de7d74b8f3
parentcdbf577973a76a0627debb5105f46d6f4509c39e
BIO: respect opening in text mode

When a file is opened with BIO_new_file(), make sure that the internal
mode TEXT vs BINARY setting reflects what's given in the mode string.

Reviewed-by: Andy Polyakov <appro@openssl.org>
crypto/bio/bss_file.c