rpcgss: krb5: kill checksum_type, miscellaneous small cleanup
Previous changes reveal some obvious cruft. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
committed by
Trond Myklebust
parent
5eb064f939
commit
2818bf81a8
@ -78,7 +78,6 @@ gss_verify_mic_kerberos(struct gss_ctx *gss_ctx,
|
||||
struct krb5_ctx *ctx = gss_ctx->internal_ctx_id;
|
||||
int signalg;
|
||||
int sealalg;
|
||||
s32 checksum_type;
|
||||
char cksumdata[16];
|
||||
struct xdr_netobj md5cksum = {.len = 0, .data = cksumdata};
|
||||
s32 now;
|
||||
@ -115,12 +114,7 @@ gss_verify_mic_kerberos(struct gss_ctx *gss_ctx,
|
||||
if (signalg != SGN_ALG_DES_MAC_MD5)
|
||||
goto out;
|
||||
|
||||
/* compute the checksum of the message */
|
||||
|
||||
/* initialize the the cksum */
|
||||
checksum_type = CKSUMTYPE_RSA_MD5;
|
||||
|
||||
ret = make_checksum(checksum_type, ptr - 2, 8,
|
||||
ret = make_checksum(CKSUMTYPE_RSA_MD5, ptr - 2, 8,
|
||||
message_buffer, 0, &md5cksum);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user