| RSA BSAFE Micro Edition Suite |
Streamlined security for mobile and embedded devices |
 
![]() |
00001 /* $Id: r_prod.h,v 1.43.8.1 2005/11/21 05:07:17 gsingh Exp $ */
00002 /*
00003 * Copyright (C) 1998-2003 RSA Security Inc. All rights reserved.
00004 *
00005 * This work contains proprietary information of RSA Security.
00006 * Distribution is limited to authorized licensees of RSA
00007 * Security. Any unauthorized reproduction, distribution or
00008 * modification of this work is strictly prohibited.
00009 */
00015 #ifndef HEADER_COMMON_R_PROD_H
00016 #define HEADER_COMMON_R_PROD_H
00017
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021
00022 #ifndef CRYPTOC_ME
00023 #define PRODUCT_FIPS140_SWITCH_RESOURCE_LIST \
00024 PRODUCT_FIPS_140_MODE_RESOURCE_LIST
00025 #define PRODUCT_NON_FIPS140_SWITCH_RESOURCE_LIST \
00026 PRODUCT_NON_FIPS_140_MODE_RESOURCE_LIST
00027 #endif
00028
00029 /* include the appropriate product header file */
00030 #ifdef RCRYPTO
00031 #include "rcrypto.h"
00032 #endif /* RCRYPTO */
00033 #ifdef MES
00034 #include "mes.h"
00035 #endif /* MES */
00036 #if defined(SSLCME) && !defined(MES)
00037 #include "sslcme.h"
00038 #endif /* SSLCME && !MES */
00039 #ifdef SSLC
00040 #include "sslc.h"
00041 #endif /* SSLC */
00042 #ifdef BBANDC
00043 #include "bbandc.h"
00044 #endif
00045 #ifdef CERTC_ME
00046 #include "certcme.h"
00047 #endif
00048 #ifdef CRYPTOC_ME
00049 #include "cryptocme.h"
00050 #endif
00051 #ifdef WLCORE
00052 #include "wlcorec.h"
00053 #endif
00054 #ifdef WTLSC
00055 #include "wtlsc.h"
00056 #endif
00057 #if defined(CRYPTOCI) || defined(CRYPTOC)
00058 #include "cryptoci.h"
00059 #endif /* defined(CRYPTOCI) || defined(CRYPTOC) */
00060 #ifdef SPEC
00061 #include "spec.h"
00062 #endif /* SPEC */
00063
00064 #define RCOM_INFO_UNKNOWN 0
00065 #define RCOM_INFO_VERSION 1
00066 #define RCOM_INFO_BUILD_DATE 2
00067 #define RCOM_INFO_BUILD_FLAGS 3
00068 #define RCOM_INFO_BUILD_PLATFORM 4
00069 #define RCOM_INFO_BUILD_ID 5
00070 #define RCOM_INFO_BUILD_TAG 6
00071 #define RCOM_INFO_BUILD_EVAL 7
00072
00073 #include "r_com.h"
00074 #include "r_lib.h"
00075 #include "r_res.h"
00076
00077 int R_CDECL RCOM_library_new(R_RES_LIST *r_list, int flag, R_LIB_CTX **lib_ctx);
00078 int R_CDECL RCOM_library_free(R_LIB_CTX *lib_ctx);
00079
00080 #if defined(RCOM) || !defined(PRODUCT_LIBRARY_NEW)
00081
00082 #include "r_lib_r.h"
00083
00084 #ifndef NO_BIO
00085 #include "bio.h"
00086 #endif /* !NO_BIO */
00087 #if !defined(NO_CRYPTO) && !defined(NO_SOFTWARE_CRYPTO)
00088 #include "cryp_mod.h"
00089 #include "cryp_ops.h"
00090 #include "nat_meth.h"
00091 #include "cryp_meth.h"
00092 #endif /* !NO_CRYPTO && !NO_SOFTWARE_CRYPTO */
00093 #ifndef NO_CERT
00094 #include "r_cert.h"
00095 #include "r_cert_r.h"
00096 #include "r_cert_req.h"
00097 #include "r_cert_req_r.h"
00098 #include "ber_type.h"
00099 #endif /* !NO_CERT */
00100 #if !defined(NO_CM) && !defined(NO_CERT) && !defined(NO_PKCS7)
00101 #include "r_cm_r.h"
00102 #include "r_cm_bio.h"
00103 #endif /* !NO_CM && !NO_CERT && !NO_PKCS7 */
00104
00105 #ifndef NO_HDW
00106 #include "hdw_mod.h"
00107 #ifndef NO_CERT
00108 #include "hdw_cert.h"
00109 #endif
00110 #include "hdw_srch.h"
00111 #include "p11_atrb.h"
00112 #include "p11_meth.h"
00113 #endif /* !NO_HDW */
00114
00115 R_RES_LIST * R_CDECL RCOM_get_default_resource_list(void);
00116 int R_CDECL RCOM_library_version(void);
00117 char * R_CDECL RCOM_library_info(int type);
00118 char * R_CDECL RCOM_library_info_type_to_string(int type);
00119 int R_CDECL RCOM_library_info_type_from_string(char *str);
00120
00121 #ifndef DOXYGEN
00122 #ifndef PRODUCT_LIBRARY_NEW
00123 #define PRODUCT_LIBRARY_NEW RCOM_library_new
00124 #endif
00125 #ifndef PRODUCT_LIBRARY_FREE
00126 #define PRODUCT_LIBRARY_FREE RCOM_library_free
00127 #endif
00128 #ifndef PRODUCT_DEFAULT_RESOURCE_LIST
00129 #define PRODUCT_DEFAULT_RESOURCE_LIST RCOM_get_default_resource_list
00130 #endif
00131 #ifndef PRODUCT_NON_FIPS_140_MODE_RESOURCE_LIST
00132 #define PRODUCT_NON_FIPS_140_MODE_RESOURCE_LIST PRODUCT_DEFAULT_RESOURCE_LIST
00133 #endif
00134 #ifndef PRODUCT_FIPS_140_MODE_RESOURCE_LIST
00135 #define PRODUCT_FIPS_140_MODE_RESOURCE_LIST PRODUCT_DEFAULT_RESOURCE_LIST
00136 #endif
00137 #ifndef PRODUCT_HARDWARE_DLL_SYSTEM_VAR
00138 #define PRODUCT_HARDWARE_DLL_SYSTEM_VAR "RSA_RCOM_HDW_DLL"
00139 #endif
00140
00141 #ifndef NO_CERT
00142 #ifndef PRODUCT_CERT_TYPE_FROM_STRING
00143 #define PRODUCT_CERT_TYPE_FROM_STRING R_CERT_STORE_certtype_from_string
00144 #endif
00145 #ifndef PRODUCT_CERT_TYPE_TO_STRING
00146 #define PRODUCT_CERT_TYPE_TO_STRING R_CERT_STORE_certtype_to_string
00147 #endif
00148 #endif /* !NO_CERT */
00149
00150 #ifndef PRODUCT_LIBRARY_VERSION
00151 #define PRODUCT_LIBRARY_VERSION RCOM_library_version
00152 #endif
00153 #ifndef PRODUCT_LIBRARY_INFO
00154 #define PRODUCT_LIBRARY_INFO RCOM_library_info
00155 #endif
00156 #ifndef PRODUCT_LIBRARY_INFO_TYPE_FROM_STRING
00157 #define PRODUCT_LIBRARY_INFO_TYPE_FROM_STRING \
00158 RCOM_library_info_type_from_string
00159 #endif
00160 #endif /* DOXYGEN */
00161
00162 #endif /* RCOM || !PRODUCT_LIBRARY_NEW */
00163
00164 #ifdef __cplusplus
00165 }
00166 #endif
00167
00168 #endif /* HEADER_COMMON_R_PROD_H */
00169