heimdal  7.7.0
About: Heimdal is a free implementation of Kerberos 5 (a system for authenticating users and services on a network).
  Fossies Dox: heimdal-7.7.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

DH - Diffie-Hellman key exchange

Diffie-Hellman key exchange is a protocol that allows two parties to establish a shared secret key.

Include and example how to use DH_new() and friends here.

See the library functions here: Diffie-Hellman functions