Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ServerSignature.h

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: ServerSignature.h,v 1.4 2005/01/21 19:44:17 mmarsh Exp $
00008 //
00009 // $Log: ServerSignature.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:59  mmarsh
00014 // *** empty log message ***
00015 //
00016 // Revision 1.2  2003/11/04 22:31:51  mmarsh
00017 // *** empty log message ***
00018 //
00019 //
00020 
00021 #ifndef __CODEX_SERVER_SERVERSIGNATURE_H__
00022 #define __CODEX_SERVER_SERVERSIGNATURE_H__
00023 
00024 #include "CODEX_ASN1/Base.h"
00025 #include "CODEX_ASN1/Integer.h"
00026 #include "CODEX_Ciphers/RSA.h"
00027 
00028 namespace CODEX_Server
00029 {
00034    class ServerSignature : public CODEX_ASN1::Base
00035    {
00036       public :
00038          ServerSignature();
00040          ServerSignature( unsigned int serverID ,
00041                           const CODEX_Ciphers::RSASignature& sig );
00043          ServerSignature( const CODEX_ASN1::Integer& serverID,
00044                           const CODEX_Ciphers::RSASignature& sig );
00046          ServerSignature( const ServerSignature& aOther );
00048          virtual ~ServerSignature() {}
00049 
00051          void operator=( const ServerSignature& aOther );
00052 
00054          const CODEX_ASN1::Integer& serverID() const { return m_serverID; }
00055 
00057          const CODEX_Ciphers::RSASignature& signature() const
00058          {
00059             return m_signature;
00060          }
00061 
00063          int marshal( unsigned char ** pp ) const;
00065          void* unmarshal( void* bogus, unsigned char ** pp, long length );
00066 
00067       private :
00068          CODEX_ASN1::Integer          m_serverID;
00069          CODEX_Ciphers::RSASignature  m_signature;
00070    };
00071 }
00072 
00073 #endif /* __CODEX_SERVER_SERVERSIGNATURE_H__ */

Generated on Fri May 6 17:41:14 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1