Qsmtp  0.30dev
Functions | Variables
qsauth.h File Reference

function definitions for Qsmtpd's handling of message bodies More...

Go to the source code of this file.

Functions

int smtp_auth (void)
 
char * smtp_authstring (void)
 return a list of all enabled auth types More...
 
int auth_permitted (void)
 
void auth_setup (int argc, const char **argv)
 

Variables

const char * auth_check
 
const char ** auth_sub
 

Detailed Description

function definitions for Qsmtpd's handling of message bodies

Function Documentation

int smtp_auth ( void  )

check if user sends valid authentication

Returns
0 if user is successfully authenticated, error code else
char* smtp_authstring ( void  )

return a list of all enabled auth types

Returns
string of enabled auth types
Return values
NULLout of memory or AUTH currently not permitted

The returned memory is allocated and has to be freed by the caller.

The returned string will contain a trailing CRLF pair.

Variable Documentation

const char* auth_check

checkpassword or one of his friends for auth

const char** auth_sub

subprogram and arguments to be invoked by auth_check (usually /bin/true)

subprogram to be invoked by auth_check (usually /bin/true)