include/AU_util.h

/* [<][>][^][v][top]
[bottom][index][help] */

FUNCTIONS

This source file includes following functions.

   1 #ifndef AU_UTIL_H
   2 #define AU_UTIL_H 
   3 
   4 #include <stdio.h>
   5 #include <stdlib.h>
   6 #include <string.h>
   7 #include <sys/types.h>
   8 #include <unistd.h>
   9 #include <regex.h>
  10 #include <glib.h>
  11 #include "er_UP_errors.h"
  12 #include "erroutines.h"
  13 
  14 #define AU_MAIL_FROM 1
  15 #define AU_CRYPT_PW 2
  16 #define AU_PGP 3
  17 #define AU_NONE 4
  18 
  19 #ifdef __cplusplus
  20 extern "C" {
  21 #endif
  22 
  23 
  24 typedef struct _credentials_struct{
  25    GSList * password_list;
  26    char * from;
  27    char * pgp_struct;
  28 } credentials_struct;
  29 
  30 
  31 typedef struct _auth_struct{
  32   int type;
  33   char * auth;
  34   char * mntner_name;
  35   int index;
  36   char * pgp_struct;
  37 } auth_struct;
  38 
  39 char * AU_crypt(const char *key, const char *setting);
  40 int AU_authorise(GSList * auth_vector, credentials_struct credentials);
  41 
  42 #ifdef __cplusplus
  43  }
  44 #endif
  45 
  46 #endif

/* [<][>][^][v][top][bottom][index][help] */