aboutsummaryrefslogtreecommitdiffstats
path: root/g10/build-packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/build-packet.c')
-rw-r--r--g10/build-packet.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/build-packet.c b/g10/build-packet.c
index 2025c4091..ae33b9c04 100644
--- a/g10/build-packet.c
+++ b/g10/build-packet.c
@@ -900,6 +900,11 @@ build_sig_subpkt_from_sig( PKT_signature *sig )
buf[1] = (u >> 16) & 0xff;
buf[2] = (u >> 8) & 0xff;
buf[3] = u & 0xff;
+
+ /* Mark this CRITICAL, so if any implementation doesn't
+ understand sigs that can expire, it'll just disregard this
+ sig altogether. */
+
build_sig_subpkt( sig, SIGSUBPKT_SIG_EXPIRE | SIGSUBPKT_FLAG_CRITICAL,
buf, 4 );
}