RSA BSAFE Micro Edition Suite

Streamlined security for mobile and embedded devices

Search  Print

r_cm_bio.h

Go to the documentation of this file.
00001 /* $Id: r_cm_bio.h,v 1.3.28.1 2005/10/05 02:04:51 sparki 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 NO_BIO
00012 
00020 #ifndef HEADER_COMMON_R_CM_BIO_H
00021 #define HEADER_COMMON_R_CM_BIO_H
00022 
00023 #ifdef  __cplusplus
00024 extern "C" {
00025 #endif
00026 
00027 #include "r_cm.h"
00028 
00033 int R_CM_to_BIO(R_CM *msg, int flag, BIO **bio);
00038 typedef int (BIO_CM_OP_CB_FUNC_T)(BIO *bio, R_CM *cm, R_CM_TYPE type,
00039     void *cb_arg);
00040 
00041 typedef struct bio_cm_op_cb_st
00042 {
00043     BIO_CM_OP_CB_FUNC_T *cb;
00044     void *cb_arg;
00045 } BIO_CM_OP_CB;
00046 
00050 typedef int R_CM_EX_OP_EVENT;
00051 
00052 #define R_CM_EX_OP_EVENT_PRE_ENCODE_ATTRIBUTE   1
00053 
00054 typedef int (BIO_CM_EX_OP_CB_FUNC_T)(
00055         BIO *bio,
00056         R_CM *cm,
00057         R_CM_EX_OP_EVENT event,
00058         R_CM_TYPE type,
00059     void *cb_arg);
00060 
00061 typedef struct bio_cm_ex_op_cb_st
00062 {
00063     BIO_CM_EX_OP_CB_FUNC_T *cb;
00064     void *cb_arg;
00065 } BIO_CM_EX_OP_CB;
00066 
00067 #ifdef  __cplusplus
00068 }
00069 #endif
00070 
00071 #endif /* HEADER_COMMON_R_CM_BIO_H */
00072 
00073 #endif /* NO_BIO */
00074 

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