svn rev #21607: branches/mskrb-integ/src/lib/gssapi/krb5/
lhoward@MIT.EDU
lhoward at MIT.EDU
Sat Dec 27 00:38:54 EST 2008
http://src.mit.edu/fisheye/changelog/krb5/?cs=21607
Commit By: lhoward
Log Message:
cleanup
Changed Files:
U branches/mskrb-integ/src/lib/gssapi/krb5/k5sealiov.c
Modified: branches/mskrb-integ/src/lib/gssapi/krb5/k5sealiov.c
===================================================================
--- branches/mskrb-integ/src/lib/gssapi/krb5/k5sealiov.c 2008-12-27 05:34:18 UTC (rev 21606)
+++ branches/mskrb-integ/src/lib/gssapi/krb5/k5sealiov.c 2008-12-27 05:38:53 UTC (rev 21607)
@@ -221,9 +221,7 @@
goto cleanup;
if (conf_req_flag) {
- switch (ctx->sealalg) {
- case SEAL_ALG_MICROSOFT_RC4:
- {
+ if (ctx->sealalg == SEAL_ALG_MICROSOFT_RC4) {
unsigned char bigend_seqnum[4];
krb5_keyblock *enc_key;
size_t i;
@@ -246,21 +244,15 @@
bigend_seqnum, 4,
iov, iov_count);
krb5_free_keyblock(context, enc_key);
- if (code != 0)
- goto cleanup;
-
- break;
- }
- default:
+ } else {
code = kg_encrypt_iov(context, ctx->proto,
((ctx->gss_flags & GSS_C_DCE_STYLE) != 0),
0 /*EC*/, 0 /*RRC*/,
ctx->enc, KG_USAGE_SEAL, NULL,
iov, iov_count);
- if (code != 0)
- goto cleanup;
- break;
}
+ if (code != 0)
+ goto cleanup;
}
ctx->seq_send++;
More information about the cvs-krb5
mailing list