00001 /* 00002 * Copyright 2003 Michael A. Marsh, Cornell University. All rights reserved. 00003 * This software is released under the modified BSD license. 00004 * See the file LICENSE in the top-level directory for details. 00005 */ 00006 // 00007 // $Id: InternalVerifier.h,v 1.3 2004/05/19 15:56:58 mmarsh Exp $ 00008 // 00009 // $Log: InternalVerifier.h,v $ 00010 // Revision 1.3 2004/05/19 15:56:58 mmarsh 00011 // *** empty log message *** 00012 // 00013 // Revision 1.2 2003/11/04 22:31:50 mmarsh 00014 // *** empty log message *** 00015 // 00016 // 00017 00018 #ifndef __CODEX_SERVER_INTERNALVERIFIER_H__ 00019 #define __CODEX_SERVER_INTERNALVERIFIER_H__ 00020 00021 #include "CODEX_Quorum/LocalServer.h" 00022 #include "CODEX_Quorum/Message.h" 00023 #include "CODEX_ASN1/SecureBigNumber.h" 00024 00025 namespace CODEX_Server 00026 { 00037 class InternalVerifier : public CODEX_Quorum::LocalServer 00038 { 00039 public : 00047 InternalVerifier( int port, 00048 const CODEX_Quorum::SocketBuilder& socketBuilder, 00049 CODEX_Quorum::SocketBase* socket ); 00050 00052 virtual ~InternalVerifier(); 00053 00055 void disable(); 00056 00057 void processRequest( CODEX_Quorum::SocketBase::StateType s ); 00058 00059 private : 00060 CODEX_ASN1::SecureBigNumber m_nonce; 00061 CODEX_Quorum::Message m_msg; 00062 int m_toRead; 00063 }; 00064 00065 } 00066 00067 #endif /* __CODEX_SERVER_INTERNALVERIFIER_H__ */
1.2.18