]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Do not call dcrypt_deinitialize
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 22 Aug 2019 11:28:17 +0000 (14:28 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 23 Sep 2019 05:47:49 +0000 (08:47 +0300)
It can break openssl

src/doveadm/doveadm-dump-dcrypt-file.c
src/doveadm/doveadm-dump-dcrypt-key.c

index 7f5cd033ce7e6f4f4d098edd0f51c42088b3a872..539919beab41b243cb963f64c3d236eaf08b81aa 100644 (file)
@@ -74,7 +74,6 @@ static bool test_dump_dcrypt_file(const char *path)
        if (!dcrypt_initialize("openssl", NULL, NULL))
                return FALSE;
        bool ret = dcrypt_file_dump_metadata(path, FALSE);
-       dcrypt_deinitialize();
        return ret;
 }
 
@@ -84,7 +83,6 @@ static void cmd_dump_dcrypt_file(int argc ATTR_UNUSED, char *argv[])
        if (!dcrypt_initialize("openssl", NULL, &error))
                i_fatal("dcrypt_initialize failed: %s", error);
        (void)dcrypt_file_dump_metadata(argv[1], TRUE);
-       dcrypt_deinitialize();
 }
 
 struct doveadm_cmd_dump doveadm_cmd_dump_dcrypt_file = {
index 4a3dfbec60a6f99d6a19e9266f6ef30783fcc416..4413c823c64146223dc4964886b711e30c9c4aba 100644 (file)
@@ -194,7 +194,6 @@ static bool test_dump_dcrypt_key(const char *path)
        if (!dcrypt_initialize("openssl", NULL, NULL))
                return FALSE;
        bool ret = dcrypt_key_dump_metadata(path, FALSE);
-       dcrypt_deinitialize();
        return ret;
 }
 
@@ -204,7 +203,6 @@ static void cmd_dump_dcrypt_key(int argc ATTR_UNUSED, char *argv[])
        if (!dcrypt_initialize("openssl", NULL, &error))
                i_fatal("dcrypt_initialize: %s", error);
        (void)dcrypt_key_dump_metadata(argv[1], TRUE);
-       dcrypt_deinitialize();
 }
 
 struct doveadm_cmd_dump doveadm_cmd_dump_dcrypt_key = {