Commit 709a395d authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

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.
parent b5990067
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -483,11 +483,14 @@ int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name)
		s=OBJ_nid2ln(nid);
		if (s == NULL)
			s=OBJ_nid2sn(nid);
		if (s)
			{
			if (buf)
				BUF_strlcpy(buf,s,buf_len);
			n=strlen(s);
			return n;
			}
		}


	len=a->length;