s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
Macros | Functions | Variables
qmail-dkverify.c File Reference

stub routine for DKIM signature verification and indication in received message More...

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/socket.h>
#include "sig.h"
#include "stralloc.h"
#include "buffer.h"
#include "error.h"
#include "auto_qmail.h"
#include "str.h"
#include "exit.h"
#include "uint_t.h"
#include "fd.h"
#include "open.h"
#include "fmt.h"
#include "fmtqfn.h"
#include "readwrite.h"
#include "getln.h"
#include "qmail.h"
#include "wait.h"
#include "byte.h"
#include "case.h"
#include "control.h"
#include "pathexec.h"
#include "env.h"
#include "logmsg.h"
Include dependency graph for qmail-dkverify.c:

Go to the source code of this file.

Macros

#define WHO   "qmail-dkverify"
 

Functions

void die (int e)
 
void die_pipe (char *fn)
 
void die_write (char *fn)
 
void die_read ()
 
void out (char *s)
 
void zero ()
 
void zerodie ()
 
void temp_nomem ()
 
void temp_chdir ()
 
void temp_create ()
 
void temp_unlink ()
 
void temp_read ()
 
void temp_socket ()
 
void temp_control ()
 
void fnmake_dkim (unsigned long id)
 
void dkim_stage ()
 
int mess_dkim ()
 
int dkim_verify ()
 
int dkim_result (const char *me)
 
int qmail_queue ()
 
void dkim_unlink ()
 
int main ()
 

Variables

char bufin [1024]
 
buffer bi = BUFFER_INIT(read,0,bufin,sizeof(bufin))
 
char bufout [1024]
 
buffer bo = BUFFER_INIT(write,1,bufout,sizeof(bufout))
 

Detailed Description

stub routine for DKIM signature verification and indication in received message

Steps:

a) Store message with CRLF b) Get DKIM signature from message - if given: c) Call qmail-dkim for verification d) Include results as appended header e) Queue the message for processing

Definition in file qmail-dkverify.c.

Macro Definition Documentation

◆ WHO

#define WHO   "qmail-dkverify"

Definition at line 29 of file qmail-dkverify.c.

Function Documentation

◆ die()

void die ( int  e)

Definition at line 49 of file qmail-dkverify.c.

Here is the call graph for this function:

◆ die_pipe()

void die_pipe ( char *  fn)

Definition at line 50 of file qmail-dkverify.c.

Here is the call graph for this function:

◆ die_read()

void die_read ( void  )

Definition at line 52 of file qmail-dkverify.c.

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

◆ die_write()

void die_write ( char *  fn)

Definition at line 51 of file qmail-dkverify.c.

Here is the call graph for this function:

◆ dkim_result()

int dkim_result ( const char *  me)

Definition at line 229 of file qmail-dkverify.c.

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

◆ dkim_stage()

void dkim_stage ( )

Definition at line 107 of file qmail-dkverify.c.

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

◆ dkim_unlink()

void dkim_unlink ( )

Definition at line 330 of file qmail-dkverify.c.

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

◆ dkim_verify()

int dkim_verify ( )

Definition at line 200 of file qmail-dkverify.c.

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

◆ fnmake_dkim()

void fnmake_dkim ( unsigned long  id)

Definition at line 100 of file qmail-dkverify.c.

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

◆ main()

int main ( void  )

Definition at line 338 of file qmail-dkverify.c.

Here is the call graph for this function:

◆ mess_dkim()

int mess_dkim ( )

Definition at line 144 of file qmail-dkverify.c.

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

◆ out()

void out ( char *  s)

Definition at line 53 of file qmail-dkverify.c.

Here is the call graph for this function:

◆ qmail_queue()

int qmail_queue ( )

Definition at line 272 of file qmail-dkverify.c.

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

◆ temp_chdir()

void temp_chdir ( )

Definition at line 62 of file qmail-dkverify.c.

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

◆ temp_control()

void temp_control ( )

Definition at line 87 of file qmail-dkverify.c.

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

◆ temp_create()

void temp_create ( )

Definition at line 67 of file qmail-dkverify.c.

Here is the call graph for this function:

◆ temp_nomem()

void temp_nomem ( void  )

Definition at line 57 of file qmail-dkverify.c.

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

◆ temp_read()

void temp_read ( )

Definition at line 77 of file qmail-dkverify.c.

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

◆ temp_socket()

void temp_socket ( )

Definition at line 82 of file qmail-dkverify.c.

Here is the call graph for this function:

◆ temp_unlink()

void temp_unlink ( )

Definition at line 72 of file qmail-dkverify.c.

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

◆ zero()

void zero ( )

Definition at line 54 of file qmail-dkverify.c.

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

◆ zerodie()

void zerodie ( void  )

Definition at line 55 of file qmail-dkverify.c.

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

Variable Documentation

◆ bi

buffer bi = BUFFER_INIT(read,0,bufin,sizeof(bufin))

Definition at line 45 of file qmail-dkverify.c.

◆ bo

buffer bo = BUFFER_INIT(write,1,bufout,sizeof(bufout))

Definition at line 47 of file qmail-dkverify.c.

◆ bufin

char bufin[1024]

Definition at line 44 of file qmail-dkverify.c.

◆ bufout

char bufout[1024]

Definition at line 46 of file qmail-dkverify.c.