/* Copyright (c) 2016-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "dcrypt.h"
#include "istream.h"
#include "istream-decrypt.h"
#include "dcrypt-iostream.h"
#include "doveadm-dump.h"
#include <stdio.h>
const char **error_r ATTR_UNUSED,
void *context)
{
return 0;
}
{
if ((flags & IO_STREAM_ENC_INTEGRITY_HMAC) != 0)
printf("flags: IO_STREAM_ENC_INTEGRITY_HMAC\n");
if ((flags & IO_STREAM_ENC_INTEGRITY_AEAD) != 0)
printf("flags: IO_STREAM_ENC_INTEGRITY_AEAD\n");
if ((flags & IO_STREAM_ENC_INTEGRITY_NONE) != 0)
printf("flags: IO_STREAM_ENC_INTEGRITY_NONE\n");
if ((flags & IO_STREAM_ENC_VERSION_1) != 0)
printf("flags: IO_STREAM_ENC_VERSION_1\n");
switch (format) {
case DECRYPT_FORMAT_V1:
printf("format: DECRYPT_FORMAT_V1\n");
break;
case DECRYPT_FORMAT_V2:
printf("format: DECRYPT_FORMAT_V2\n");
break;
}
}
{
get_digest, &key_digest);
if (key_digest != NULL) {
if (print) {
}
i_error("read(%s) failed: %s",
}
i_stream_unref(&ds);
i_stream_unref(&is);
return ret;
}
{
return FALSE;
return ret;
}
{
}
"dcrypt-file",
};