Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
OpenSSL::Timestamp::Response#token
() -> ::OpenSSL::PKCS7?
response.token → nil or OpenSSL::PKCS7
ext/openssl/ossl_ts.c
View on GitHub ↗
static VALUE
ossl_ts_resp_get_token(VALUE self)
{
TS_RESP *resp;
PKCS7 *p7;
GetTSResponse(self, resp);
if (!(p7 = TS_RESP_get_token(resp)))
return Qnil;
return ossl_pkcs7_new(p7);
}
If a timestamp token is present, this returns it in the form of a OpenSSL::PKCS7.