Method: OpenSSL::Netscape::SPKI#challenge=
- Defined in:
- ossl_ns_spki.c
#challenge=(str) ⇒ String
Parameters
-
str - the challenge string to be set for this instance
Sets the challenge to be associated with the SPKI. May be used by the server, e.g. to prevent replay.
252 253 254 255 256 257 258 259 260 261 262 263 264 265 |
# File 'ossl_ns_spki.c', line 252
static VALUE
ossl_spki_set_challenge(VALUE self, VALUE str)
{
NETSCAPE_SPKI *spki;
StringValue(str);
GetSPKI(self, spki);
if (!ASN1_STRING_set(spki->spkac->challenge, RSTRING_PTR(str),
RSTRING_LENINT(str))) {
ossl_raise(eSPKIError, NULL);
}
return str;
}
|