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

#include <SSLIOP_X509.h>

List of all members.

Public Types

 LOCK_ID = CRYPTO_LOCK_X509
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.
static void release (::X509 *st)


Detailed Description

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

Definition at line 38 of file SSLIOP_X509.h.


Member Enumeration Documentation

anonymous enum

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

Enumerator:
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.

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.

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

static 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.

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


The documentation for this struct was generated from the following file:
Generated on Tue Feb 2 17:48:59 2010 for TAO_SSLIOP by  doxygen 1.4.7