ikuzar, You cannot send the public key to a peer as-is. The DH structure contains bignums which must be serialized prior to transmission. Do you understand that DH is subject to a MITM attack unless the messages are signed or encrypted somehow?
If you insist on using the low-level objects, I'd suggest you read the following book first: http://www.amazon.com/Information-Security-Principles-Mark-Stamp/dp/0471738484 On Thu, Mar 24, 2011 at 5:35 PM, ikuzar <razuk...@gmail.com> wrote: > Hello, > I 'd like to know how to send dh->pub_key to peer ? > I know that to send const DH* const_dh, I have to convert it into pem format > like this i2d_DHparams(const_dh, &dhbuf);, then I send dhbuf. > But to send only dh->pub_key, I did not find any function to convert it into > PEM ... > Thanks for your help. > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org