aboutsummaryrefslogtreecommitdiffstats
path: root/ossl_pkey_dh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ossl_pkey_dh.c')
-rw-r--r--ossl_pkey_dh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ossl_pkey_dh.c b/ossl_pkey_dh.c
index ea507b5..87db5c8 100644
--- a/ossl_pkey_dh.c
+++ b/ossl_pkey_dh.c
@@ -122,7 +122,7 @@ ossl_dh_s_new_from_pem(VALUE klass, VALUE buffer)
BIO *in = NULL;
VALUE obj;
- Check_SafeStr(buffer);
+ Check_Type(buffer, T_STRING);
if (!(in = BIO_new_mem_buf(RSTRING(buffer)->ptr, RSTRING(buffer)->len)))
OSSL_Raise(eDHError, "");