Remove krb5_enctype references, and replace with
krb5_keytype where appropriate.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6679
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Sep 05 22:10:34 1995 Chris Provenzano (proven@mit.edu)
+
+ * accept_sec_context.c, init_sec_context.c, util_seed.c :
+ Remove krb5_enctype references, and replace with
+ krb5_keytype where appropriate.
+
Thu Aug 31 11:50:34 EDT 1995 Paul Park (pjpark@mit.edu)
* gssapiP_krb5.h - Add new V2 dispatch prototypes. Update arguments
to be compatible with V2 API. Add tokens for V2 integrity
/* fill in the encryption descriptors */
- krb5_use_cstype(context, &ctx->enc.eblock, ETYPE_RAW_DES_CBC);
+ krb5_use_keytype(context, &ctx->enc.eblock, KEYTYPE_DES_CBC_RAW);
ctx->enc.processed = 0;
if (code = krb5_copy_keyblock(context, ctx->subkey, &ctx->enc.key))
return(code);
/*SUPPRESS 113*/
ctx->enc.key->contents[i] ^= 0xf0;
- krb5_use_cstype(context, &ctx->seq.eblock, ETYPE_RAW_DES_CBC);
+ krb5_use_keytype(context, &ctx->seq.eblock, KEYTYPE_DES_CBC_RAW);
ctx->seq.processed = 0;
ctx->seq.key = ctx->subkey;
/* the encryption key is the session key XOR 0xf0f0f0f0f0f0f0f0 */
- krb5_use_cstype(context, &ctx->enc.eblock, ETYPE_RAW_DES_CBC);
+ krb5_use_keytype(context, &ctx->enc.eblock, KEYTYPE_DES_CBC_RAW);
ctx->enc.processed = 0;
if (code = krb5_copy_keyblock(context, ctx->subkey, &ctx->enc.key))
return(code);
/*SUPPRESS 113*/
ctx->enc.key->contents[i] ^= 0xf0;
- krb5_use_cstype(context, &ctx->seq.eblock, ETYPE_RAW_DES_CBC);
+ krb5_use_keytype(context, &ctx->seq.eblock, KEYTYPE_DES_CBC_RAW);
ctx->seq.processed = 0;
ctx->seq.key = ctx->subkey;
for (i=0; i<ed.key->length; i++)
ed.key->contents[i] = key->contents[key->length - 1 - i];
- krb5_use_cstype(kg_context, &ed.eblock, ETYPE_RAW_DES_CBC);
+ krb5_use_keytype(kg_context, &ed.eblock, KEYTYPE_DES_CBC_RAW);
ed.processed = 0;
code = kg_encrypt(&ed, NULL, zeros, seed, 16);