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