Method: OpenSSL::Netscape::SPKI#to_text
- Defined in:
- ossl_ns_spki.c
#to_text ⇒ String
Returns a textual representation of this SPKI, useful for debugging purposes.
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
# File 'ossl_ns_spki.c', line 157 static VALUE ossl_spki_print(VALUE self) { NETSCAPE_SPKI *spki; BIO *out; GetSPKI(self, spki); if (!(out = BIO_new(BIO_s_mem()))) { ossl_raise(eSPKIError, NULL); } if (!NETSCAPE_SPKI_print(out, spki)) { BIO_free(out); ossl_raise(eSPKIError, NULL); } return ossl_membio2str(out); } |