summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/conf.h
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/isakmpd/conf.h')
-rw-r--r--sbin/isakmpd/conf.h26
1 files changed, 23 insertions, 3 deletions
diff --git a/sbin/isakmpd/conf.h b/sbin/isakmpd/conf.h
index 8e8578e7435..0404636792d 100644
--- a/sbin/isakmpd/conf.h
+++ b/sbin/isakmpd/conf.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: conf.h,v 1.9 1999/08/05 22:41:08 niklas Exp $ */
-/* $EOM: conf.h,v 1.10 1999/08/05 14:57:59 niklas Exp $ */
+/* $OpenBSD: conf.h,v 1.10 2000/05/02 14:37:00 niklas Exp $ */
+/* $EOM: conf.h,v 1.11 2000/05/01 20:57:33 niklas Exp $ */
/*
* Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved.
@@ -43,6 +43,25 @@
#define CONFIG_FILE "/etc/isakmpd/isakmpd.conf"
+/* Default values for autogenerated part of our configuration. */
+#define CONF_DFLT_TAG_LIFE_MAIN_MODE "LIFE_MAIN_MODE"
+#define CONF_DFLT_TYPE_LIFE_MAIN_MODE "SECONDS"
+#define CONF_DFLT_VAL_LIFE_MAIN_MODE "3600,60:86400"
+
+#define CONF_DFLT_TAG_LIFE_QUICK_MODE "LIFE_QUICK_MODE"
+#define CONF_DFLT_TYPE_LIFE_QUICK_MODE "SECONDS"
+#define CONF_DFLT_VAL_LIFE_QUICK_MODE "1200,60:86400"
+
+#define CONF_DFLT_VAL_BLF_KEYLEN "128,96:192"
+
+#define CONF_DFLT_RETRANSMITS "3"
+#define CONF_DFLT_EXCH_MAX_TIME "120"
+#define CONF_DFLT_POLICY_FILE "/etc/isakmpd/isakmpd.policy"
+
+#define CONF_DFLT_X509_CA_DIR "/etc/isakmpd/ca/"
+#define CONF_DFLT_X509_CERT_DIR "/etc/isakmpd/certs/"
+#define CONF_DFLT_X509_PRIVATE_KEY "/etc/isakmpd/private/local.key"
+
struct conf_list_node {
TAILQ_ENTRY (conf_list_node) link;
char *field;
@@ -69,6 +88,7 @@ extern int conf_match_num (char *, char *, int);
extern void conf_reinit (void);
extern int conf_remove (int, char *, char *);
extern int conf_remove_section (int, char *);
-extern int conf_set (int, char *, char *, char *, int);
+extern int conf_set (int, char *, char *, char *, int, int);
+extern void conf_report (void);
#endif /* _CONF_H_ */