pub fn nid_to_short_name(nid: i32) -> Option<&'static CStr>Expand description
Look up the short name for a NID (e.g. 13 → "CN", 672 → "SHA256").
Returns None if the NID is not in OpenSSL’s object table.
The returned string points to OpenSSL’s static object table; its lifetime
is 'static and no allocation is performed.
Use this together with crate::pkey::Pkey::is_a to perform provider-aware key-type
comparison: pkey.is_a(nid_to_short_name(pknid)?).