Log in

View Full Version : FlexLM makekey


NoLOcKs
February 27th, 2007, 18:13
Hi folks

I would like to make a newbie question about FlexLm ?
I fill my lmcode.h ( SDK 7.2 )with the values extracted from "Zendenc Tutorial"

vendorcode+4 which is data[0] : DCE0A0A2
vendorcode+8 which is data[1] : FC58117B

job+8 : D3B4B0C2
job+c : 81042659
job+10 : D493C07C

Running calcseed reveals the following :

ENCRYPTION_SEED1 : FA5410DE
ENCRYPTION_SEED2 : DAECA107

Thus genlic ( shipped with this SDK ) launch perfectly without error message. But I would like to generate a license with makekey, but it show the following error message:

"lc_init failed:Invalid Flexlm key data supplied"
"Flexlm error: -44.49"

Why this happens ?

Any help will be wellcome !

FoxB
February 27th, 2007, 23:24
May be u lost daemons name and vkeys in lmcode.h?

hottzo
February 28th, 2007, 16:51
compile makekey.c with your data (vendor, keys)

Foxsky
March 9th, 2007, 00:56
maybe you should generate vendor key by using lmkg.exe

gerbay
March 22nd, 2007, 09:06
you should generate vendor key by using lmkg.exe for version 7.x
important things are:
_l_sg method (version >= 7.x)
- you should put breakpoint to caller methods of _l_sg method and trace the code
if the job structure is like that:
dd XXXXXX
dd YYYYYY
dd AAAAAA (job + 0x08)
dd VVVVVV (job + 0x0C)
dd ZZZZZZ (job + 0x10)
dd 0x00000 (it must be zero for true job structure)
and than
you can find true encryption seeds data in local variables,
you should use the calcseed.exe for finding TRUE seeds
the other important thing for new license generation is "LM_VER_BEHAVIOR"
it should be TRUE..