projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbfb947
)
Fix bugs in bug-fix to x509/by_dir.c [from HEAD].
author
Andy Polyakov
<appro@openssl.org>
Sun, 3 Jul 2005 13:15:53 +0000
(13:15 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Sun, 3 Jul 2005 13:15:53 +0000
(13:15 +0000)
PR: 1131
crypto/x509/by_dir.c
patch
|
blob
|
history
diff --git
a/crypto/x509/by_dir.c
b/crypto/x509/by_dir.c
index b4a21716f213321348c86f016fbf652e6a1dd339..ea689aed1a2518bf4f02952db1dd0992698b8810 100644
(file)
--- a/
crypto/x509/by_dir.c
+++ b/
crypto/x509/by_dir.c
@@
-122,19
+122,18
@@
static int dir_ctrl(X509_LOOKUP *ctx, int cmd, const char *argp, long argl,
{
case X509_L_ADD_DIR:
if (argl == X509_FILETYPE_DEFAULT)
+ {
dir=(char *)Getenv(X509_get_default_cert_dir_env());
if (dir)
- ret=add_cert_dir(ld,dir,X509_FILETYPE_PEM);
+
ret=add_cert_dir(ld,dir,X509_FILETYPE_PEM);
else
- {
- ret=add_cert_dir(ld,X509_get_default_cert_dir(),
- X509_FILETYPE_PEM);
- }
+ ret=add_cert_dir(ld,X509_get_default_cert_dir(),
+ X509_FILETYPE_PEM);
if (!ret)
{
X509err(X509_F_DIR_CTRL,X509_R_LOADING_CERT_DIR);
}
-
+ }
else
ret=add_cert_dir(ld,argp,(int)argl);
break;