Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IPkcs12::import ( const P6WCHAR pszFilename,
const P6CHAR pszPassword 
)
pure virtual

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
SuccessP6R::eOk 
FailureP6R::eNotInitializedThe initialize() method must be called successfully before call any other method.
P6R::eInvalidArgpszFilename was NULL.
P6R::eInvalidPassPhraseThe file is encrypted and the provided passphrase is not correct.
P6R::ePassPhraseRequiredThe file is encrypted but no passphrase was provided.