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

Developer

API Reference

ICERTPARSE_GETPARAM()

Brew Release
Brew MP 1.0.2
See Also
Error Codes ICertParse ICertParse_SetParam() IParameters1 IParameters1_GetParam()
Description
This function is inherited from IParameters1_GetParam().
Params
pif
[]:
[in] The interface pointer.
nId
[]:
[in] ID of the particular parameter to get.
pParamBuf
[]:
[out] Pointer to buffer to which parameter is copied. nParamBufLen [in] The length of pParamBuf.
pnParamLen
[]:
[out] Pointer to the full length of the parameter data.
Interface
Prototype
  •    ICertParse_GetParam(ICertParse     *pif,
                           int             nId, 
                           void           *pParamBuf,
                           int             nParamBufLen,
                           int            *pnParamLen)
    
Return
  • AEE_SUCCESS: parameter successfully set. AEE_ENOSUCH: Parameter ID is unknown.
Side Effect
  • None
Comments
The following parameters are supported: CERTPARSE_PARAM_CERT: Returns AEE_ENOSUCH. Use ICertParse_GetField with parameter CERTDATA_FIELD_RAW_CERT to get the unparsed certificate. CERTPARSE_PARAM_ASN1OIDMAP: Returns pointer to ASN1OID map if one is set, or NULL. The length of the data returned is always the size of a pointer to the map. nParamBufLen must be >= sizeof(void *). CERTPARSE_PARAM_PUBKEYUTILS: Returns AEE_ENOSUCH. CERTPARSE_PARAM_VERSION: Returns the version of the certificate parser. Use this to track versions of the implementation if necessary. Returned parameter is an integer. CERTPARSE_PARAM_CAPABILITIES: Returns a bit mask of capabilities beyond the base ones. None are defined as of writing this so it returns 0. Use this to check if the parser supports some feature. Returned parameter is an integer.