Method: OpenSSL::ASN1::ObjectId#sn
- Defined in:
- ossl_asn1.c
#sn ⇒ String #short_name ⇒ String Also known as: short_name
The short name of the ObjectId, as defined in <openssl/objects.h>.
1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 |
# File 'ossl_asn1.c', line 1255
static VALUE
ossl_asn1obj_get_sn(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_nid2sn(nid));
return ret;
}
|