Don't load GOST ENGINE if it is already loaded.
authorDr. Stephen Henson <steve@openssl.org>
Sat, 1 Sep 2012 11:29:52 +0000 (11:29 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 1 Sep 2012 11:29:52 +0000 (11:29 +0000)
commit48ccbeefda5906388f8c739ebe2996f1f3bd7593
treecd82f28d2498e6ec14b27fcd559c98c699281f7f
parent7a217076d902d1717d1ab9b851c6c5ad6d7a444c
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