instance method
OpenSSL::Timestamp::Request#algorithm
() -> ::String
request.algorithm → string
ext/openssl/ossl_ts.c
View on GitHub ↗
static VALUE
ossl_ts_req_get_algorithm(VALUE self)
{
TS_REQ *req;
TS_MSG_IMPRINT *mi;
X509_ALGOR *algor;
const ASN1_OBJECT *obj;
GetTSRequest(self, req);
mi = TS_REQ_get_msg_imprint(req);
algor = TS_MSG_IMPRINT_get_algo(mi);
X509_ALGOR_get0(&obj, NULL, NULL, algor);
return ossl_asn1obj_to_string(obj);
}
Returns the ‘short name’ of the object identifier that represents the algorithm that was used to create the message imprint digest.