diff options
| author | Theo Buehler <tb@openbsd.org> | 2025-12-05 14:15:08 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-12-06 16:50:17 +0000 |
| commit | 8d3da814c03e06ce331e7022b87500943b57fa4e (patch) | |
| tree | d5d5dbc99f44bfdba2680d9f5ddd7f4064836033 | |
| parent | 38ad0806d7270926ff6fc5c23092aa3e822f386b (diff) | |
[ruby/openssl] Convert ossl_x509ext.c to opaque ASN1_STRING
https://github.com/ruby/openssl/commit/a41cf28bab
| -rw-r--r-- | ext/openssl/ossl_x509ext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_x509ext.c b/ext/openssl/ossl_x509ext.c index 85e2eff7a2..ef66ecc3fe 100644 --- a/ext/openssl/ossl_x509ext.c +++ b/ext/openssl/ossl_x509ext.c @@ -402,7 +402,7 @@ ossl_x509ext_get_value_der(VALUE obj) if ((value = X509_EXTENSION_get_data(ext)) == NULL) ossl_raise(eX509ExtError, NULL); - return rb_str_new((const char *)value->data, value->length); + return asn1str_to_str(value); } static VALUE |
