Imports the contents of the specified PKCS12 file into the object.
The getXXXX(), enumCACert() and exportP12() method can then be called to retrieve the data or export it back out to an PKCS12 file.
- Parameters
-
pszFilename | [ in ] A pointer to a NULL terminated string containg the pathname of the PkCS12 file to load. |
pszPassword | [ in ] (optional) A pointer to a NULL terminated (narrow) string containing the passphrase to us to decrypt the file specified by pszFilename. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | The initialize() method must be called successfully before call any other method. |
P6R::eInvalidArg | pszFilename was NULL. |
P6R::eInvalidPassPhrase | The file is encrypted and the provided passphrase is not correct. |
P6R::ePassPhraseRequired | The file is encrypted but no passphrase was provided. |