truncate the number so it will if in a signed 32bit integer, apples pkinit uses signed int32 for the pkinit nonce
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24053 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1244,7 +1244,7 @@ init_cred_loop(krb5_context context,
|
||||
|
||||
/* Set a new nonce. */
|
||||
krb5_generate_random_block (&ctx->nonce, sizeof(ctx->nonce));
|
||||
ctx->nonce &= 0xffffffff;
|
||||
ctx->nonce &= 0x7fffffff;
|
||||
/* XXX these just needs to be the same when using Windows PK-INIT */
|
||||
ctx->pk_nonce = ctx->nonce;
|
||||
|
||||
|
Reference in New Issue
Block a user