instance method
OpenSSL::PKey::DH#public?
() -> bool
dh.public? → true | false
ext/openssl/ossl_pkey_dh.c
View on GitHub ↗
static VALUE
ossl_dh_is_public(VALUE self)
{
OSSL_3_const DH *dh;
const BIGNUM *bn;
GetDH(self, dh);
DH_get0_key(dh, &bn, NULL);
return bn ? Qtrue : Qfalse;
}
Indicates whether this DH instance has a public key associated with it or not. The public key may be retrieved with DH#pub_key.