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:36:08 +0000 (15:36 +0200)
commite7bc92bc782b995231dbf855970f206ebc65c75d
treec6ad2ba6cac3976cfda88faa609aa9432b3309c2
parentf93f6a3bbcd253cd90a280ce7ba598908eed1489
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)

(cherry picked from commit 362ff3c39703633ac53ba9130c7acc02177bedc5)
apps/rehash.c