generate a random nonce.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2209 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -99,7 +99,7 @@ krb5_get_credentials (krb5_context context,
|
||||
a.req_body.from = NULL;
|
||||
a.req_body.till = in_creds->times.endtime;
|
||||
a.req_body.rtime = NULL;
|
||||
a.req_body.nonce = getpid();
|
||||
krb5_generate_random_block (&a.req_body.nonce, sizeof(a.req_body.nonce));
|
||||
a.req_body.additional_tickets = NULL;
|
||||
a.req_body.enc_authorization_data = NULL;
|
||||
|
||||
|
@@ -189,7 +189,7 @@ krb5_get_in_tkt(krb5_context context,
|
||||
#endif
|
||||
|
||||
a.req_body.till = creds->times.endtime;
|
||||
a.req_body.nonce = 17; /* XXX */
|
||||
krb5_generate_random_block (&a.req_body.nonce, sizeof(a.req_body.nonce));
|
||||
if (etypes)
|
||||
abort ();
|
||||
else {
|
||||
|
Reference in New Issue
Block a user