PR: 2091
Submitted by: Martin Kaiser <lists@kaiser.cx>, Stephen Henson Approved by: steve@openssl.org If an OID has no short name or long name return the numerical representation.
This commit is contained in:
parent
bf6eea6536
commit
6757ef89b3
@ -483,11 +483,14 @@ int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name)
|
|||||||
s=OBJ_nid2ln(nid);
|
s=OBJ_nid2ln(nid);
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
s=OBJ_nid2sn(nid);
|
s=OBJ_nid2sn(nid);
|
||||||
|
if (s)
|
||||||
|
{
|
||||||
if (buf)
|
if (buf)
|
||||||
BUF_strlcpy(buf,s,buf_len);
|
BUF_strlcpy(buf,s,buf_len);
|
||||||
n=strlen(s);
|
n=strlen(s);
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
len=a->length;
|
len=a->length;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user