params_dup.h

Go to the documentation of this file.
00001 /* params_dup.h,v 1.8 2006/04/19 13:33:02 jwillemsen Exp */
00002 
00003 #ifndef TAO_SSLIOP_PARAMS_DUP_H
00004 #define TAO_SSLIOP_PARAMS_DUP_H
00005 
00006 #include /**/ "ace/pre.h"
00007 
00008 #include "ace/config-macros.h"
00009 #include "tao/Versioned_Namespace.h"
00010 
00011 // As of 0.9.7e, OpenSSL's DSAparams_dup() and DHparams_dup() macros
00012 // contain casts that are invalid in C++.  These C wrapper functions
00013 // allows them to be called from C++.
00014 
00015 #include <openssl/dsa.h>
00016 #include <openssl/dh.h>
00017 
00018 #if (defined (TAO_HAS_VERSIONED_NAMESPACE) && TAO_HAS_VERSIONED_NAMESPACE == 1)
00019 
00020 # define DSAPARAMS_DUP_WRAPPER_NAME ACE_PREPROC_CONCATENATE(TAO_VERSIONED_NAMESPACE_NAME, _DSAparams_dup_wrapper)
00021 # define DHPARAMS_DUP_WRAPPER_NAME ACE_PREPROC_CONCATENATE(TAO_VERSIONED_NAMESPACE_NAME, _DHparams_dup_wrapper)
00022 
00023 #else
00024 
00025 # define DSAPARAMS_DUP_WRAPPER_NAME DSAparams_dup_wrapper
00026 # define DHPARAMS_DUP_WRAPPER_NAME  DHparams_dup_wrapper
00027 
00028 #endif  /* ACE_HAS_VERSIONED_NAMESPACE == 1 */
00029 
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 extern DSA *DSAPARAMS_DUP_WRAPPER_NAME (DSA *dsa);
00036 extern DH  *DHPARAMS_DUP_WRAPPER_NAME (DH *dh);
00037 
00038 #ifdef __cplusplus
00039 }
00040 #endif
00041 
00042 #include /**/ "ace/post.h"
00043 
00044 #endif

Generated on Thu Nov 9 13:54:13 2006 for TAO_SSLIOP by doxygen 1.3.6