RSA BSAFE SSL-C

Security protocol components for C

Search

vercfg.h

Go to the documentation of this file.
00001 /* $Id: vercfg.h,v 1.53 2003/09/19 07:51:57 sfruenke Exp $ */
00002 /*
00003  * Copyright (C) 1998-2002 RSA Security Inc. All rights reserved. This
00004  * work contains proprietary information of RSA Security. Distribution
00005  * is limited to authorized licensees of RSA Security. Any unauthorized
00006  * reproduction, distribution or modification of this work is strictly 
00007  * prohibited.
00008  */
00009 
00015 #ifndef HEADER_CRYPTO_H
00016 #define HEADER_CRYPTO_H
00017 
00018 #ifdef  __cplusplus
00019 extern "C" {
00020 #endif /* __cplusplus */
00021 
00022 #ifndef NO_STDLIB_H
00023 #include <stdlib.h>     /* required for getenv() */
00024 #endif
00025 #include "r_com.h"
00026 #include "r_time.h"
00027 
00028 /* SSLC specific definitions */
00029 
00030 /* SSLC_version arg is one of the following */
00031 #define SSLC_VERSION            0
00032 #define SSLC_CFLAGS             2
00033 #define SSLC_BUILT_ON           3
00034 #define SSLC_PLATFORM           4
00035 #define SSLC_BUILD_ID           5
00036 #define SSLC_IS_EVAL            6
00037 
00038 /* Random file definition */
00039 #define RFILE ".rand"
00040 
00041 /* Originally from e_os.h */
00042 #define Getenv  getenv
00043 #if defined(MSDOS) || defined(WIN16) || defined(WIN32) 
00044 #define LIST_SEPARATOR_CHAR ';'
00045 #else
00046 #define LIST_SEPARATOR_CHAR ':'
00047 #endif
00048 
00049 #  if defined(WIN16) && !defined(MONOLITH) && defined(SSLEAY) && defined(_WINEXITNOPERSIST) 
00050 #    define EXIT(n) { if (n == 0) _wsetexit(_WINEXITNOPERSIST); return(n); }
00051 #  else
00052 #    define EXIT(n)             return(n);
00053 #  endif
00054 
00055 #ifdef PLATFORM_IMODE
00056 #include "r_imode.h"            /* We need this for NO_TIME_H definition for P502 */
00057 #endif
00058 
00059 #ifndef X_OK
00060 #define X_OK    0
00061 #endif
00062 #ifndef W_OK
00063 #define W_OK    2
00064 #endif
00065 #ifndef R_OK
00066 #define R_OK    4
00067 #endif
00068 
00069 #define SSLC_CONF               "sslc.cnf"
00070 #define SSLC_CONFENV            "SSLC_CONF"
00071 #define SSLC_PROGRAM_NAME       "sslc"
00072 
00073 #define P_CC_CC const void *,const void *
00074 
00075 char * R_CDECL SSLC_version(int type);
00076 unsigned long R_CDECL SSLC_version_number(void);
00077 
00078 /* Functions for adding cipher and digest definitions */
00083 void R_CDECL SSLC_add_all_algorithms(void);
00084 void R_CDECL SSLC_add_all_ciphers(void);
00085 void R_CDECL SSLC_add_all_digests(void);
00090 #ifdef  __cplusplus
00091 }
00092 #endif /* __cplusplus */
00093 #endif /* HEADER_CRYPTO_H */

Copyright (c) 1999-2004 RSA Security Inc. All rights reserved. 050-001001-2600-000-000 - 2.6