Re: bad client public DH value




What's your p value, and did you perhaps make a typo and really mean that you set *g* to 2? If so, maybe this is the reason: in dh.c:

/* if g==2 and bits_set==1 then computing log_g(dh_pub) is trivial */
if (bits_set > 1)
return 1;

logit("invalid public DH value (%d/%d)", bits_set, BN_num_bits(dh->p));
return 0;

--
Richard Silverman
res@xxxxxxxx

.