summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2012-09-06 14:51:09 +0200
committerTobias Klauser <tklauser@distanz.ch>2012-09-06 14:51:09 +0200
commitf81e1ad6d8e7ebaa52e98b274a4012cf8fa44862 (patch)
tree4d3383361f2832a9bc832ef8063339222596d28c /unittest
parentfe9fc3eaaa31ed3fd7cc7db47dfb70dcc6166969 (diff)
Add popen3 based on popenRWE (http://www.jukie.net/bart/blog/popenRWE)HEADmaster
Diffstat (limited to 'unittest')
0 files changed, 0 insertions, 0 deletions
/oid_registry.h?id=a77ad6ea0b0bb1f9d1f52ed494bd72a5fdde208e'>include/linux/oid_registry.h parent0b1568a4536ff287a87908d7fc35c05bd7736a53 (diff)
X.509: Implement simple static OID registry
Implement a simple static OID registry that allows the mapping of an encoded OID to an enum value for ease of use. The OID registry index enum appears in the: linux/oid_registry.h header file. A script generates the registry from lines in the header file that look like: <sp*>OID_foo,<sp*>/*<sp*>1.2.3.4<sp*>*/ The actual OID is taken to be represented by the numbers with interpolated dots in the comment. All other lines in the header are ignored. The registry is queries by calling: OID look_up_oid(const void *data, size_t datasize); This returns a number from the registry enum representing the OID if found or OID__NR if not. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/oid_registry.h')