* Deactivate some color code from Pico (as standalone editor) until
[alpine.git] / contrib / smime / README
blobfc9c7895e94a1eece51512fc5e02f8c984d71072
1 S/MIME capabilities in Pine
3 Patch Author: Jonathan Paisley
4 Contact Info: paisleyj@dcs.gla.ac.uk
5 WWW: http://www.dcs.gla.ac.uk/~paisleyj/
7 This patch adds S/MIME functionality to Pine.  It was
8 last tested thoroughly with Pine 4.33, and it has been updated
9 to work with the latest version (4.52).
11 Check out the unix 'patch' command.  An example of using
12 patch would be:
14 $ cd ../..  # Change to top level directory (containing contrib, pine, etc)
15 $ patch -p1 < contrib/smime/pine-smime-151101.diff
17 *** After patching, read pine/README.smime for more details. ***
19 The patch will create the following files:
21 pine/README.smime
22 pine/TODO.smime
23 pine/bss_so.c
24 pine/bss_so.h
25 pine/smime.c
26 pine/smime.h
27 pine/smkeys.c
28 pine/smkeys.h
30 It will modify the following files:
32 imap/src/c-client/mail.c
33 imap/src/c-client/mail.h
34 pine/filter.c
35 pine/init.c
36 pine/mailcmd.c
37 pine/mailpart.c
38 pine/mailview.c
39 pine/makefile.lnx
40 pine/makefile.so5
41 pine/pine.h
42 pine/pine.hlp
43 pine/send.c
45 Note that this patch has only been tested on Solaris and Linux (thus only
46 those makefiles have been patched). The changes that have been made to
47 the makefiles are as follows:
49     Add these SSL variables (these were roughly lifted from imap/src/osdep/unix/Makefile)
51     SSLDIR=      $(HOME)/local/ssl
52     SSLCERTS=    $(SSLDIR)/certs
53     SSLINCLUDE=  $(SSLDIR)/include
54     SSLLIB=      $(SSLDIR)/lib
56     SSLCFLAGS=   -I$(SSLINCLUDE) \
57                -DSSL_CERT_DIRECTORY=\"$(SSLCERTS)\" \
58                -DSMIME
59     SSLLDFLAGS=  -L$(SSLLIB) -lcrypto
61     Add $(SSLLDFLAGS) to the LIBS variable.
62     Add $(SSLCFLAGS) to the CFLAGS variable.
63     Add bss_so.o smime.o smkeys.o to the OFILES= variable.
65 Similar changes would have to be made to the makefile for other ports.