Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PDKIM is a C/C++ library that implements DKIM as specified in RFC4871. It is self-contained (no build dependencies except for a C library), and works on Unix and Windows platforms.
C
branch: master

Fix verification when DKIM Signatures are not inserted as tracking he…

…aders. Thanks to Wolfgang Breyha for the patch!
latest commit 2ef12ef6ed
Tom Kistner authored
Failed to load latest commit information.
sample Initial Commit
LICENSE
Makefile.mac
Makefile.unix
Makefile.win Initial Commit
README
base64.c
base64.h Upgrade PolarSSL code to 0.14.2. Thanks to Andreas Metzler for a patch.
bignum.c Upgrade PolarSSL code to 0.14.2. Thanks to Andreas Metzler for a patch.
bignum.h Upgrade PolarSSL code to 0.14.2. Thanks to Andreas Metzler for a patch.
bn_mul.h
pdkim.c
pdkim.h Fix verification when DKIM Signatures are not inserted as tracking he…
rsa.c Upgrade PolarSSL code to 0.14.2. Thanks to Andreas Metzler for a patch.
rsa.h
sha1.c Upgrade PolarSSL code to 0.14.2. Thanks to Andreas Metzler for a patch.
sha1.h Upgrade PolarSSL code to 0.14.2. Thanks to Andreas Metzler for a patch.
sha2.c Upgrade PolarSSL code to 0.14.2. Thanks to Andreas Metzler for a patch.
sha2.h Upgrade PolarSSL code to 0.14.2. Thanks to Andreas Metzler for a patch.

README

PDKIM - a RFC4871 (DKIM) implementation
http://duncanthrax.net/pdkim/
Copyright (C) 2009      Tom Kistner <tom@duncanthrax.net>

Includes code from the PolarSSL project.
http://polarssl.org
Copyright (C) 2009      Paul Bakker <polarssl_maintainer@polarssl.org>
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.


Something went wrong with that request. Please try again.