mirror of
https://0xacab.org/liberate/trees.git
synced 2024-11-22 02:00:36 +01:00
Don't check private key if detecting header
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
This commit is contained in:
parent
7ae2ab49ba
commit
95302087ee
@ -83,14 +83,6 @@ scrambler_istream_read_detect_magic(struct scrambler_istream *sstream,
|
||||
{
|
||||
ssize_t ret;
|
||||
|
||||
if (sstream->private_key == NULL) {
|
||||
i_error("[scrambler] Trying to decrypt without private key.");
|
||||
sstream->istream.istream.stream_errno = EACCES;
|
||||
sstream->istream.istream.eof = TRUE;
|
||||
ret = -1;
|
||||
goto end;
|
||||
}
|
||||
|
||||
/* Check for the scrambler header and if so we have an encrypted email that
|
||||
* we'll try to decrypt. */
|
||||
if (!memcmp(scrambler_header, source, sizeof(scrambler_header))) {
|
||||
|
Loading…
Reference in New Issue
Block a user