instance method
OpenSSL::Timestamp::TokenInfo#nonce
() -> ::OpenSSL::BN?
token_info.nonce → BN or nil
ext/openssl/ossl_ts.c
View on GitHub ↗
static VALUE
ossl_ts_token_info_get_nonce(VALUE self)
{
TS_TST_INFO *info;
const ASN1_INTEGER *nonce;
GetTSTokenInfo(self, info);
if (!(nonce = TS_TST_INFO_get_nonce(info)))
return Qnil;
return asn1integer_to_num(nonce);
}
If the timestamp token is valid then this field contains the same nonce that was passed to the timestamp server in the initial Request.