bridgeic
February 10th, 2015, 22:56
Self-defined VENDOR_STRING, how to merge into Flexlm SDK to get lmcrypt.exe? Is there related interface?
Reference http://www.woodmann.com/IDArchive/ID-RIP/database/essays/amante/flexlm2.htm
Fox example, I want create lmcrypt.exe to generate license with VENDOR_STRING="Platform:NT". I do settings below in lmcrypt.c and lmkeyfil.c and link them with lmcrypt.exe in the makefile.
lmcrypt.c
extern char *my_filter( CONFIG *);
......
lc_set_attr(lm_job, LM_A_CHECKOUTFILTER,(LM_A_VAL_TYPE)my_filter);
lmkeyfil.c
int my_filter( CONFIG *input)
{
char *vendor_string;
input->lc_vendor_def = "Platform:NT";
// fprintf("abc=s%", vendor_string);
return (0); // success because the vendor string is OK
}
Compile succeed, but can't get VENDOR_STRING="Platform:NT" with lmcrypt.exe, why? Anything wrong with my settings? Is there related interface in Flexlm SDK?
Reference http://www.woodmann.com/IDArchive/ID-RIP/database/essays/amante/flexlm2.htm
Fox example, I want create lmcrypt.exe to generate license with VENDOR_STRING="Platform:NT". I do settings below in lmcrypt.c and lmkeyfil.c and link them with lmcrypt.exe in the makefile.
lmcrypt.c
extern char *my_filter( CONFIG *);
......
lc_set_attr(lm_job, LM_A_CHECKOUTFILTER,(LM_A_VAL_TYPE)my_filter);
lmkeyfil.c
int my_filter( CONFIG *input)
{
char *vendor_string;
input->lc_vendor_def = "Platform:NT";
// fprintf("abc=s%", vendor_string);
return (0); // success because the vendor string is OK
}
Compile succeed, but can't get VENDOR_STRING="Platform:NT" with lmcrypt.exe, why? Anything wrong with my settings? Is there related interface in Flexlm SDK?