(DH_compute_key): check public key

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16588 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-01-18 15:58:43 +00:00
parent d9e74e4571
commit cb17a3698f

View File

@@ -199,6 +199,11 @@ int
DH_compute_key(unsigned char *shared_key,
const BIGNUM *peer_pub_key, DH *dh)
{
int codes;
if (!DH_check_pubkey(dh, peer_pub_key, &codes))
return 0;
return dh->meth->compute_key(shared_key, peer_pub_key, dh);
}