Clean up and improve openssl(1) errstr:
authorjsing <jsing@openbsd.org>
Tue, 14 Apr 2015 10:54:40 +0000 (10:54 +0000)
committerjsing <jsing@openbsd.org>
Tue, 14 Apr 2015 10:54:40 +0000 (10:54 +0000)
commitf6e54465d4fee034c1bef11b04f61c4558b2bab5
tree633b25978872efb8ec5a3088b7285cc1c30656fd
parent40d9cd0e08fa142930a52325629bc8283e81442b
Clean up and improve openssl(1) errstr:

- Use BIO_new_fp() instead of BIO_new()/BIO_set_fp() and handle NULL
  return value in a more appropriate manner.

- Use stroul() instead of sscanf() with appropriate error checking.

ok doug@
usr.bin/openssl/errstr.c