Licensing subsystem constantly monitors licensing files to ensure uninterrupted experience. If you need to add a new license KEY file or replace the old one, you can add this new file to the folder with KAV SDK. Added KEY file is automatically applied in the following cases:
Requires that KAV_SHT_ENGINE_KSN is specified at initialization of KAV SDK; there is no need to restart KAV SDK.
Whenever an issue occurs at start, before KAV SDK is yet initialized, it is handled in SDK using custom error codes or system codes. Other issues may occur when an already initialized and running copy of KAV SDK re-validates licenses and seeks for the newly added. In this case the SDK handles them using notifications through the callback function provided by your application.
If the KEY cannot be applied on initialization, specific error code is returned, as listed below:
KAV_E_LICENSE_LIMITEDS_FALSEKAV_E_PRODUCT_NOT_REGISTEREDKAV_E_LICENSE_EXPIRED_OR_MISSINGIf a licensing problem occurs with a running copy of KAV SDK, the SDK calls your callback function with an event notification code, which can be as follows:
EVENT_LICENSE_FUNCTIONAL_LEVEL_CHANGEDEVENT_LICENSE_MISSING_OR_CORRUPTEDEVENT_LICENSE_EXPIREDEVENT_KSN_LICENSE_EXPIREDThese error codes and event notification codes are explained in their respective sections, see below.
Lookup locations of license files
KAV SDK has pre-defined locations where it looks for license files. By default, the SDK monitors program folder for:
The program folder containing image file of your application that integrates KAV SDK.
On Windows platform, this is the folder with kave8.dll library. On a Unix-like platform, this is the directory with kavehost ELF file (for example, \opt\kav\sdk8l3\bin\), or the location with the libsdk8l3.so library.
If you want to use default locations, please be sure to place your KEY and appinfo.kli files to any of the specified locations.
You may specify custom locations of license files:
Use pLicensingFolder parameter of kaveInitialize or kaveInitializeEx functions.
Use LicensePath parameter in the configuration file for kavehost service.
When custom locations are specified, KAV SDK monitors these locations but also keeps monitoring the default locations.