Don't load GOST ENGINE if it is already loaded.
authorDr. Stephen Henson <steve@openssl.org>
Sat, 1 Sep 2012 11:30:35 +0000 (11:30 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 1 Sep 2012 11:30:35 +0000 (11:30 +0000)
commit957c7c0e88b4c123f81f97291600d6bbb9a30386
treecdc3c4f128f3e485815553f7bcab58c62e88e895
parent3ebe87473c5ee01a0ffaada400c5f01fbe8a17ff
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