Commit 717757ad authored by J. Bruce Fields's avatar J. Bruce Fields Committed by Trond Myklebust

rpcgss: krb5: ignore seed

We're currently not actually using seed or seed_init.
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent d922a84a
...@@ -42,8 +42,6 @@ ...@@ -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;
......
...@@ -137,12 +137,13 @@ gss_import_sec_context_kerberos(const void *p, ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment