rpcgss: krb5: ignore seed

We're currently not actually using seed or seed_init.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
J. Bruce Fields 2006-12-04 20:22:41 -05:00 committed by Trond Myklebust
parent d922a84a8b
commit 717757ad10
2 changed files with 6 additions and 7 deletions

View File

@ -42,8 +42,6 @@
struct krb5_ctx { struct krb5_ctx {
int initiate; /* 1 = initiating, 0 = accepting */ int initiate; /* 1 = initiating, 0 = accepting */
int seed_init;
unsigned char seed[16];
struct crypto_blkcipher *enc; struct crypto_blkcipher *enc;
struct crypto_blkcipher *seq; struct crypto_blkcipher *seq;
s32 endtime; s32 endtime;

View File

@ -137,12 +137,13 @@ gss_import_sec_context_kerberos(const void *p,
p = simple_get_bytes(p, end, &ctx->initiate, sizeof(ctx->initiate)); p = simple_get_bytes(p, end, &ctx->initiate, sizeof(ctx->initiate));
if (IS_ERR(p)) if (IS_ERR(p))
goto out_err_free_ctx; goto out_err_free_ctx;
p = simple_get_bytes(p, end, &ctx->seed_init, sizeof(ctx->seed_init)); /* The downcall format was designed before we completely understood
if (IS_ERR(p)) * the uses of the context fields; so it includes some stuff we
goto out_err_free_ctx; * just give some minimal sanity-checking, and some we ignore
p = simple_get_bytes(p, end, ctx->seed, sizeof(ctx->seed)); * completely (like the next twenty bytes): */
if (IS_ERR(p)) if (unlikely(p + 20 > end || p + 20 < p))
goto out_err_free_ctx; goto out_err_free_ctx;
p += 20;
p = simple_get_bytes(p, end, &tmp, sizeof(tmp)); p = simple_get_bytes(p, end, &tmp, sizeof(tmp));
if (IS_ERR(p)) if (IS_ERR(p))
goto out_err_free_ctx; goto out_err_free_ctx;