|
Decodes a BER-encoded GENERAL_NAME value into a GENERAL_NAME data structure. The caller must allocate memory for the GENERAL_NAME structure itself, but does not need to allocate memory to hold the members of the GENERAL_NAME structure. The caller is responsible for freeing the memory associated with the GENERAL_NAME structure itself, and should call C_FreeGeneralName() to free the memory used by the members of the GENERAL_NAME structure. -
Parameters:
-
ctx |
This input parameter specifies the Cert-C context. |
inputBER |
This input parameter points to the BER-encoded GENERAL_NAME value. |
inputLen |
This input parameter is the length, in bytes, of the encoding. |
genName |
This output parameter points to a pre-allocated GENERAL_NAME structure that contains the decoded information. |
-
Returns:
-
If successful, returns
0 . If not, returns a Cert-C error code. |