The quick answer to your problem is that no it isn't currently possible,
DH keys aren't handled in the public key ASN1 stuff at all. Also the DH
OpenSSL uses is a bit different from the PKIX DH.
The reason why you don't get any errors is that there is a bug in
OpenSSL. In particular X509_PUBKEY_set() in asn1/x_pubkey.c doesn't
check return codes properly. The function i2d_PublicKey will be
returning an error but this isn't trapped. I'll see that this gets
fixed.
Steve.
--
Dr Stephen N. Henson. UK based freelance Cryptographic Consultant.
For info see homepage at http://www.drh-consultancy.demon.co.uk/
Email: [EMAIL PROTECTED]
NOTE NEW (13/12/98) PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]