Method: OpenSSL::Timestamp::TokenInfo#version

Defined in:
ossl_ts.c

#versionObject

Returns the version number of the token info. With compliant servers, this value should be 1 if present. If status is GRANTED or GRANTED_WITH_MODS.

call-seq:

token_info.version -> Integer or nil


930
931
932
933
934
935
936
937
# File 'ossl_ts.c', line 930

static VALUE
ossl_ts_token_info_get_version(VALUE self)
{
    TS_TST_INFO *info;

    GetTSTokenInfo(self, info);
    return LONG2NUM(TS_TST_INFO_get_version(info));
}