Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

Policy.cc

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: Policy.cc,v 1.3 2004/05/19 15:56:47 mmarsh Exp $
00008 //
00009 // $Log: Policy.cc,v $
00010 // Revision 1.3  2004/05/19 15:56:47  mmarsh
00011 // *** empty log message ***
00012 //
00013 // Revision 1.2  2003/11/04 22:31:47  mmarsh
00014 // *** empty log message ***
00015 //
00016 //
00017 
00018 #include "Policy.h"
00019 #include "CODEX_Exceptions/BignumExceptions.h"
00020 
00021 using namespace CODEX_Ciphers;
00022 using namespace CODEX_Exceptions;
00023 
00024 Policy::Policy() :
00025    CODEX_ASN1::Base( false )
00026 {
00027 }
00028 
00029 //Policy::Policy( const RSAPublicKey& publicKey,
00030 //                const RSASignature& signature ) :
00031 //   PolCredBase( publicKey, signature )
00032 //{
00033 //}
00034 
00035 //Policy::Policy( const RSAPublicKey& publicKey,
00036 //                const RSAPrivateKey& signingKey,
00037 //                const HashFunction& hashFunc ) :
00038 //   PolCredBase( publicKey, signingKey, hashFunc )
00039 //{
00040 //}
00041 
00042 Policy::Policy( const Policy& aPol ) :
00043    CODEX_ASN1::Base( aPol )
00044 {
00045 }
00046 
00047 void
00048 Policy::operator=( const Policy& aPol )
00049 {
00050    m_initialized = aPol.m_initialized;
00051 }
00052 
00053 bool
00054 Policy::verify( const Credentials& credentials ) const
00055 {
00056    return true;
00057 }
00058 
00059 int
00060 Policy::marshal( unsigned char ** pp ) const
00061 {
00062    return 0;
00063 }
00064 
00065 void*
00066 Policy::unmarshal( void* bogus, unsigned char ** pp, long length )
00067 {
00068    m_initialized = true;
00069    return this;
00070 }
00071 

Generated on Wed Jun 2 16:32:55 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18