diff options
Diffstat (limited to 'src/lib/libssl/src/crypto/conf/test.c')
-rw-r--r-- | src/lib/libssl/src/crypto/conf/test.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/libssl/src/crypto/conf/test.c b/src/lib/libssl/src/crypto/conf/test.c index 899ee2a067..7fab85053e 100644 --- a/src/lib/libssl/src/crypto/conf/test.c +++ b/src/lib/libssl/src/crypto/conf/test.c | |||
@@ -58,7 +58,8 @@ | |||
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include <stdlib.h> | 60 | #include <stdlib.h> |
61 | #include "conf.h" | 61 | #include <openssl/conf.h> |
62 | #include <openssl/err.h> | ||
62 | 63 | ||
63 | main() | 64 | main() |
64 | { | 65 | { |
@@ -66,7 +67,10 @@ main() | |||
66 | long eline; | 67 | long eline; |
67 | char *s,*s2; | 68 | char *s,*s2; |
68 | 69 | ||
69 | conf=CONF_load(NULL,"ssleay.conf",&eline); | 70 | #ifdef USE_WIN32 |
71 | CONF_set_default_method(CONF_WIN32); | ||
72 | #endif | ||
73 | conf=CONF_load(NULL,"ssleay.cnf",&eline); | ||
70 | if (conf == NULL) | 74 | if (conf == NULL) |
71 | { | 75 | { |
72 | ERR_load_crypto_strings(); | 76 | ERR_load_crypto_strings(); |
@@ -87,5 +91,8 @@ main() | |||
87 | s=CONF_get_string(conf,"s_client","cipher1"); | 91 | s=CONF_get_string(conf,"s_client","cipher1"); |
88 | printf("s_client:cipher1=%s\n",(s == NULL)?"NULL":s); | 92 | printf("s_client:cipher1=%s\n",(s == NULL)?"NULL":s); |
89 | 93 | ||
94 | printf("---------------------------- DUMP ------------------------\n"); | ||
95 | CONF_dump_fp(conf, stdout); | ||
96 | |||
90 | exit(0); | 97 | exit(0); |
91 | } | 98 | } |