Method: OpenSSL::Timestamp::Request#nonce
- Defined in:
- ossl_ts.c
#nonce ⇒ Object
Returns the nonce (number used once) that the server shall include in its response.
call-seq:
request.nonce -> BN or nil
408 409 410 411 412 413 414 415 416 417 418 |
# File 'ossl_ts.c', line 408
static VALUE
ossl_ts_req_get_nonce(VALUE self)
{
TS_REQ *req;
const ASN1_INTEGER * nonce;
GetTSRequest(self, req);
if (!(nonce = TS_REQ_get_nonce(req)))
return Qnil;
return asn1integer_to_num(nonce);
}
|