asn1: Add util der_show_heim_oid_sym() for use in gdb

This commit is contained in:
Nicolas Williams
2025-12-08 17:27:03 -06:00
parent 3c9d0f3033
commit ec942cd5a1

View File

@@ -339,3 +339,13 @@ der_print_heim_oid_sym(const heim_oid *oid, char delim, char **strp)
free(s1);
return 0;
}
void
der_show_heim_oid_sym(const heim_oid *oid, FILE *f)
{
char *s = NULL;
(void) der_print_heim_oid_sym(oid, ' ', &s);
(void) fprintf(f ? f : stderr, "OID is: %s\n", s);
free(s);
}