|
|
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 |
[In] The Cert-C context. |
| inputBER |
[In] A pointer to the BER-encoded GENERAL_NAME value. |
| inputLen |
[In] The length, in Bytes, of the encoding. |
| altName |
[Out] A pointer to a pre-allocated GENERAL_NAME structure that contains the decoded information. |
-
Returns:
-
0 indicates success.
See Errors for error information. |