# HG changeset patch # User Guido Berhoerster # Date 1530968277 -7200 # Node ID d9c4bdc004d27a1dddaf783ab015b287c55c32dc # Parent 00ca3ee8e3102357a1cb5a3698d829fbeb8bec2e Add support for OpenSSL 1.1 diff -r 00ca3ee8e310 -r d9c4bdc004d2 sencrypt.c --- a/sencrypt.c Sat Jul 07 14:38:31 2018 +0200 +++ b/sencrypt.c Sat Jul 07 14:57:57 2018 +0200 @@ -525,10 +525,12 @@ size_t pwdata_len = 0; int status = EXIT_SUCCESS; +#if OPENSSL_VERSION_NUMBER < 0x10100000L /* initialize OpenSSL */ OpenSSL_add_all_algorithms(); ERR_load_crypto_strings(); OPENSSL_config(NULL); +#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */ progname = strrchr(argv[0], '/'); progname = (progname != NULL) ? progname + 1 : argv[0]; @@ -809,9 +811,11 @@ free(out_filename_tmp); free(tmp_filename); +#if OPENSSL_VERSION_NUMBER < 0x10100000L EVP_cleanup(); ERR_free_strings(); CONF_modules_free(); +#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */ exit(status); }