Skip to content

Commit

Permalink
Fix build with OPENSSL_NO_ENGINE
Browse files Browse the repository at this point in the history
Signed-off-by: Fredrik Fornwall <[email protected]>
  • Loading branch information
fornwall authored and ralight committed Sep 18, 2018
1 parent ae45bd3 commit 915e91d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/net_mosq.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ void net__cleanup(void)
#if OPENSSL_VERSION_NUMBER < 0x10100000L
ERR_remove_state(0);
#endif
ENGINE_cleanup();
#ifndef OPENSSL_NO_ENGINE
ENGINE_cleanup();
#endif
CONF_modules_unload(1);
ERR_free_strings();
EVP_cleanup();
Expand Down

0 comments on commit 915e91d

Please sign in to comment.