summaryrefslogtreecommitdiffstats
path: root/hdrline.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2002-01-24 21:53:19 +0000
committerThomas Roessler <roessler@does-not-exist.org>2002-01-24 21:53:19 +0000
commit85ef6f6ab6cfba38f0857f67b6be467ffa426765 (patch)
tree747114477bea4e9281d33a97e44ff914445ad420 /hdrline.c
parentc6d96bc112ff0dfc5f312d31c9ea29ee5b630b9a (diff)
S/MIME support. From Oliver Ehli <elmy@acm.org> and Mike Schiraldi
<raldi@research.netsol.com>.
Diffstat (limited to 'hdrline.c')
-rw-r--r--hdrline.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/hdrline.c b/hdrline.c
index c9b0783f..619d57cf 100644
--- a/hdrline.c
+++ b/hdrline.c
@@ -26,6 +26,10 @@
#include "pgp.h"
#endif
+#ifdef HAVE_SMIME
+#include "smime.h"
+#endif
+
#include <ctype.h>
@@ -618,16 +622,18 @@ hdr_format_str (char *dest,
ch = ' ';
-#ifdef HAVE_PGP
- if (hdr->pgp & PGPGOODSIGN)
+#if defined(HAVE_PGP) || defined(HAVE_SMIME)
+ if (hdr->security & GOODSIGN)
ch = 'S';
- else if (hdr->pgp & PGPENCRYPT)
+ else if (hdr->security & ENCRYPT)
ch = 'P';
- else if (hdr->pgp & PGPSIGN)
+ else if (hdr->security & SIGN)
ch = 's';
- else if (hdr->pgp & PGPKEY)
+#ifdef HAVE_PGP
+ else if (hdr->security & PGPKEY)
ch = 'K';
#endif
+#endif
snprintf (buf2, sizeof (buf2),
"%c%c%c", (THREAD_NEW ? 'n' : (THREAD_OLD ? 'o' :