Mask nonce to 32 bits. Fix some type conflicts.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3094 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -276,10 +276,12 @@ make_pa_enc_timestamp(krb5_context context, PA_DATA *pa, krb5_keyblock *key)
|
|||||||
EncryptedData encdata;
|
EncryptedData encdata;
|
||||||
krb5_error_code ret;
|
krb5_error_code ret;
|
||||||
int32_t sec, usec;
|
int32_t sec, usec;
|
||||||
|
unsigned usec2;
|
||||||
|
|
||||||
krb5_us_timeofday (context, &sec, &usec);
|
krb5_us_timeofday (context, &sec, &usec);
|
||||||
p.patimestamp = sec;
|
p.patimestamp = sec;
|
||||||
p.pausec = &usec;
|
usec2 = usec;
|
||||||
|
p.pausec = &usec2;
|
||||||
|
|
||||||
ret = encode_PA_ENC_TS_ENC(buf + sizeof(buf) - 1,
|
ret = encode_PA_ENC_TS_ENC(buf + sizeof(buf) - 1,
|
||||||
sizeof(buf),
|
sizeof(buf),
|
||||||
@@ -493,6 +495,7 @@ krb5_get_in_cred(krb5_context context,
|
|||||||
opts.i = options;
|
opts.i = options;
|
||||||
|
|
||||||
krb5_generate_random_block (&nonce, sizeof(nonce));
|
krb5_generate_random_block (&nonce, sizeof(nonce));
|
||||||
|
nonce &= 0xffffffff;
|
||||||
|
|
||||||
ret = init_as_req (context,
|
ret = init_as_req (context,
|
||||||
opts,
|
opts,
|
||||||
|
Reference in New Issue
Block a user