]> git.saurik.com Git - apple/network_cmds.git/blobdiff - racoon.tproj/oakley.c
network_cmds-245.11.tar.gz
[apple/network_cmds.git] / racoon.tproj / oakley.c
index 8d1a475045ee426a769f07f3a3142d4ac4323cf0..3c7cb819baef0c38bdd54295b2cb08c8d6cd6a5e 100644 (file)
@@ -2099,14 +2099,14 @@ oakley_skeyid(iph1)
 
        /* SKEYID */
        switch(iph1->approval->authmethod) {
-       case OAKLEY_ATTR_AUTH_METHOD_PSKEY:     
-               if (iph1->nonce_p == NULL) {
-                       plog(LLV_ERROR, LOCATION, NULL,
-                               "no nonce payload received from peer.\n");
-                       goto end;
-               }
-        /* if we have a preshared key defined, just use it */
-       if (iph1->rmconf->shared_secret) {
+       case OAKLEY_ATTR_AUTH_METHOD_PSKEY:
+                               if (iph1->nonce_p == NULL) {
+                                       plog(LLV_ERROR, LOCATION, NULL,
+                                               "no nonce payload received from peer.\n");
+                                       goto end;
+                               }
+                /* if we have a preshared key defined, just use it */
+                if (iph1->rmconf->shared_secret) {
 
                        switch (iph1->rmconf->secrettype) {
                                case SECRETTYPE_KEY: