Method: OpenSSL::Netscape::SPKI#challenge
- Defined in:
- ossl_ns_spki.c
#challenge ⇒ String
Returns the challenge string associated with this SPKI.
227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'ossl_ns_spki.c', line 227 static VALUE ossl_spki_get_challenge(VALUE self) { NETSCAPE_SPKI *spki; GetSPKI(self, spki); if (spki->spkac->challenge->length <= 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); } |