Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ILicense2::createLicenseFile2 ( const P6WCHAR pFilePath,
P6DIGESTS  hashAlgorithm,
P6BSTR pHash 
)
pure virtual

Create a new license file at the "pFilePath" location.

The calling software should make one or more invocations of setPropInt and setPropString before calling this function. This function will write out all properties defined by setPropInt and setPropSting to the new license file but will NOT then seal its contents with a signature. Instead it will return the hash of its contents so that an external HSM can finish the job and seal its contents with a signature so that it cannot be tampered with.

Parameters
pFilePath[ in ] Location to create the new license file.
hashAlgorithm[ in ] the caller chooses which hash algorithm to be used for the pHash output
pHash[ in/out ] In input an empty buffer of the required size for the hash algorithm chosen, on output the calcualted hash and its length properly set.
Returns
standard error codes.
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eAccessLICENSE_CREATE is not set.
P6R::eInvalidArgpFilePath or pHash was set to NULL.
P6R::eTooSmallNo properties defined, at least one required, or pHash->pString is too small for generated hash
P6R::eNotFoundInternal error