Hi Stanislav, thanks for reporting the problem.
I had another look at the code and it seems, both set_pin and get_pin are only used internally. So I can get rid of set_pin and replace it with a one liner, and I can change the get_pin function to return 0 or 1. this should solve the problems, I think. also I can chenage the code to enfoce that pin is always of size MAX_PIN_LENGTH and use that sizein the cleanse functions. > You may also want to get rid return code of this function at all, because > it is never used. done. well, now the return code is used to handle errors in get_pin. can you check if the latest code works for you? compiles without warnings here. > Note that https://www.opensc-project.org/engine_pkcs11/login if you press reload for a number of times, it suddenly works. no idea why, couldn't get help from trac developers so far. will find to try time for a trac 0.11 upgrade, maybe that helps. Thanks for your bug report and help! Regards, Andreas _______________________________________________ opensc-devel mailing list [email protected] http://www.opensc-project.org/mailman/listinfo/opensc-devel
