⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ssliop_x509.h

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻 H
字号:
// -*- C++ -*-

//=============================================================================
/**
 *  @file   SSLIOP_X509.h
 *
 *  SSLIOP_X509.h,v 1.4 2003/07/21 23:51:33 dhinton Exp
 *
 *  @author Ossama Othman <ossama@uci.edu>
 */
//=============================================================================

#ifndef TAO_SSLIOP_X509_H
#define TAO_SSLIOP_X509_H

#include /**/ "ace/pre.h"

#include "ace/config-all.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "tao/varbase.h"

#include <openssl/x509.h>
#include <openssl/crypto.h>

/**
 * @class TAO_SSLIOP_X509
 *
 * @brief Class/namespace that contains TAO-specific X.509 manipulation
 *        functions.
 *
 * This class provides CORBA-like _duplicate() and release() methods.
 * They are simply X509 reference count manipulation methods.
 */
class TAO_SSLIOP_X509
{
public:

  /**
   * @name CORBA-style Reference Count Manipulation Methods
   */
  /// Increase the reference count on the given X509 structure.
  static X509 *_duplicate (X509 *cert);

  /// Decrease the reference count on the given X509 structure.
  static void release (X509 *cert);

};

/**
 * @class TAO_SSLIOP_X509_var
 *
 * @brief "_var" class for the OpenSSL @param X509 structure.
 *
 * This class is simply used to make operations on instances of the
 * OpenSSL @param X509 structures exception safe.  It is only used
 * internally by the SSLIOP pluggable protocol.
 */
class TAO_SSLIOP_X509_var : public TAO_Base_var
{
public:

  /**
   * @name Constructors
   */
  //@{
  TAO_SSLIOP_X509_var (void);
  TAO_SSLIOP_X509_var (X509 *x);
  TAO_SSLIOP_X509_var (const TAO_SSLIOP_X509_var &);
  TAO_SSLIOP_X509_var (const X509 &x);
  //@}

  /// Destructor
  ~TAO_SSLIOP_X509_var (void);

  TAO_SSLIOP_X509_var &operator= (X509 *);
  TAO_SSLIOP_X509_var &operator= (const TAO_SSLIOP_X509_var &);
  TAO_SSLIOP_X509_var &operator= (const X509 &);
  const X509 *operator-> (void) const;
  X509 *operator-> (void);

  operator const X509 &() const;
  operator X509 &();

  X509 *in (void) const;
  X509 *&inout (void);
  X509 *&out (void);
  X509 *_retn (void);
  X509 *ptr (void) const;

private:

  // Unimplemented - prevents widening assignment.
  TAO_SSLIOP_X509_var (const TAO_Base_var &rhs);
  TAO_SSLIOP_X509_var &operator= (const TAO_Base_var &rhs);

private:

  /// The OpenSSL X509 structure that represents a X.509 certificate.
  X509 *x509_;

};


#if defined (__ACE_INLINE__)
#include "SSLIOP_X509.inl"
#endif  /* __ACE_INLINE__ */


#include /**/ "ace/post.h"

#endif  /* TAO_SSLIOP_X509_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -