Quantcast
Channel: Gemalto Sentinel Customer Discussions
Viewing all articles
Browse latest Browse all 698

Question about Licensing API hasp_get_info function.

$
0
0
My platform: Mac 10.12.4
Trail protection key: Sentinel HL Max(firmware 4.23) 

I create a simple test program to try using hasp_get_info(available products) function.
It has a system run-loop for detecting USB plugin and unplug.
If it detected the correct USB(Sentinel protection key: vendor ID, product ID) that invokes hasp_get_info function to get products.

I test protection key in 2 situations with my simple program
1)first of all, plugin protection key and then run test program -> It works very well(HASP_STATUS_OK) and succeeded get products
2)first of all, run test program and then plugin protection key -> it doesn’t work(HASP_SCOPE_RESULTS_EMPTY)
  I think the problem is operation system detected protection key while something (protection key or ...) are not ready.

I also change the hasp_get_info to the hasp_login, but I got the same error. [HASP_HASP_NOT_FOUND:7]Sentinel protection key not available

I also try "wait for seconds" approach and then run the function. 
But I think It's not a perfect solution. because I don't know when the sentinel HL key(or somethings) is ready.

another question: (I think, It's the same this topic)
when users unplugged the protection key and then operation system detect an usb was unplugged and then I perform hasp_get_info function.
Why this action is succeeded? HASP_STATUS_OK (I use this action do simple test to detect protection key is present or not)
why do I need to perform this action?
because, I need to control my software permissions, like update UI, disable some functions.

I want to complaint this product "Sentinel LDK Licensing API".
previous I use Sentinel HSK API is very nice and easy to use. I just focus on my program functions and secure issues the Sentinel HSK will take.
But Sentinel LDK licensing API is not, I need to take more time to control it.
Sorry! about my complaint and English.

Could you give an advice or sample to resolve the situation2 problem?. 
Thanks

Viewing all articles
Browse latest Browse all 698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>