Method: OpenSSL::Timestamp::Request#algorithm

Defined in:
ossl_ts.c

#algorithmObject

Returns the ‘short name’ of the object identifier that represents the algorithm that was used to create the message imprint digest.

call-seq:
     request.algorithm    -> string


230
231
232
233
234
235
236
237
238
239
240
241
# File 'ossl_ts.c', line 230

static VALUE
ossl_ts_req_get_algorithm(VALUE self)
{
    TS_REQ *req;
    TS_MSG_IMPRINT *mi;
    X509_ALGOR *algor;

    GetTSRequest(self, req);
    mi = TS_REQ_get_msg_imprint(req);
    algor = TS_MSG_IMPRINT_get_algo(mi);
    return get_asn1obj(algor->algorithm);
}