diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-04-01 15:46:03 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-04-01 15:46:03 +0000 |
commit | c4acfb1fd049f52fb074b103be01cab5cf5c04f8 (patch) | |
tree | 71bdfa6dc516553d2cefea531d8aa2591dc60357 /crypto/o_init.c | |
parent | 3f7468318dc56f34e1c5e98049b70558fea586b0 (diff) |
Add additional OPENSSL_init() handling add dummy call to (hopefully)
ensure OPENSSL_init() is always linked into an application.
Diffstat (limited to 'crypto/o_init.c')
-rw-r--r-- | crypto/o_init.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/o_init.c b/crypto/o_init.c index c6bc754df1..1a042ffc99 100644 --- a/crypto/o_init.c +++ b/crypto/o_init.c @@ -112,7 +112,12 @@ void OPENSSL_init(void) { + static int done = 0; + if (done) + return; + done = 1; +#if 1 fprintf(stderr, "Called OPENSSL_init\n"); +#endif } - |