s/qmail 4.3.21
Next generation secure email transport
Loading...
Searching...
No Matches
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)
bool ParseUnsigned (const char *s, unsigned *result)

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 102 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:
Here is the caller graph for this function:

◆ DecodeBase64()

unsigned DecodeBase64 ( char * ptr)

Definition at line 364 of file dkimverify.cpp.

Here is the caller graph for this function:

◆ DecodeQuotedPrintable()

void DecodeQuotedPrintable ( char * ptr)

Definition at line 339 of file dkimverify.cpp.

Here is the call graph for this function:
Here is the caller 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 124 of file dkimverify.cpp.

Here is the caller graph for this function:

◆ isswsp()

bool isswsp ( char ch)
inline

Definition at line 226 of file dkimverify.cpp.

Here is the caller graph for this function:

◆ ParseAddresses()

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

Definition at line 425 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 236 of file dkimverify.cpp.

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

◆ ParseUnsigned()

bool ParseUnsigned ( const char * s,
unsigned * result )

Definition at line 906 of file dkimverify.cpp.

Here is the caller graph for this function:

◆ stralloc_copys()

int stralloc_copys ( stralloc * ,
char const *  )
Here is the caller graph for this function:

◆ Tohex()

char Tohex ( char ch)

Definition at line 321 of file dkimverify.cpp.

Here is the caller graph for this function:

◆ WildcardMatch()

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

Definition at line 402 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.