(kerberos5_is): Send a keyblock to krb5_verify_chekcsum
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2493 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -281,6 +281,12 @@ kerberos5_is(Authenticator *ap, unsigned char *data, int cnt)
|
|||||||
free (errbuf);
|
free (errbuf);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r = krb5_auth_con_getkey(context, auth_context, &key_block);
|
||||||
|
if(r){
|
||||||
|
abort ();
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
krb5_authenticator authenticator;
|
krb5_authenticator authenticator;
|
||||||
|
|
||||||
@@ -298,7 +304,7 @@ kerberos5_is(Authenticator *ap, unsigned char *data, int cnt)
|
|||||||
r = krb5_verify_checksum (context,
|
r = krb5_verify_checksum (context,
|
||||||
foo,
|
foo,
|
||||||
sizeof(foo),
|
sizeof(foo),
|
||||||
NULL,
|
key_block,
|
||||||
authenticator->cksum);
|
authenticator->cksum);
|
||||||
if (r) {
|
if (r) {
|
||||||
Data(ap, KRB_REJECT, "No checksum", -1);
|
Data(ap, KRB_REJECT, "No checksum", -1);
|
||||||
@@ -334,13 +340,6 @@ kerberos5_is(Authenticator *ap, unsigned char *data, int cnt)
|
|||||||
auth_context,
|
auth_context,
|
||||||
&key_block);
|
&key_block);
|
||||||
|
|
||||||
if (r)
|
|
||||||
r = krb5_auth_con_getkey(context, auth_context, &key_block);
|
|
||||||
|
|
||||||
if(r){
|
|
||||||
abort ();
|
|
||||||
}
|
|
||||||
|
|
||||||
if(key_block->keytype == KEYTYPE_DES){
|
if(key_block->keytype == KEYTYPE_DES){
|
||||||
Session_Key skey;
|
Session_Key skey;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user