Version v0.2.96 - Refactor code
This commit is contained in:
8
otp.c
8
otp.c
@@ -2907,6 +2907,7 @@ int universal_decrypt(const char* input_data, const char* output_target, decrypt
|
|||||||
if (mode == DECRYPT_MODE_FILE_TO_TEXT) {
|
if (mode == DECRYPT_MODE_FILE_TO_TEXT) {
|
||||||
printf("Decrypting ASCII armored file...\n");
|
printf("Decrypting ASCII armored file...\n");
|
||||||
}
|
}
|
||||||
|
// Note: DECRYPT_MODE_FILE_TO_FILE should be completely silent for piping
|
||||||
} else {
|
} else {
|
||||||
// Text input (interactive or piped)
|
// Text input (interactive or piped)
|
||||||
const char* message_text;
|
const char* message_text;
|
||||||
@@ -3063,8 +3064,11 @@ int universal_decrypt(const char* input_data, const char* output_target, decrypt
|
|||||||
}
|
}
|
||||||
fclose(output_fp);
|
fclose(output_fp);
|
||||||
|
|
||||||
printf("File decrypted successfully: %s\n", output_file);
|
// Only show success messages in non-silent modes
|
||||||
printf("Note: ASCII format does not preserve original filename/permissions\n");
|
if (mode != DECRYPT_MODE_FILE_TO_FILE) {
|
||||||
|
printf("File decrypted successfully: %s\n", output_file);
|
||||||
|
printf("Note: ASCII format does not preserve original filename/permissions\n");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Text output to stdout
|
// Text output to stdout
|
||||||
ciphertext[ciphertext_len] = '\0';
|
ciphertext[ciphertext_len] = '\0';
|
||||||
|
|||||||
Reference in New Issue
Block a user