Don't load GOST ENGINE if it is already loaded.
authorDr. Stephen Henson <steve@openssl.org>
Sat, 1 Sep 2012 11:30:19 +0000 (11:30 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 1 Sep 2012 11:30:19 +0000 (11:30 +0000)
commit0ad9fe2d59f28c2ffda7cac9e4964b60e1af4bda
tree9cee8130366f177803f30b7402683e835f368636
parenta203df7521c0b2f755742b6f036143b46d4977ca
Don't load GOST ENGINE if it is already loaded.

Multiple copies of the ENGINE will cause problems when it is cleaned up as
the methods are stored in static structures which will be overwritten and
freed up more than once.

Set static methods to NULL when the ENGINE is freed so it can be reloaded.
engines/ccgost/gost_eng.c