X-Git-Url: https://git.saurik.com/apple/ipsec.git/blobdiff_plain/d1e348cfd503b08e7d34b7683d23aae209af0a71..d06a7ccbc5c7dbb1b65b08cfdbb7c4ec0824c666:/ipsec-tools/racoon/isakmp_xauth.h diff --git a/ipsec-tools/racoon/isakmp_xauth.h b/ipsec-tools/racoon/isakmp_xauth.h index 5898062..1ea8ed5 100644 --- a/ipsec-tools/racoon/isakmp_xauth.h +++ b/ipsec-tools/racoon/isakmp_xauth.h @@ -34,6 +34,8 @@ #ifndef _ISAKMP_XAUTH_H #define _ISAKMP_XAUTH_H +#include "racoon_types.h" + /* ISAKMP mode config attribute types specific to the Xauth vendor ID */ #define XAUTH_TYPE 16520 #define XAUTH_USER_NAME 16521 @@ -67,9 +69,6 @@ struct xauth_state { char *pwd; } generic; } authdata; -#ifdef HAVE_LIBLDAP - char *udn; /* ldap user dn */ -#endif }; /* What's been sent */ @@ -96,61 +95,20 @@ struct xauth_reply_arg { int res; }; -struct ph1handle; struct isakmp_data; -void xauth_sendreq(struct ph1handle *); -int xauth_attr_reply(struct ph1handle *, struct isakmp_data *, int); -int xauth_login_system(char *, char *); -void xauth_sendstatus(struct ph1handle *, int, int); -int xauth_check(struct ph1handle *); -int group_check(struct ph1handle *, char **, int); -vchar_t *isakmp_xauth_req(struct ph1handle *, struct isakmp_data *); -vchar_t *isakmp_xauth_set(struct ph1handle *, struct isakmp_data *); -void xauth_rmstate(struct xauth_state *); -void xauth_reply_stub(void *); -int xauth_reply(struct ph1handle *, int, int, int); -int xauth_rmconf_used(struct xauth_rmconf **); -void xauth_rmconf_delete(struct xauth_rmconf **); - -#ifdef HAVE_LIBRADIUS -int xauth_login_radius(struct ph1handle *, char *, char *); -int xauth_radius_init(void); -#endif - -#ifdef HAVE_LIBPAM -int xauth_login_pam(int, struct sockaddr *, char *, char *); -#endif - -#ifdef HAVE_LIBLDAP - -#define LDAP_DFLT_HOST "localhost" -#define LDAP_DFLT_USER "cn" -#define LDAP_DFLT_ADDR "racoon-address" -#define LDAP_DFLT_MASK "racoon-netmask" -#define LDAP_DFLT_GROUP "cn" -#define LDAP_DFLT_MEMBER "member" - -struct xauth_ldap_config { - int pver; - vchar_t *host; - int port; - vchar_t *base; - int subtree; - vchar_t *bind_dn; - vchar_t *bind_pw; - int auth_type; - vchar_t *attr_user; - vchar_t *attr_addr; - vchar_t *attr_mask; - vchar_t *attr_group; - vchar_t *attr_member; -}; - -extern struct xauth_ldap_config xauth_ldap_config; +void xauth_sendreq (phase1_handle_t *); +int xauth_attr_reply (phase1_handle_t *, struct isakmp_data *, int); +int xauth_login_system (char *, char *); +void xauth_sendstatus (phase1_handle_t *, int, int); +int xauth_check (phase1_handle_t *); +int group_check (phase1_handle_t *, char **, int); +vchar_t *isakmp_xauth_req (phase1_handle_t *, struct isakmp_data *); +vchar_t *isakmp_xauth_set (phase1_handle_t *, struct isakmp_data *); +void xauth_rmstate (struct xauth_state *); +void xauth_reply_stub (void *); +int xauth_reply (phase1_handle_t *, int, int, int); +int xauth_rmconf_used (struct xauth_rmconf **); +void xauth_rmconf_delete (struct xauth_rmconf **); -int xauth_ldap_init(void); -void xauth_ldap_flush(void); -int xauth_login_ldap(struct ph1handle *, char *, char *); -#endif #endif /* _ISAKMP_XAUTH_H */