Skip to content

Commit a41cf28

Browse files
committed
Convert ossl_x509ext.c to opaque ASN1_STRING
1 parent 8945f37 commit a41cf28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/openssl/ossl_x509ext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ ossl_x509ext_get_value_der(VALUE obj)
402402
if ((value = X509_EXTENSION_get_data(ext)) == NULL)
403403
ossl_raise(eX509ExtError, NULL);
404404

405-
return rb_str_new((const char *)value->data, value->length);
405+
return asn1str_to_str(value);
406406
}
407407

408408
static VALUE

0 commit comments

Comments
 (0)