"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/doveadm/doveadm-dump-dcrypt-key.c" between
dovecot-2.3.16.tar.gz and dovecot-2.3.17.tar.gz

About: Dovecot is an IMAP and POP3 server, written with security primarily in mind.

doveadm-dump-dcrypt-key.c  (dovecot-2.3.16):doveadm-dump-dcrypt-key.c  (dovecot-2.3.17)
skipping to change at line 202 skipping to change at line 202
} }
static bool test_dump_dcrypt_key(const char *path) static bool test_dump_dcrypt_key(const char *path)
{ {
if (!dcrypt_initialize("openssl", NULL, NULL)) if (!dcrypt_initialize("openssl", NULL, NULL))
return FALSE; return FALSE;
bool ret = dcrypt_key_dump_metadata(path, FALSE); bool ret = dcrypt_key_dump_metadata(path, FALSE);
return ret; return ret;
} }
static void cmd_dump_dcrypt_key(int argc ATTR_UNUSED, char *argv[]) static void
cmd_dump_dcrypt_key(const char *path, const char *const *args ATTR_UNUSED)
{ {
const char *error = NULL; const char *error = NULL;
if (!dcrypt_initialize("openssl", NULL, &error)) if (!dcrypt_initialize("openssl", NULL, &error))
i_fatal("dcrypt_initialize: %s", error); i_fatal("dcrypt_initialize: %s", error);
(void)dcrypt_key_dump_metadata(argv[1], TRUE); (void)dcrypt_key_dump_metadata(path, TRUE);
} }
struct doveadm_cmd_dump doveadm_cmd_dump_dcrypt_key = { struct doveadm_cmd_dump doveadm_cmd_dump_dcrypt_key = {
"dcrypt-key", "dcrypt-key",
test_dump_dcrypt_key, test_dump_dcrypt_key,
cmd_dump_dcrypt_key cmd_dump_dcrypt_key
}; };
 End of changes. 2 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)