API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ICERTPARSE_SETASN1OIDMAP()

Brew Release
Brew MP 1.0.2
See Also
Error Codes ICertParse ICertParse_GetField() ICertParse_GetFieldPart()
Description
Add additional mapping from OID to ASN1OIDs
Params
pif
[]:
The interface pointer.
cpMap
[]:
The translation map.
Interface
Prototype
  •    void ICertParse_SetASN1OIDMap
       (
          ICertParse *pif,
          const ASN1OIDMap *cpMap
       );
    
Return
  • None
Side Effect
  • Affects the ANS1OID returned by ICertParse_GetFieldPart as well as what ASN1OIDS can be requested in CertFieldRequest.
Comments
This adds to the map for this instance of ICertParse. If a bogus map is passed in, then expect GetField and GetFieldPart to crash because they dereference it. NULL can be passed in to remove a map previously set. The life time of the storage of the map must be longer than that of the ICertParse instance. It is not copied. Calling this function is the same as calling ICertParse_SetParam() for CERTPARSE_PARAM_ASN1OIDMAP.