patch from Luke - minor cleanup
authorKen Raeburn <raeburn@mit.edu>
Sat, 17 Jan 2009 00:06:06 +0000 (00:06 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 17 Jan 2009 00:06:06 +0000 (00:06 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21761 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/k5sealv3.c
src/lib/gssapi/krb5/k5sealv3iov.c
src/lib/gssapi/krb5/util_crypt.c

index 56a4a4462db841ccb153ef738213780924c7e180..b12284fb19a27e507a75f38b0ba23a3413786ad2 100644 (file)
@@ -320,9 +320,8 @@ gss_krb5int_unseal_token_v3(krb5_context *contextptr,
     krb5_keyblock *key;
     krb5_cksumtype cksumtype;
 
-    if(ctx->big_endian != 0)
-      goto defective;
-
+    if (ctx->big_endian != 0)
+       goto defective;
 
     if (qop_state)
         *qop_state = GSS_C_QOP_DEFAULT;
index 879d99748d15047574fbd9529765b1a7c96b0f6f..e39665febe5c21f75d2bf095ede362bd6a99e28e 100644 (file)
@@ -298,8 +298,7 @@ gss_krb5int_unseal_v3_iov(krb5_context context,
     int conf_flag = 0;
 
     if (ctx->big_endian != 0)
-        return GSS_S_DEFECTIVE_TOKEN;
-
+       return GSS_S_DEFECTIVE_TOKEN;
 
     if (qop_state != NULL)
        *qop_state = GSS_C_QOP_DEFAULT;
index e93acb9ca29fc78cd03b714a48dc935118a8ac07..e2f306e979aed198afc9a25ef661b0f2d4f3bd4f 100644 (file)
@@ -99,9 +99,10 @@ kg_setup_keys(krb5_context context,
 
     *cksumtype = 0;
     ctx->proto = 0;
+
     if (ctx->enc == NULL) {
-        ctx->signalg = -1;
-                ctx->sealalg = -1;
+       ctx->signalg = -1;
+       ctx->sealalg = -1;
     }
         
     code = krb5int_accessor(&kaccess, KRB5INT_ACCESS_VERSION);
@@ -109,9 +110,9 @@ kg_setup_keys(krb5_context context,
        return code;
 
     code = (*kaccess.krb5int_c_mandatory_cksumtype)(context, subkey->enctype,
-                                                    cksumtype);
+                                                   cksumtype);
     if (code != 0)
-        return code;
+       return code;
 
     switch (subkey->enctype) {
     case ENCTYPE_DES_CBC_MD5:
@@ -154,7 +155,7 @@ kg_setup_keys(krb5_context context,
        break;
     default:
        ctx->proto = 1;
-
+       break;
     }
 
     return 0;