18 if (RB_TYPE_P(obj,
T_FILE))
21 bio = BIO_new_mem_buf(
RSTRING_PTR(obj), RSTRING_LENINT(obj));
35 BIO_get_mem_ptr(bio, &
buf);
#define RSTRING_PTR(string)
void rb_jump_tag(int tag)
Continues the exception caught by rb_protect() and rb_eval_string_protect().
ID rb_intern(const char *)
VALUE ossl_str_new(const char *ptr, long len, int *pstate)
void ossl_raise(VALUE exc, const char *fmt,...)
BIO * ossl_obj2bio(volatile VALUE *pobj)
VALUE ossl_membio2str(BIO *bio)