(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:
		| @@ -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); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand