to_text()
public
Prints all parameters of key to buffer INSECURE: PRIVATE INFORMATIONS CAN
LEAK OUT!!! Don’t use :-)) (I’s up to you)
static VALUE
ossl_dh_to_text(VALUE self)
{
DH *dh;
BIO *out;
VALUE str;
GetDH(self, dh);
if (!(out = BIO_new(BIO_s_mem()))) {
ossl_raise(eDHError, NULL);
}
if (!DHparams_print(out, dh)) {
BIO_free(out);
ossl_raise(eDHError, NULL);
}
str = ossl_membio2str(out);
return str;
}