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

Developer

API Reference

ICERTPARSE_SETPARAM()

Brew Release
Brew MP 1.0.2
See Also
Error Codes ICertParse ICertParse_SetCert() ICertParse_SetASN1OIDMap() ICertParse_GetParam() IParameters1_SetParam()
Description
Set a parsing configuration parameter. This function is inherited from IParameters1_SetParam().
Params
pif
[]:
[in] The interface pointer.
nId
[]:
[in] the parameter to set.
pParam
[]:
[in] points to data / buffer to set.
nParamLen
[]:
[in] size of the data pointed to by pParam.
Interface
Prototype
  •    ICertParse_SetParam(ICertParse *pif,
                           int nId, const void *pParam,
                           int nParamLen)
    
Return
  • AEE_SUCCESS: parameter successfully set. AEE_ENOSUCH: Parameter ID is unknown. AEE_EREADONLY: Parameters is read only. Other errors are possible per parameter type.
Side Effect
  • Depends on the parameter
Comments
The following parameters are supported CERTPARSE_PARAM_CERT: See ICertParse_SetCert(). CERTPARSE_PARAM_ASN1OIDMAP: See ICertParse_SetASN1OIDMap(). The length of the parameter given should be sizeof(void *). CERTPARSE_PARAM_PUBKEYUTILS: pParam points to an object with an IPubKeyUtil interface that implements key parsing. The length is ignored. IPubKeyUtil_AddRef() is called on the object. The caller may release the object and does not have to manage its lifetime in any way. The size of the parameter given should be sizeof(void *).