RSA BSAFE Micro Edition Suite

Streamlined security for mobile and embedded devices

Search  Print

r_cert_r.h

Go to the documentation of this file.
00001 /* $Id: r_cert_r.h,v 1.61 2005/04/05 02:23:16 jmckee 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  */
00010 
00011 #ifndef HEADER_COMMON_R_CERT_R_H
00012 #define HEADER_COMMON_R_CERT_R_H
00013 
00014 #ifdef  __cplusplus
00015 extern "C" {
00016 #endif
00017 
00023 /*
00024  * @defgroup CERT_LIB Certificate and Library/Resource List functions
00025  * All the functions that deal with certificates and the resource list.
00026  * @ingroup CERT_ALL_FUNCS
00027  * @{
00028  */
00029 
00030 R_CERT_PRINT_FUNC_T * R_CDECL R_CERT_get_print_func(void *imp_data);
00031 
00032 /*
00033  * @}
00034  */
00035 
00036 #ifndef Rm_CERT_DIRECT
00037 
00038 R_CERT_METHOD * R_CDECL R_CERT_get_x509_method(void *imp_data);
00039 R_CERT_METHOD * R_CDECL R_CERT_get_x509_small_method(void *imp_data);
00040 R_CERT_METHOD * R_CDECL R_CERT_get_wtls_method(void *imp_data);
00041 
00042 #else /* Rm_CERT_DIRECT */
00043 
00044 #define R_CERT_get_x509_method             NULL
00045 #define R_CERT_get_x509_small_method       NULL
00046 #define R_CERT_get_wtls_method             NULL
00047 
00048 #endif /* Rm_CERT_DIRECT */
00049 
00063 #define R_CERT_RES_X509                                               \
00064     { R_RES_MOD_ID_CERT, R_RES_IMPL_ID_DEF, R_CERT_TYPE_X509,         \
00065       R_RES_FLAG_DEF, NULL, NULL,                                     \
00066       (void *(*)(void *))R_CERT_get_x509_method, NULL }
00067 
00076 #define R_CERT_RES_X509_VERIFY                                        \
00077     { R_RES_MOD_ID_CERT, R_RES_IMPL_ID_DEF, R_CERT_TYPE_X509,         \
00078       R_RES_FLAG_DEF, NULL, NULL,                                     \
00079       (void *(*)(void *))R_CERT_get_x509_small_method, NULL }
00080 
00084 #define R_CERT_RES_WTLS                                               \
00085     { R_RES_MOD_ID_CERT, R_RES_IMPL_ID_DEF, R_CERT_TYPE_WTLS,         \
00086       R_RES_FLAG_DEF, NULL, NULL,                                     \
00087       (void *(*)(void *))R_CERT_get_wtls_method, NULL }
00088 
00109 #define R_CERT_RES_CUSTOM(start_fn, fin_fn, meth_fn, data_fn, type)     \
00110     { R_RES_MOD_ID_CERT, R_RES_IMPL_ID_DEF, type, R_RES_FLAG_DEF,       \
00111       (int (*)(R_RES_LIST *, R_RES_ITEM *, void **))(start_fn),         \
00112       (int (*)(R_RES_LIST *, R_RES_ITEM *, void **))(fin_fn),           \
00113       (void *(*)(void *))meth_fn, (void *(*)(void *))data_fn }
00114 
00119 #define R_CERT_RES_PRINT                                              \
00120     { R_RES_MOD_ID_CERT, R_RES_IMPL_ID_PRINT_FUNC,                    \
00121       R_RES_SUB_ID_DEF, R_RES_FLAG_DEF, NULL, NULL, NULL,             \
00122       (void *(*)(void *))R_CERT_get_print_func }
00123 
00128 #ifdef  __cplusplus
00129 }
00130 #endif
00131 
00132 #endif /* HEADER_COMMON_R_CERT_R_H */
00133 

Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 072-001001-2100-001-000 - 2.1