-
Notifications
You must be signed in to change notification settings - Fork 9
/
README
60 lines (36 loc) · 1.43 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
PDKIM - a RFC4871 (DKIM) implementation
http://duncanthrax.net/pdkim/
Copyright (C) 2009 Tom Kistner <[email protected]>
Includes code from the PolarSSL project.
http://polarssl.org
Copyright (C) 2009 Paul Bakker <[email protected]>
Copyright (C) 2006-2008 Christophe Devine
Building on Unix
----------------
1) Review Makefile.unix
2) # make -f Makefile.unix install
This will install static/dynamic libs and the header file,
which is a prerequisite for running a test:
3) (OPTIONAL)
# cd sample; make -f Makefile.unix test
Please note that libs and header carry the major version number in
their names, i.e. "pdkim1.h" or "pkdim1.so.0".
Building on Windows
-------------------
Using Visual C/C++ compiler:
1) Open a cmd.exe shell.
2) Run vcvarsall.bat inside that shell. Usually this can be
found in the \VC subdir of your VC++ installation.
3) # nmake /f Makefile.win
This will create a static library "pdkim1-static.lib", as well
as a dynamic pdkim1.lib/pdkim1.dll file pair. The header is
copied to pdkim1.h. These are no installation locations. Please
copy the respective files to a location of your choice (or leave
them where they are ...).
API Documentation
-----------------
For signing, read sample/test_sign.c. For verification, read
sample/test_verify.c
Both have extensive comments covering the API calls. They will
direct you to read the pdkim1.h file that covers the signature
structure.