rampart_replay_detector.h

Go to the documentation of this file.
00001 /*
00002 * Licensed to the Apache Software Foundation (ASF) under one or more
00003 * contributor license agreements.  See the NOTICE file distributed with
00004 * this work for additional information regarding copyright ownership.
00005 * The ASF licenses this file to You under the Apache License, Version 2.0
00006 * (the "License"); you may not use this file except in compliance with
00007 * the License.  You may obtain a copy of the License at
00008 *
00009 *      http://www.apache.org/licenses/LICENSE-2.0
00010 *
00011 * Unless required by applicable law or agreed to in writing, software
00012 * distributed under the License is distributed on an "AS IS" BASIS,
00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014 * See the License for the specific language governing permissions and
00015 * limitations under the License.
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     /*************************** Function macros **********************************/
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 /* RAMPART_REPLAY_DETECTOR_H */
00112 

Generated on Wed Oct 14 01:02:16 2009 for Rampart/C by  doxygen 1.5.7.1