Method: OpenSSL::Timestamp::Response#token

Defined in:
ossl_ts.c

#tokenObject

If a timestamp token is present, this returns it in the form of a OpenSSL::PKCS7.

call-seq:

response.token -> nil or OpenSSL::PKCS7


693
694
695
696
697
698
699
700
701
702
703
# File 'ossl_ts.c', line 693

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);
}