Skip to content

Commit 121d8b8

Browse files
committed
don't set filename/timestamp when signing files with Crypto Refresh enabled
1 parent a0f3d53 commit 121d8b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librepgp/stream-write.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,6 +1878,10 @@ build_literal_hdr(const rnp_ctx_t &ctx, pgp_literal_hdr_t &hdr)
18781878
{
18791879
/* content type - forcing binary now */
18801880
hdr.format = 'b';
1881+
#if defined(ENABLE_CRYPTO_REFRESH)
1882+
// filename and timestamp SHOULD NOT be set (struct is zero-initialized)
1883+
return;
1884+
#endif
18811885
/* filename */
18821886
size_t flen = ctx.filename.size();
18831887
if (flen > 255) {

0 commit comments

Comments
 (0)