]>
git.saurik.com Git - apple/security.git/blob - CertTool/cdsaUtils/oidParser.h
2 * oidParser.cpp - parse an Intel-style OID, with the assistance of dumpasn1.cfg.
3 * The config file islooked dfor int e following locations:
5 * current working directory (.)
6 * parent directory (..)
7 * The directory specified by the environment variable LOCAL_BUILD_DIR
9 * OidParser will still work if the config file is not found, but OIDs will be
10 * dispayed in raw hex format.
13 #ifndef _OID_PARSER_H_
14 #define _OID_PARSER_H_
16 #include <Security/cssmtype.h>
19 * Generated strings go into a client-allocated char array of
22 #define OID_PARSER_STRING_SIZE 120
27 CSSM_DATA_PTR configData
; // contents of dumpasn1.cfg
29 /* costruct with noConfig true - skip reading config file */
30 OidParser(bool noConfig
=false);
34 * Parse an Intel-style OID, generating a C string in
35 * caller-supplied buffer.
38 const unsigned char *oidp
,
44 #endif /* _OID_PARSER_H_ */