mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/openssl] Convert ossl_ns_spki.c to opaque ASN1_STRING
https://github.com/ruby/openssl/commit/0941ebbda5
This commit is contained in:
parent
98c151b0e5
commit
a07997bf81
@ -230,13 +230,12 @@ ossl_spki_get_challenge(VALUE self)
|
||||
NETSCAPE_SPKI *spki;
|
||||
|
||||
GetSPKI(self, spki);
|
||||
if (spki->spkac->challenge->length <= 0) {
|
||||
if (ASN1_STRING_length(spki->spkac->challenge) <= 0) {
|
||||
OSSL_Debug("Challenge.length <= 0?");
|
||||
return rb_str_new(0, 0);
|
||||
}
|
||||
|
||||
return rb_str_new((const char *)spki->spkac->challenge->data,
|
||||
spki->spkac->challenge->length);
|
||||
return asn1str_to_str(spki->spkac->challenge);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user