Engine finish() causes segmentation fault
Posted
by Becky
on Stack Overflow
See other posts from Stack Overflow
or by Becky
Published on 2010-04-14T11:20:37Z
Indexed on
2010/04/14
11:23 UTC
Read the original article
Hit count: 361
m2crypto
Hello All -
I am using M2Crypto revision 723 from the repository. I am trying to clean up my engine. If I have the pkcs11.finish() line in my script, the script finishes but gets a segmentation fault at the end. Without the finish() line, no segmentation fault occurs. Is there something wrong with the way I'm using finish()?
dynamic=Engine.load_dynamic_engine("pkcs11","/usr/local/ssl/lib/engines/engine_pkcs11.so")
pkcs11 = Engine.Engine("pkcs11")
pkcs11.ctrl_cmd_string("MODULE_PATH", "/usr/lib/libeTPkcs11.so")
pkcs11.init()
# next few steps which I deleted pass password and grab key & cert off token
pkcs11.finish()
Engine.cleanup()
Thanks!
© Stack Overflow or respective owner