#ifndef _LOCALCONF_H
#define _LOCALCONF_H
+#if !TARGET_OS_EMBEDDED
+#include <vproc.h>
+#endif
+
/* local configuration */
#define LC_DEFAULT_CF SYSCONFDIR "/racoon.conf"
struct bound_addr {
LIST_ENTRY(bound_addr) chain;
u_int32_t address;
+ vchar_t *user_id;
+ vchar_t *user_pw;
+ vchar_t *version; /* our version string - if present */
};
struct redirect {
void* msg;
};
+
struct localconf {
char *racoon_conf; /* configuration filename */
int sock_vpncontrol;
int sock_pfkey;
int rtsock; /* routing socket */
+
LIST_HEAD(_vpnctl_socket_elem_, vpnctl_socket_elem) vpnctl_comm_socks;
LIST_HEAD(_redirect_, redirect) redirect_addresses;
int auto_exit_state; /* auto exit state */
int autograbaddr;
struct myaddrs *myaddrs;
- char *logfile_param; /* from command line */
+ char *logfile_param; /* from command line */
char *pathinfo[LC_PATHTYPE_MAX];
vchar_t *ident[LC_IDENTTYPE_MAX]; /* base of Identifier payload. */
*/
int gss_id_enc; /* GSS ID encoding to use */
+#if !TARGET_OS_EMBEDDED
+ vproc_transaction_t vt; /* returned by vproc_transaction_begin */
+#endif
};
extern struct localconf *lcconf;
extern void flushlcconf __P((void));
extern vchar_t *getpskbyname __P((vchar_t *));
extern vchar_t *getpskbyaddr __P((struct sockaddr *));
-#ifdef __APPLE__
+#if defined(__APPLE__) && HAVE_KEYCHAIN
extern vchar_t *getpskfromkeychain __P((const char *, u_int8_t, int, vchar_t *));
#endif
extern void getpathname __P((char *, int, int, const char *));
extern int doitype2doi __P((int));
extern vchar_t *getpsk __P((const char *, const int));
+
#endif /* _LOCALCONF_H */