Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6.git] / net / sunrpc / auth_gss / auth_gss.c
index 5daf6cc..364eb45 100644 (file)
@@ -1421,18 +1421,16 @@ gss_wrap_req(struct rpc_task *task,
                goto out;
        }
        switch (gss_cred->gc_service) {
-               case RPC_GSS_SVC_NONE:
-                       gss_wrap_req_encode(encode, rqstp, p, obj);
-                       status = 0;
-                       break;
-               case RPC_GSS_SVC_INTEGRITY:
-                       status = gss_wrap_req_integ(cred, ctx, encode,
-                                                               rqstp, p, obj);
-                       break;
-               case RPC_GSS_SVC_PRIVACY:
-                       status = gss_wrap_req_priv(cred, ctx, encode,
-                                       rqstp, p, obj);
-                       break;
+       case RPC_GSS_SVC_NONE:
+               gss_wrap_req_encode(encode, rqstp, p, obj);
+               status = 0;
+               break;
+       case RPC_GSS_SVC_INTEGRITY:
+               status = gss_wrap_req_integ(cred, ctx, encode, rqstp, p, obj);
+               break;
+       case RPC_GSS_SVC_PRIVACY:
+               status = gss_wrap_req_priv(cred, ctx, encode, rqstp, p, obj);
+               break;
        }
 out:
        gss_put_ctx(ctx);
@@ -1531,18 +1529,18 @@ gss_unwrap_resp(struct rpc_task *task,
        if (ctx->gc_proc != RPC_GSS_PROC_DATA)
                goto out_decode;
        switch (gss_cred->gc_service) {
-               case RPC_GSS_SVC_NONE:
-                       break;
-               case RPC_GSS_SVC_INTEGRITY:
-                       status = gss_unwrap_resp_integ(cred, ctx, rqstp, &p);
-                       if (status)
-                               goto out;
-                       break;
-               case RPC_GSS_SVC_PRIVACY:
-                       status = gss_unwrap_resp_priv(cred, ctx, rqstp, &p);
-                       if (status)
-                               goto out;
-                       break;
+       case RPC_GSS_SVC_NONE:
+               break;
+       case RPC_GSS_SVC_INTEGRITY:
+               status = gss_unwrap_resp_integ(cred, ctx, rqstp, &p);
+               if (status)
+                       goto out;
+               break;
+       case RPC_GSS_SVC_PRIVACY:
+               status = gss_unwrap_resp_priv(cred, ctx, rqstp, &p);
+               if (status)
+                       goto out;
+               break;
        }
        /* take into account extra slack for integrity and privacy cases: */
        cred->cr_auth->au_rslack = cred->cr_auth->au_verfsize + (p - savedp)