rampart_replay_detector.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef RAMPART_REPLAY_DETECTOR_H
00019 #define RAMPART_REPLAY_DETECTOR_H
00020
00032 #include <axis2_defines.h>
00033 #include <axutil_env.h>
00034 #include <axis2_msg_ctx.h>
00035 #include <rampart_context.h>
00036
00037 #ifdef __cplusplus
00038 extern "C"
00039 {
00040 #endif
00041
00042 typedef struct rampart_replay_detector_ops rampart_replay_detector_ops_t;
00043 typedef struct rampart_replay_detector rampart_replay_detector_t;
00044
00045 struct rampart_replay_detector_ops
00046 {
00056 axis2_status_t (AXIS2_CALL*
00057 is_replayed)(
00058 rampart_replay_detector_t *rrd,
00059 const axutil_env_t* env,
00060 axis2_msg_ctx_t *msg_ctx,
00061 rampart_context_t *rampart_context);
00062
00069 axis2_status_t (AXIS2_CALL*
00070 free)(
00071 rampart_replay_detector_t *rrd,
00072 const axutil_env_t* env);
00073 };
00074
00075 struct rampart_replay_detector
00076 {
00077 rampart_replay_detector_ops_t *ops;
00078 axutil_param_t *param;
00079 };
00080
00081
00092 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00093 rampart_replay_detector_default(
00094 const axutil_env_t *env,
00095 axis2_msg_ctx_t* msg_ctx,
00096 rampart_context_t *rampart_context,
00097 void *user_params);
00098
00099
00100 #define RAMPART_REPLAY_DETECTOR_IS_REPLAYED(replay_detector, env, msg_ctx, rampart_context) \
00101 ((replay_detector)->ops->is_replayed(replay_detector, env, msg_ctx, rampart_context))
00102
00103 #define RAMPART_REPLAY_DETECTOR_FREE(replay_detector, env) \
00104 ((replay_detector)->ops->free(replay_detector, env))
00105
00107 #ifdef __cplusplus
00108 }
00109 #endif
00110
00111 #endif
00112