diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-12-03 14:47:58 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-12-03 14:47:58 +0000 |
commit | 8d68033e5cf37ea91eb160e7b8e1c2d171a356f7 (patch) | |
tree | 5dbb4a65d0e65bd22873ed7fce9b2fdcb890a330 /Source/charon/sa/authenticator.h | |
parent | ebae15f0a03dae6b4b04f75b2f690cce4e7d308a (diff) | |
download | strongswan-8d68033e5cf37ea91eb160e7b8e1c2d171a356f7.tar.bz2 strongswan-8d68033e5cf37ea91eb160e7b8e1c2d171a356f7.tar.xz |
- authentication with preshared key working but code MUST be cleaned
Diffstat (limited to 'Source/charon/sa/authenticator.h')
-rw-r--r-- | Source/charon/sa/authenticator.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/charon/sa/authenticator.h b/Source/charon/sa/authenticator.h index 3978cf1e9..06cb96d2d 100644 --- a/Source/charon/sa/authenticator.h +++ b/Source/charon/sa/authenticator.h @@ -27,7 +27,8 @@ #include <types.h> #include <encoding/payloads/auth_payload.h> -#include <utils/identification.h> +#include <encoding/payloads/id_payload.h> +#include <network/packet.h> #include <sa/ike_sa.h> @@ -51,7 +52,7 @@ struct authenticator_t { * @return * - NOT_SUPPORTED if auth_method is not supported */ - status_t (*verify_authentication) (authenticator_t *this,auth_method_t auth_method, chunk_t auth_data, chunk_t last_message, chunk_t other_nonce,identification_t *my_id,bool *verified); + status_t (*verify_auth_data) (authenticator_t *this,auth_payload_t *auth_payload, chunk_t last_received_packet,chunk_t my_nonce,id_payload_t *other_id_payload,bool *verified); /** * @brief Verifying of given authentication data. @@ -61,9 +62,7 @@ struct authenticator_t { * @return * - NOT_SUPPORTED if auth_method is not supported */ - status_t (*allocate_auth_data) (authenticator_t *this,auth_method_t auth_method,chunk_t last_message, chunk_t other_nonce,identification_t *my_id,chunk_t *auth_data); - - + status_t (*compute_auth_data) (authenticator_t *this,auth_payload_t **auth_payload, chunk_t last_sent_packet,chunk_t other_nonce,id_payload_t *my_id_payload); /** * @brief Destroys a authenticator_t object. * |