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

Certificate.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: Certificate.h,v 1.3 2004/05/19 15:56:37 mmarsh Exp $
00008 //
00009 // $Log: Certificate.h,v $
00010 // Revision 1.3  2004/05/19 15:56:37  mmarsh
00011 // Added copyright and license statements.
00012 //
00013 // Revision 1.2  2003/11/04 22:05:44  mmarsh
00014 // General code cleanup.
00015 //
00016 //
00017 
00018 #ifndef __CODEX_ASN1_CERTIFICATE_H__
00019 #define __CODEX_ASN1_CERTIFICATE_H__
00020 
00021 #include <openssl/x509.h>
00022 #include "Base.h"
00023 
00024 namespace CODEX_ASN1
00025 {
00029    class Certificate : public Base
00030    {
00031       public :
00033          Certificate();
00035          Certificate( X509* value );
00037          Certificate( const Certificate& aCert );
00039          virtual ~Certificate();
00040 
00042          void operator=( const Certificate& aCert );
00043 
00045          const X509* value() const { return m_value; }
00046 
00047          int marshal( unsigned char ** pp ) const;
00048          void* unmarshal( void* bogus, unsigned char** pp, long length );
00049 
00055          void* fromPEMFile(const char* fname);
00056 
00057       protected :
00058 
00059       private :
00060          X509*  m_value;
00061    };
00062 
00063 }
00064 
00065 #endif /* __CODEX_ASN1_CERTIFICATE_H__ */

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