Zero cred, and store session key properly in auth-context.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4652 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -154,6 +154,7 @@ init_auth
|
|||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset(&this_cred, 0, sizeof(this_cred));
|
||||||
this_cred.client = (*context_handle)->source;
|
this_cred.client = (*context_handle)->source;
|
||||||
this_cred.server = (*context_handle)->target;
|
this_cred.server = (*context_handle)->target;
|
||||||
this_cred.times.endtime = 0;
|
this_cred.times.endtime = 0;
|
||||||
@@ -169,15 +170,9 @@ init_auth
|
|||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
krb5_auth_con_setkey(gssapi_krb5_context,
|
||||||
/* XXX ugly */
|
(*context_handle)->auth_context,
|
||||||
krb5_keyblock *c;
|
&cred->session);
|
||||||
krb5_auth_con_getkey(gssapi_krb5_context,
|
|
||||||
(*context_handle)->auth_context,
|
|
||||||
&c);
|
|
||||||
cred->session = *c;
|
|
||||||
free(c);
|
|
||||||
}
|
|
||||||
|
|
||||||
kret = gssapi_krb5_create_8003_checksum (input_chan_bindings,
|
kret = gssapi_krb5_create_8003_checksum (input_chan_bindings,
|
||||||
flags,
|
flags,
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -154,6 +154,7 @@ init_auth
|
|||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset(&this_cred, 0, sizeof(this_cred));
|
||||||
this_cred.client = (*context_handle)->source;
|
this_cred.client = (*context_handle)->source;
|
||||||
this_cred.server = (*context_handle)->target;
|
this_cred.server = (*context_handle)->target;
|
||||||
this_cred.times.endtime = 0;
|
this_cred.times.endtime = 0;
|
||||||
@@ -169,15 +170,9 @@ init_auth
|
|||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
krb5_auth_con_setkey(gssapi_krb5_context,
|
||||||
/* XXX ugly */
|
(*context_handle)->auth_context,
|
||||||
krb5_keyblock *c;
|
&cred->session);
|
||||||
krb5_auth_con_getkey(gssapi_krb5_context,
|
|
||||||
(*context_handle)->auth_context,
|
|
||||||
&c);
|
|
||||||
cred->session = *c;
|
|
||||||
free(c);
|
|
||||||
}
|
|
||||||
|
|
||||||
kret = gssapi_krb5_create_8003_checksum (input_chan_bindings,
|
kret = gssapi_krb5_create_8003_checksum (input_chan_bindings,
|
||||||
flags,
|
flags,
|
||||||
|
Reference in New Issue
Block a user