📄 eap_tls_mng.hxx
字号:
/* BEGIN_COPYRIGHT *//* *//* Open Diameter: Open-source software for the Diameter and *//* Diameter related protocols *//* *//* Copyright (C) 2002-2004 Open Diameter Project *//* *//* This program is free software; you can redistribute it and/or modify *//* it under the terms of the GNU General Public License as published by *//* the Free Software Foundation; either version 2 of the License, or *//* (at your option) any later version. *//* */ /* This program is distributed in the hope that it will be useful, *//* but WITHOUT ANY WARRANTY; without even the implied warranty of *//* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *//* GNU General Public License for more details. *//* *//* You should have received a copy of the GNU General Public License *//* along with this program; if not, write to the Free Software *//* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *//* USA. *//* *//* In addition, when you copy and redistribute some or the entire part of *//* the source code of this software with or without modification, you *//* MUST include this copyright notice in each copy. *//* *//* If you make any changes that are appeared to be useful, please send *//* sources that include the changed part to *//* diameter-developers@lists.sourceforge.net so that we can reflect your *//* changes to one unified version of this software. *//* *//* END_COPYRIGHT *//*************************************************************************** eap_tls_mng.hxx - description ------------------- begin : jue mar 11 2004 copyright : (C) 2004 by email : ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#ifndef __EAP_TLS_MNG_H__#define __EAP_TLS_MNG_H__#include "eap_tls.hxx"#include "eap_tls_session.hxx"class EAPTLS_tls_mng{ public: EAPTLS_tls_mng() {}; virtual ~EAPTLS_tls_mng(){}; /* * TODO: Check for the type of key exchange * like conf->dh_key */ ACE_INT32 load_dh_params(TLS_context *ctx, std::string &file); ACE_INT32 generate_eph_rsa_key(TLS_context *ctx); /* * Create Global context SSL and use it in every new session * # Load the trusted CAs * # Load the Private key & the certificate * # Set the Context options & Verify options */ ACE_INT32 tls_handshake_recv(EAPTLS_session_t *ssn); static void tls_session_information(EAPTLS_session_t *tls_session); void tls_check_state(TLS_data *s, ACE_INT32 ret); enum EapTLSMngState { StOk, StAlertReceive, StAlertSend };};class EAPTLS_tls_mng_peer : public EAPTLS_tls_mng{ public: EAPTLS_tls_mng_peer():EAPTLS_tls_mng(){}; TLS_context *init_tls_ctx(EAPTLS_config &conf); };class EAPTLS_tls_mng_auth : public EAPTLS_tls_mng{ public: EAPTLS_tls_mng_auth():EAPTLS_tls_mng(){}; TLS_context *init_tls_ctx(EAPTLS_config &conf,ACE_INT32 session_id_context);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -