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: SupportedKeyStoredMsg.h,v 1.4 2005/01/21 19:44:17 mmarsh Exp $ 00008 // 00009 // $Log: SupportedKeyStoredMsg.h,v $ 00010 // Revision 1.4 2005/01/21 19:44:17 mmarsh 00011 // Updated for compatibility with Doxygen 1.4.1 00012 // 00013 // Revision 1.3 2004/05/19 15:56:53 mmarsh 00014 // *** empty log message *** 00015 // 00016 // Revision 1.2 2003/11/04 22:31:49 mmarsh 00017 // *** empty log message *** 00018 // 00019 // 00020 00021 #ifndef __CODEX_KEYSERVICE_SUPPORTEDKEYSTOREDMSG_H__ 00022 #define __CODEX_KEYSERVICE_SUPPORTEDKEYSTOREDMSG_H__ 00023 00024 #include "CODEX_Client/Message.h" 00025 #include "CODEX_Server/ServerSignature.h" 00026 #include "CODEX_Server/ServerState.h" 00027 00028 namespace CODEX_KeyService 00029 { 00042 class SupportedKeyStoredMsg : public CODEX_ASN1::Base 00043 { 00044 public : 00046 typedef CODEX_ASN1::Array< CODEX_Server::ServerSignature > ArrayType; 00047 00049 typedef CODEX_Server::ServerState::LSType::LabelType LabelType; 00050 00052 SupportedKeyStoredMsg(); 00053 00055 SupportedKeyStoredMsg( const CODEX_Client::KeyStoredMsg& response, 00056 const ArrayType& evidence, 00057 const LabelType& label ); 00058 00060 SupportedKeyStoredMsg( const SupportedKeyStoredMsg& aOther ); 00061 00063 virtual ~SupportedKeyStoredMsg(); 00064 00066 void operator=( const SupportedKeyStoredMsg& aOther ); 00067 00069 const CODEX_Client::KeyStoredMsg& response() const 00070 { 00071 return m_response; 00072 } 00073 00075 const ArrayType& evidence() const { return m_evidence; } 00076 00078 const LabelType& label() const { return m_label; } 00079 00081 int marshal( unsigned char ** pp ) const; 00082 00084 void* unmarshal( void* bogus, unsigned char ** pp, long length ); 00085 00086 private : 00087 CODEX_Client::KeyStoredMsg m_response; 00088 ArrayType m_evidence; 00089 LabelType m_label; 00090 }; 00091 00092 } 00093 00094 #endif /* __CODEX_KEYSERVICE_SUPPORTEDKEYSTOREDMSG_H__ */
1.4.1