TAO::SSLIOP::OpenSSL_traits< ::X509 > Struct Template Reference

#include <SSLIOP_X509.h>

List of all members.

Public Types

enum  { LOCK_ID = CRYPTO_LOCK_X509 }

Static Public Member Functions

::X509_duplicate (::X509 *st)
 Increase the reference count on the given OpenSSL structure.

::X509copy (::X509 const &st)
 Perform deep copy of the given OpenSSL structure.

void release (::X509 *st)

template<>
struct TAO::SSLIOP::OpenSSL_traits< ::X509 >


Member Enumeration Documentation

anonymous enum
 

OpenSSL lock ID for use in OpenSSL CRYPTO_add() reference count manipulation function.

Enumeration values:
LOCK_ID 

Definition at line 42 of file SSLIOP_X509.h.

00042 { LOCK_ID = CRYPTO_LOCK_X509 };


Member Function Documentation

::X509* TAO::SSLIOP::OpenSSL_traits< ::X509 >::_duplicate ::X509 st  )  [inline, static]
 

Increase the reference count on the given OpenSSL structure.

Note:
This used to be in a function template but MSVC++ 6 can't handle function templates correctly so reproduce the code in each specialization. *sigh*

Definition at line 50 of file SSLIOP_X509.h.

References X509.

00051       {
00052         if (st != 0)
00053           CRYPTO_add (&(st->references),
00054                       1,
00055                       LOCK_ID);
00056 
00057         return st;
00058       }

::X509* TAO::SSLIOP::OpenSSL_traits< ::X509 >::copy ::X509 const &  st  )  [inline, static]
 

Perform deep copy of the given OpenSSL structure.

Definition at line 61 of file SSLIOP_X509.h.

References X509.

00062       {
00063         return ::X509_dup (const_cast< ::X509 *> (&st));
00064       }

void TAO::SSLIOP::OpenSSL_traits< ::X509 >::release ::X509 st  )  [inline, static]
 

Decrease the reference count on the given OpenSSL structure.

Definition at line 68 of file SSLIOP_X509.h.

References X509.

00069       {
00070         ::X509_free (st);
00071       }


The documentation for this struct was generated from the following file:
Generated on Sun Jan 27 16:14:36 2008 for TAO_SSLIOP by doxygen 1.3.6