cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Macros | Functions | Variables
testlib.c File Reference
#include <ctype.h>
#include "cryptlib.h"
#include "test/test.h"
#include "crypt.h"

Go to the source code of this file.

Macros

#define THREAD_DEBUG_SUSPEND()
 
#define THREAD_DEBUG_RESUME()
 
#define DO_SELFTEST   0x0001
 
#define DO_LOWLEVEL   0x0002
 
#define DO_RANDOM   0x0004
 
#define DO_CONFIG   0x0008
 
#define DO_DEVICE   0x0010
 
#define DO_MIDLEVEL   0x0020
 
#define DO_CERT   0x0040
 
#define DO_KEYSETFILE   0x0080
 
#define DO_KEYSETDBX   0x0100
 
#define DO_CERTPROCESS   0x0200
 
#define DO_HIGHLEVEL   0x0400
 
#define DO_ENVELOPE   0x0800
 
#define DO_SESSION   0x1000
 
#define DO_SESSIONLOOPBACK   0x2000
 
#define DO_USER   0x4000
 
#define DO_ALL   0xFFFF
 

Functions

void xxxCertImport (const char *fileName)
 
void xxxCertCheck (const char *certFileName, const char *caFileNameOpt)
 
void xxxPubKeyRead (const char *fileName, const char *keyName)
 
void xxxPrivKeyRead (const char *fileName, const char *keyName, const char *password)
 
void xxxDataImport (const char *fileName)
 
void xxxSignedDataImport (const char *fileName)
 
void xxxEncryptedDataImport (const char *fileName)
 
int createTestKeys (void)
 
void smokeTest (void)
 
int main (int argc, char **argv)
 
void testSystemSpecific1 (void)
 
void testSystemSpecific2 (void)
 

Variables

int keyReadOK = TRUE
 
int doubleCertOK = FALSE
 

Macro Definition Documentation

#define DO_ALL   0xFFFF

Definition at line 243 of file testlib.c.

#define DO_CERT   0x0040

Definition at line 233 of file testlib.c.

#define DO_CERTPROCESS   0x0200

Definition at line 236 of file testlib.c.

#define DO_CONFIG   0x0008

Definition at line 230 of file testlib.c.

#define DO_DEVICE   0x0010

Definition at line 231 of file testlib.c.

#define DO_ENVELOPE   0x0800

Definition at line 238 of file testlib.c.

#define DO_HIGHLEVEL   0x0400

Definition at line 237 of file testlib.c.

#define DO_KEYSETDBX   0x0100

Definition at line 235 of file testlib.c.

#define DO_KEYSETFILE   0x0080

Definition at line 234 of file testlib.c.

#define DO_LOWLEVEL   0x0002

Definition at line 228 of file testlib.c.

#define DO_MIDLEVEL   0x0020

Definition at line 232 of file testlib.c.

#define DO_RANDOM   0x0004

Definition at line 229 of file testlib.c.

#define DO_SELFTEST   0x0001

Definition at line 227 of file testlib.c.

#define DO_SESSION   0x1000

Definition at line 239 of file testlib.c.

#define DO_SESSIONLOOPBACK   0x2000

Definition at line 240 of file testlib.c.

#define DO_USER   0x4000

Definition at line 241 of file testlib.c.

#define THREAD_DEBUG_RESUME ( )

Definition at line 42 of file testlib.c.

#define THREAD_DEBUG_SUSPEND ( )

Definition at line 41 of file testlib.c.

Function Documentation

int createTestKeys ( void  )
int main ( int  argc,
char **  argv 
)

Definition at line 471 of file testlib.c.

void smokeTest ( void  )
void testSystemSpecific1 ( void  )

Definition at line 775 of file testlib.c.

void testSystemSpecific2 ( void  )

Definition at line 894 of file testlib.c.

void xxxCertCheck ( const char *  certFileName,
const char *  caFileNameOpt 
)
void xxxCertImport ( const char *  fileName)

Definition at line 1464 of file certimp.c.

void xxxDataImport ( const char *  fileName)
void xxxEncryptedDataImport ( const char *  fileName)
void xxxPrivKeyRead ( const char *  fileName,
const char *  keyName,
const char *  password 
)
void xxxPubKeyRead ( const char *  fileName,
const char *  keyName 
)
void xxxSignedDataImport ( const char *  fileName)

Variable Documentation

int doubleCertOK = FALSE

Definition at line 56 of file testlib.c.

int keyReadOK = TRUE

Definition at line 56 of file testlib.c.