Summary
This article describes how to implement LM_A_CHECKOUTFILTER callback to enforce exact match of license version.
Synopsis
This article describes how to implement LM_A_CHECKOUTFILTER callback to enforce exact match of license version, or in other words, how to deny check-out when requested version is not same as licensed version.
Discussion
By default, license request of a certain version can check out a feature whose version number on FEATURE/INCREMENT line is higher than, or equal to the requested version. However, it's possible to enforce exact match of license version by implementing a custom filter function for the LM_A_CHECKOUTFILTER callback.
For example, before requesting a license feature of version "1.0", the filter function may be set for the LM_A_CHECKOUTFILTER callback as follows, so that lc_checkout() can only check out license from a FEATURE/INCREMENT line whose version number is exactly "1.0".
int myFilter (CONFIG *conf){
if (strcmp(conf->version, "1.0") == 0) {
return 0;
}
else {
return 1;
}
}
....
lc_set_attr(lm_job, LM_A_CHECKOUTFILTER, (LM_A_VAL_TYPE)myFilter);
lc_checkout(lm_job, feature, "1.0", nlic, LM_CO_NOWAIT, &code, LM_DUP_NONE);Related Articles
How to Implement Time-Zone-Based Licensing in FlexNet Licensing 251Number of Views Select Exact Matches or Source Code Matches when creating FlexNet Code Insight Scan Profile 6Number of Views How to implement multiple vendor-defined hostid's 31Number of Views Oracle Database or Option license "At risk" with message "Option License does not match instance" 45Number of Views How to change the FNM password in the configurator to match a new database password 10Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago