The DHM context to free and clear. This may be \c NULL, in which case this function is a no-op. If it is not \c NULL, it must point to an initialized DHM context.
This function generates a DHM key pair and exports its public part together with the DHM parameters in the format used in a TLS ServerKeyExchange handshake message.