diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Security/CSI_Utils.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Security/CSI_Utils.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Security/CSI_Utils.h b/TAO/orbsvcs/orbsvcs/Security/CSI_Utils.h new file mode 100644 index 00000000000..8f233dbfd97 --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/Security/CSI_Utils.h @@ -0,0 +1,56 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file CSI_Utils.h + * + * $Id$ + * + * @author Ossama Othman <ossama@dre.vanderbilt.edu> + */ +//============================================================================= + + +#ifndef TAO_CSI_UTILS_H +#define TAO_CSI_UTILS_H + +// No need to include "ace/pre.h" and "ace/post.h". This header and +// the declared types/variables are not meant to be used outside TAO's +// CSIv2 implementation. + +#include "tao/orbconf.h" +#include "tao/Versioned_Namespace.h" + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +// Forward declarations +namespace IOP +{ + struct ServiceContext; +} + +namespace CSI +{ + class SASContextBody; +} + +namespace TAO +{ + namespace CSI_Utils + { + /// Populate given IOP::ServiceContext with given CSI::SASContextBody. + void create_sas_service_context (const CSI::SASContextBody & sas_context, + IOP::ServiceContext & sc); + + /// Extract CSI::SASContextBody from given IOP::ServiceContext. + /** + * @return Success == true, Failure == false. + */ + bool extract_sas_service_context (const IOP::ServiceContext & sc, + CSI::SASContextBody & sas_context); + } +} + +TAO_END_VERSIONED_NAMESPACE_DECL + +#endif /* TAO_CSI_UTILS_H */ |