Main Page | Data Structures | File List | Data Fields | Globals

Cli_escrow.c File Reference

Linux: This is the TrueCrypt Cli.c file with the additions that enable key escrow. More...

#include <errno.h>
#include <getopt.h>
#include <inttypes.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <termios.h>
#include <time.h>
#include <unistd.h>
#include <utime.h>
#include "Tcdefs.h"
#include "Crc.h"
#include "Dm-target.h"
#include "Keyfiles.h"
#include "Fat.h"
#include "Format.h"
#include "Password.h"
#include "Progress.h"
#include "Random.h"
#include "Volumes.h"
#include "Tests.h"
#include "Cli.h"
#include "WFU.h"
#include "libconfig.h"

Defines

#define WFU_MAX_USERNAME   1024
 The maximum allowed length for a username.
#define WFU_USERNAME_PROMPT   "Enter your network username:"
 The prompt for username.
#define WFU_PASSWD_PROMPT   "Enter the network passwd for \'%s\':"
 The prompt for password.
#define WFU_NUMBER_OF_TRIES   3
 The function of times a user can attempt to authenticate.

Functions

int WFU_check_errors ()
 This will check the wfu_error_no for common errors.
int WFU_escrow_callback (PCRYPTO_INFO cryptInfo)
 This function performs the escrow of a CRYPTO_INFO structure.


Detailed Description

Linux: This is the TrueCrypt Cli.c file with the additions that enable key escrow.


Function Documentation

int WFU_check_errors  )  [static]
 

This will check the wfu_error_no for common errors.

Most of the errors will be displayed to the user.

Returns:
the return value indicates the number of errors caught by this function.

int WFU_escrow_callback PCRYPTO_INFO  cryptInfo  ) 
 

This function performs the escrow of a CRYPTO_INFO structure.

The function VolumeReadHeader() from Volumes.c calls this function upon mount of a TrueCrypt volume. The ~wfu_escrow/config.xml configuration file contains the necessary parameters for the server name, certificate locations and TCP port number.

Parameters:
cryptInfo This is the pointer to the CRYPTO_INFO structure to escrow.
Returns:
The return value indicates true or false.


Generated on Wed Oct 10 12:38:20 2007 for WFUCrypt by  doxygen 1.3.9.1