diff options
Diffstat (limited to 'src/pluto/xauth.h')
-rw-r--r-- | src/pluto/xauth.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/pluto/xauth.h b/src/pluto/xauth.h index b36f291b0..0a9f792aa 100644 --- a/src/pluto/xauth.h +++ b/src/pluto/xauth.h @@ -18,11 +18,20 @@ #ifndef _XAUTH_H #define _XAUTH_H +#include <freeswan.h> +#include "defs.h" + /* XAUTH credentials */ struct chunk_t; typedef struct { + char *conn_name; + char id[BUF_LEN]; + char ip_address[ADDRTOT_BUF]; +} xauth_peer_t; + +typedef struct { chunk_t user_name; chunk_t user_password; } xauth_t; @@ -30,7 +39,7 @@ typedef struct { typedef struct { void *handle; bool (*get_secret) (xauth_t *xauth_secret); - bool (*verify_secret) (const char *conn_name, const xauth_t *xauth_secret); + bool (*verify_secret) (const xauth_peer_t *peer, const xauth_t *xauth_secret); } xauth_module_t; extern xauth_module_t xauth_module; |