mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-07 22:56:40 +00:00
add filename to return object when decrypting binary file
This commit is contained in:
parent
60fb6ba18d
commit
11a8a99aef
@ -193,7 +193,11 @@ function decryptMessage(privateKey, msg, params) {
|
||||
return execute(function() {
|
||||
msg = msg.decrypt(privateKey, sessionKeyAlgorithm);
|
||||
if(binary) {
|
||||
return msg.getLiteralData();
|
||||
var obj = {
|
||||
data: msg.getLiteralData(),
|
||||
filename: msg.filename
|
||||
};
|
||||
return obj;
|
||||
}
|
||||
else {
|
||||
return msg.getText();
|
||||
|
Loading…
x
Reference in New Issue
Block a user