Skip to content

Commit

Permalink
Fix sop inline-verify output of binary data
Browse files Browse the repository at this point in the history
  • Loading branch information
twiss committed Nov 22, 2024
1 parent 31f0f04 commit 3947877
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
5 changes: 4 additions & 1 deletion src/commands/inlineVerify.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ const inlineVerify = async (certfiles, verificationsOut) => {

const options = {
message,
verificationKeys
verificationKeys,
format: message instanceof openpgp.CleartextMessage ?
'text' :
'binary'
};

openpgp.verify(options).then(async (sig) => {
Expand Down
23 changes: 12 additions & 11 deletions test/signed-text-message.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
-----BEGIN PGP MESSAGE-----

xA0DAQgBYghKz8c200oBy2h1AGME5uINCk/DrXIgbGEgbm9jaGUgaW5tZW5z
YSwgbcOhcyBpbm1lbnNhIHNpbiBlbGxhLg0KWSBlbCB2ZXJzbyBjYWUgYWwg
YWxtYSBjb21vIGFsIHBhc3RvIGVsIHJvY8Otby4NCsLAcwQBAQgABgUCYwTm
4gAhCRBiCErPxzbTShYhBCEQJjIF+w68zWy4H2IISs/HNtNKdmwH/irROhr5
3KJRvUkLEnhVMVU/UdbTEQbPzRqmS9HIqCdQJh9E7YYBFTX97Gto86iSC9n5
9Rn0NmekruYQTtpbY2wRMq74PkQTK50xP3nRqL9mKe7GsNLYYKpTcRbMYaIK
KNR+jTaOcl17N4rQKZIATBFhD3xKGbq1T0lf4e5lvFBjQWeVQGd39t2a+17V
Za1GQmIDDtlF3S+UWKNn+lfGvtttFOiJl4Kqd90HhFI2lzBr47koWo0qtvRz
LaYWQgrBVTday0+yD3ov0ROWDokM45fGjGrmsbxP0mdJN/S2KjkrYed7Xlrt
EkqkyM0QO0lMTuqL9/nFczYs1jvUQbZg4v4=
=iE5A
xA0DAAgBYghKz8c200oBy2ViAGdATBoKT8OtciBsYSBub2NoZSBpbm1lbnNh
LCBtw6FzIGlubWVuc2Egc2luIGVsbGEuClkgZWwgdmVyc28gY2FlIGFsIGFs
bWEgY29tbyBhbCBwYXN0byBlbCByb2PDrW8uCsLAqQQAAQgAXQWCZ0BMGgmQ
YghKz8c200o1FAAAAAAAHAAQc2FsdEBub3RhdGlvbnMub3BlbnBncGpzLm9y
ZzzP+8wAkcBymnf0dFUC0rAWIQQhECYyBfsOvM1suB9iCErPxzbTSgAAtO4H
/2YjbbG6kYiOccsxBjZBhomAjMn+8liT0cBUyzSWRDra+lsUBeHUM3exaigY
LqN6iFc+xKRUnu6LeAhEJCpA+JYADT15qff3/KulOmlz4+oPpV4u2m2Bbseh
CpSvZ6+LW9YkDppX05imF43wFpS9G4bxPp49JAVH6h7H6gU5sxh+Sc5q/Tcy
cIPYsuI4bTEMM3x6BMkEESdGqvPUvlEJhHCg2hKxSxTcwm/gDLJzGhB9SbFV
YiyluFrV5zvtEA9kl8ZWOKOiznyEiUuRz7iGm2RWubh8bdLhj4Beo8gSJeAW
oLT3u5slsZV5nxC6EOmr1S2F2PWThJPf2oCo8zyop/I=
=NC1J
-----END PGP MESSAGE-----

0 comments on commit 3947877

Please sign in to comment.