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.
-
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize was not made before this call. |
P6R::eAccess | LICENSE_CREATE is not set. |
P6R::eInvalidArg | pFilePath or pHash was set to NULL. |
P6R::eTooSmall | No properties defined, at least one required, or pHash->pString is too small for generated hash |
P6R::eNotFound | Internal error |