openssl rehash: use libcrypto variables for default dir
authorRichard Levitte <levitte@openssl.org>
Thu, 12 Apr 2018 11:30:57 +0000 (13:30 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 12 Apr 2018 13:34:58 +0000 (15:34 +0200)
commit362ff3c39703633ac53ba9130c7acc02177bedc5
tree032085e3214d21bd0b648816c806a0eb91414c9d
parentadaf3cfad2319fe5c0d6fe179c726cc85eebf2d3
openssl rehash: use libcrypto variables for default dir

X509_get_default_cert_dir_env() returns the default environment
variable to check for certificate directories.
X509_get_default_cert_dir() returns the default configured certificate
directory.

Use these instead of hard coding our own values, and thereby be more
integrated with the rest of OpenSSL.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5937)
apps/rehash.c