to_text() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
static VALUE
ossl_x509_to_text(VALUE self)
    X509 *x509;
    BIO *out;
    VALUE str;

    GetX509(self, x509);

    out = BIO_new(BIO_s_mem());
    if (!out) ossl_raise(eX509CertError, NULL);

    if (!X509_print(out, x509)) {
        ossl_raise(eX509CertError, NULL);
    str = ossl_membio2str(out);

    return str;
Register or log in to add new notes.