IKEv1 XAuth: Fix main mode to work with XAuth PSK.
authorClavister OpenSource <opensource@clavister.com>
Fri, 25 Nov 2011 07:24:30 +0000 (08:24 +0100)
committerClavister OpenSource <opensource@clavister.com>
Tue, 20 Mar 2012 16:31:07 +0000 (17:31 +0100)
src/libcharon/sa/tasks/main_mode.c

index 133a7f0..694c3f4 100644 (file)
@@ -586,8 +586,8 @@ static bool derive_keys(private_main_mode_t *this, chunk_t nonce_i,
 
        switch (this->auth_method)
        {
-               case AUTH_CLASS_PSK:
-               case AUTH_CLASS_XAUTH_PSK:
+               case AUTH_PSK:
+               case AUTH_XAUTH_INIT_PSK:
                        shared_key = lookup_shared_key(this);
                        break;
                default: