|
@@ -89,12 +89,12 @@ static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argp, |
|
|
long argl, char **ret) |
|
|
long argl, char **ret) |
|
|
{ |
|
|
{ |
|
|
int ok = 0; |
|
|
int ok = 0; |
|
|
char *file; |
|
|
|
|
|
|
|
|
const char *file; |
|
|
|
|
|
|
|
|
switch (cmd) { |
|
|
switch (cmd) { |
|
|
case X509_L_FILE_LOAD: |
|
|
case X509_L_FILE_LOAD: |
|
|
if (argl == X509_FILETYPE_DEFAULT) { |
|
|
if (argl == X509_FILETYPE_DEFAULT) { |
|
|
file = (char *)getenv(X509_get_default_cert_file_env()); |
|
|
|
|
|
|
|
|
file = getenv(X509_get_default_cert_file_env()); |
|
|
if (file) |
|
|
if (file) |
|
|
ok = (X509_load_cert_crl_file(ctx, file, |
|
|
ok = (X509_load_cert_crl_file(ctx, file, |
|
|
X509_FILETYPE_PEM) != 0); |
|
|
X509_FILETYPE_PEM) != 0); |
|
|