Format an ASN1_OBJECT as text (dotted OID and/or registered name).
Declared in <openssl/objects.h>
int
OBJ_obj2txt(
char* buf,
int buf_len,
ASN1_OBJECT const* a,
int no_name);
Length of the text (excluding NUL) that was or would be written, or -1 on error.
| Name | Description |
|---|---|
| buf | Destination buffer for the NUL-terminated text, or NULL to measure length only. |
| buf_len | Capacity of buf in bytes when non-NULL. |
| a | Object identifier to render. |
| no_name | When non-zero, always emit numeric OID form; when zero, prefer a known name. |