summaryrefslogtreecommitdiffstats
path: root/OpenSSL/PKey
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSSL/PKey')
-rw-r--r--OpenSSL/PKey/DH.html2
-rw-r--r--OpenSSL/PKey/DSA.html2
-rw-r--r--OpenSSL/PKey/RSA.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/OpenSSL/PKey/DH.html b/OpenSSL/PKey/DH.html
index 83e64b0e..00d92ed5 100644
--- a/OpenSSL/PKey/DH.html
+++ b/OpenSSL/PKey/DH.html
@@ -794,7 +794,7 @@ ossl_dh_to_public_key(VALUE self)
GetDH(self, orig_dh);
dh = DHparams_dup(orig_dh); /* err check perfomed by dh_instance */
- obj = dh_instance(CLASS_OF(self), dh);
+ obj = dh_instance(rb_obj_class(self), dh);
if (obj == Qfalse) {
DH_free(dh);
ossl_raise(eDHError, NULL);
diff --git a/OpenSSL/PKey/DSA.html b/OpenSSL/PKey/DSA.html
index 9a61d72d..f39ab3fa 100644
--- a/OpenSSL/PKey/DSA.html
+++ b/OpenSSL/PKey/DSA.html
@@ -604,7 +604,7 @@ ossl_dsa_to_public_key(VALUE self)
(i2d_of_void *)i2d_DSAPublicKey, (d2i_of_void *)d2i_DSAPublicKey, (char *)(dsa))
dsa = DSAPublicKey_dup(EVP_PKEY_get0_DSA(pkey));
#undef DSAPublicKey_dup
- obj = dsa_instance(CLASS_OF(self), dsa);
+ obj = dsa_instance(rb_obj_class(self), dsa);
if (obj == Qfalse) {
DSA_free(dsa);
ossl_raise(eDSAError, NULL);
diff --git a/OpenSSL/PKey/RSA.html b/OpenSSL/PKey/RSA.html
index dec6e872..e167ce92 100644
--- a/OpenSSL/PKey/RSA.html
+++ b/OpenSSL/PKey/RSA.html
@@ -944,7 +944,7 @@ ossl_rsa_to_public_key(VALUE self)
GetPKeyRSA(self, pkey);
/* err check performed by rsa_instance */
rsa = RSAPublicKey_dup(EVP_PKEY_get0_RSA(pkey));
- obj = rsa_instance(CLASS_OF(self), rsa);
+ obj = rsa_instance(rb_obj_class(self), rsa);
if (obj == Qfalse) {
RSA_free(rsa);
ossl_raise(eRSAError, NULL);