mirror of
https://gitlab.kit.edu/kit/scc/sys/mail/exim-encrypt-dlfunc.git
synced 2025-12-06 10:23:55 +01:00
Seitched mmap-based file reader against getline which also works with pipes.
This commit is contained in:
@ -125,7 +125,10 @@ int main(int argc, char *argv[]) {
|
||||
// base64-decode input
|
||||
unsigned char *ciphertext;
|
||||
size_t ciphertext_len;
|
||||
base64_decode_string(cipherstring, &ciphertext, &ciphertext_len);
|
||||
if (base64_decode_string(cipherstring, &ciphertext, &ciphertext_len) != 0) {
|
||||
fprintf(stderr, "[ERROR] Unable to base64-decode ciphertext.\n\n");
|
||||
exit(EXIT_FAILURE);
|
||||
};
|
||||
|
||||
// extract nonce
|
||||
unsigned char nonce[crypto_secretbox_NONCEBYTES];
|
||||
|
||||
Reference in New Issue
Block a user