s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
Macros | Functions | Variables
dkimverify.cpp File Reference
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include <vector>
#include <algorithm>
#include "dkim.h"
#include "dkimverify.h"
#include "dnsgettxt.h"
#include "dns.h"
#include "stralloc.h"
Include dependency graph for dkimverify.cpp:

Go to the source code of this file.

Macros

#define _strnicmp   strncasecmp
 
#define _stricmp   strcasecmp
 
#define MAX_SIGNATURES   10
 
#define FDLOG   stderr /* writing to another FD requires a method */
 

Functions

int stralloc_copys (stralloc *, char const *)
 
int dig_ascii (char *digascii, unsigned const char *digest, const int len)
 
int _DNSGetTXT (const char *szFQDN, char *Buffer, int nBufLen)
 
int _DKIM_ReportResult (const char *ResFile, const char *result, const char *reason)
 
const char * DKIM_ErrorResult (const int res)
 
bool isswsp (char ch)
 
bool ParseTagValueList (char *tagvaluelist, const char *wanted[], char *values[])
 
char Tohex (char ch)
 
void DecodeQuotedPrintable (char *ptr)
 
unsigned DecodeBase64 (char *ptr)
 
bool WildcardMatch (const char *p, const char *s)
 
bool ParseAddresses (string str, vector< string > &Addresses)
 

Variables

string SigHdr
 
size_t m_SigHdr
 

Macro Definition Documentation

◆ _stricmp

#define _stricmp   strcasecmp

Definition at line 53 of file dkimverify.cpp.

◆ _strnicmp

#define _strnicmp   strncasecmp

Definition at line 52 of file dkimverify.cpp.

◆ FDLOG

#define FDLOG   stderr /* writing to another FD requires a method */

Definition at line 55 of file dkimverify.cpp.

◆ MAX_SIGNATURES

#define MAX_SIGNATURES   10

Definition at line 54 of file dkimverify.cpp.

Function Documentation

◆ _DKIM_ReportResult()

int _DKIM_ReportResult ( const char *  ResFile,
const char *  result,
const char *  reason 
)

Definition at line 101 of file dkimverify.cpp.

Here is the caller graph for this function:

◆ _DNSGetTXT()

int _DNSGetTXT ( const char *  szFQDN,
char *  Buffer,
int  nBufLen 
)

Definition at line 77 of file dkimverify.cpp.

Here is the call graph for this function:

◆ DecodeBase64()

unsigned DecodeBase64 ( char *  ptr)

Definition at line 377 of file dkimverify.cpp.

◆ DecodeQuotedPrintable()

void DecodeQuotedPrintable ( char *  ptr)

Definition at line 352 of file dkimverify.cpp.

Here is the call graph for this function:

◆ dig_ascii()

int dig_ascii ( char *  digascii,
unsigned const char *  digest,
const int  len 
)

Definition at line 62 of file dkimverify.cpp.

◆ DKIM_ErrorResult()

const char * DKIM_ErrorResult ( const int  res)

Definition at line 123 of file dkimverify.cpp.

Here is the caller graph for this function:

◆ isswsp()

bool isswsp ( char  ch)
inline

Definition at line 239 of file dkimverify.cpp.

◆ ParseAddresses()

bool ParseAddresses ( string  str,
vector< string > &  Addresses 
)

Definition at line 438 of file dkimverify.cpp.

Here is the caller graph for this function:

◆ ParseTagValueList()

bool ParseTagValueList ( char *  tagvaluelist,
const char *  wanted[],
char *  values[] 
)

Definition at line 249 of file dkimverify.cpp.

Here is the caller graph for this function:

◆ stralloc_copys()

int stralloc_copys ( stralloc *  ,
char const *   
)

◆ Tohex()

char Tohex ( char  ch)

Definition at line 334 of file dkimverify.cpp.

Here is the caller graph for this function:

◆ WildcardMatch()

bool WildcardMatch ( const char *  p,
const char *  s 
)

Definition at line 415 of file dkimverify.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ m_SigHdr

size_t m_SigHdr

Definition at line 58 of file dkimverify.cpp.

◆ SigHdr

string SigHdr

Definition at line 57 of file dkimverify.cpp.