projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arm_arch.h: allow to specify __ARM_ARCH__ elsewhere.
[oweals/openssl.git]
/
crypto
/
conf
/
test.c
diff --git
a/crypto/conf/test.c
b/crypto/conf/test.c
index 17185926ac01fb3e841ef6d5ffaa184c4e5a150e..7fab85053e4cb94abd929cf243443c2802055b61 100644
(file)
--- a/
crypto/conf/test.c
+++ b/
crypto/conf/test.c
@@
-1,5
+1,5
@@
/* crypto/conf/test.c */
/* crypto/conf/test.c */
-/* Copyright (C) 1995-199
7
Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-199
8
Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* All rights reserved.
*
* This package is an SSL implementation written
@@
-58,7
+58,8
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
-#include "conf.h"
+#include <openssl/conf.h>
+#include <openssl/err.h>
main()
{
main()
{
@@
-66,7
+67,10
@@
main()
long eline;
char *s,*s2;
long eline;
char *s,*s2;
- conf=CONF_load(NULL,"ssleay.conf",&eline);
+#ifdef USE_WIN32
+ CONF_set_default_method(CONF_WIN32);
+#endif
+ conf=CONF_load(NULL,"ssleay.cnf",&eline);
if (conf == NULL)
{
ERR_load_crypto_strings();
if (conf == NULL)
{
ERR_load_crypto_strings();
@@
-87,5
+91,8
@@
main()
s=CONF_get_string(conf,"s_client","cipher1");
printf("s_client:cipher1=%s\n",(s == NULL)?"NULL":s);
s=CONF_get_string(conf,"s_client","cipher1");
printf("s_client:cipher1=%s\n",(s == NULL)?"NULL":s);
+ printf("---------------------------- DUMP ------------------------\n");
+ CONF_dump_fp(conf, stdout);
+
exit(0);
}
exit(0);
}