Method: OpenSSL::ASN1::ObjectId#ln
- Defined in:
- ossl_asn1.c
#ln ⇒ String #long_name ⇒ String Also known as: long_name
The long name of the ObjectId, as defined in <openssl/objects.h>.
1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 |
# File 'ossl_asn1.c', line 1275
static VALUE
ossl_asn1obj_get_ln(VALUE self)
{
VALUE val, ret = Qnil;
int nid;
val = ossl_asn1_get_value(self);
if ((nid = OBJ_txt2nid(StringValueCStr(val))) != NID_undef)
ret = rb_str_new2(OBJ_nid2ln(nid));
return ret;
}
|