summaryrefslogtreecommitdiff
path: root/lib/libcrypto/x509/x509_d2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/x509/x509_d2.c')
-rw-r--r--lib/libcrypto/x509/x509_d2.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/libcrypto/x509/x509_d2.c b/lib/libcrypto/x509/x509_d2.c
index 51410cfd1a9..ed051093ac9 100644
--- a/lib/libcrypto/x509/x509_d2.c
+++ b/lib/libcrypto/x509/x509_d2.c
@@ -63,7 +63,7 @@
#ifndef OPENSSL_NO_STDIO
int X509_STORE_set_default_paths(X509_STORE *ctx)
- {
+{
X509_LOOKUP *lookup;
lookup=X509_STORE_add_lookup(ctx,X509_LOOKUP_file());
@@ -78,30 +78,28 @@ int X509_STORE_set_default_paths(X509_STORE *ctx)
ERR_clear_error();
return(1);
- }
+}
int X509_STORE_load_locations(X509_STORE *ctx, const char *file,
const char *path)
- {
+{
X509_LOOKUP *lookup;
- if (file != NULL)
- {
+ if (file != NULL) {
lookup=X509_STORE_add_lookup(ctx,X509_LOOKUP_file());
if (lookup == NULL) return(0);
if (X509_LOOKUP_load_file(lookup,file,X509_FILETYPE_PEM) != 1)
return(0);
- }
- if (path != NULL)
- {
+ }
+ if (path != NULL) {
lookup=X509_STORE_add_lookup(ctx,X509_LOOKUP_hash_dir());
if (lookup == NULL) return(0);
if (X509_LOOKUP_add_dir(lookup,path,X509_FILETYPE_PEM) != 1)
return(0);
- }
+ }
if ((path == NULL) && (file == NULL))
return(0);
return(1);
- }
+}
#endif