--- a/src/tools/aesgcm_download.c +++ b/src/tools/aesgcm_download.c @@ -105,17 +105,17 @@ return NULL; } - gcry_error_t crypt_res; + int crypt_res; crypt_res = omemo_decrypt_file(tmpfh, outfh, bytes_received, fragment); fclose(tmpfh); remove(tmpname); - if (crypt_res != GPG_ERR_NO_ERROR) { + if (crypt_res != 0) { http_print_transfer_update(aesgcm_dl->window, aesgcm_dl->id, THEME_ERROR, ENTRY_ERROR, "Downloading '%s' failed: Failed to decrypt " - "file (%s).", - aesgcm_dl->url, gcry_strerror(crypt_res)); + "file (%d).", + aesgcm_dl->url, crypt_res); } else { http_print_transfer_update(aesgcm_dl->window, aesgcm_dl->id, THEME_ONLINE, ENTRY_COMPLETED, "Downloading '%s': done\nSaved to '%s'",