From: David Howells Date: Fri, 21 Sep 2012 22:30:51 +0000 (+0100) Subject: X.509: Add utility functions to render OIDs as strings X-Git-Tag: v3.7-rc1~2^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f73175d0375a7c1b3ae625e76acee8b39741f28;p=pandora-kernel.git X.509: Add utility functions to render OIDs as strings Add a pair of utility functions to render OIDs as strings. The first takes an encoded OID and turns it into a "a.b.c.d" form string: int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize); The second takes an OID enum index and calls the first on the data held therein: int sprint_OID(enum OID oid, char *buffer, size_t bufsize); Signed-off-by: David Howells Signed-off-by: Rusty Russell --- Reading git-diff-tree failed