1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-16 18:47:32 -05:00

Add more verbose logging during DH key exchange.

The event log messages generated during DH key exchange now include both the
modulus size and hash algorithm used as well as whether the DH parameters
are from one of the standardized groups or were supplied by the server
during Group Exchange.
This commit is contained in:
Mark Tolley
2018-11-18 13:39:46 +00:00
committed by Simon Tatham
parent 4262ce45ca
commit 86e44d3988
3 changed files with 17 additions and 3 deletions

View File

@ -209,6 +209,14 @@ struct dh_ctx *dh_setup_gex(Bignum pval, Bignum gval)
return ctx;
}
/*
* Return size of DH modulus p.
*/
int dh_modulus_bit_size(const struct dh_ctx *ctx)
{
return bignum_bitcount(ctx->p);
}
/*
* Clean up and free a context.
*/