Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File 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.4 2005/01/21 19:44:15 mmarsh Exp $
00008 //
00009 // $Log: Certificate.h,v $
00010 // Revision 1.4  2005/01/21 19:44:15  mmarsh
00011 // Updated for compatibility with Doxygen 1.4.1
00012 //
00013 // Revision 1.3  2004/05/19 15:56:37  mmarsh
00014 // Added copyright and license statements.
00015 //
00016 // Revision 1.2  2003/11/04 22:05:44  mmarsh
00017 // General code cleanup.
00018 //
00019 //
00020 
00021 #ifndef __CODEX_ASN1_CERTIFICATE_H__
00022 #define __CODEX_ASN1_CERTIFICATE_H__
00023 
00024 #include <openssl/x509.h>
00025 #include "Base.h"
00026 
00027 namespace CODEX_ASN1
00028 {
00032    class Certificate : public Base
00033    {
00034       public :
00036          Certificate();
00038          Certificate( X509* value );
00040          Certificate( const Certificate& aCert );
00042          virtual ~Certificate();
00043 
00045          void operator=( const Certificate& aCert );
00046 
00048          const X509* value() const { return m_value; }
00049 
00050          int marshal( unsigned char ** pp ) const;
00051          void* unmarshal( void* bogus, unsigned char** pp, long length );
00052 
00058          void* fromPEMFile(const char* fname);
00059 
00060       protected :
00061 
00062       private :
00063          X509*  m_value;
00064    };
00065 
00066 }
00067 
00068 #endif /* __CODEX_ASN1_CERTIFICATE_H__ */

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