OFFIS DCMTK  Version 3.6.0
sicertvf.h
1 /*
2  *
3  * Copyright (C) 1998-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmsign
15  *
16  * Author: Marco Eichelberg
17  *
18  * Purpose:
19  * classes: SiCertificateVerifier
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:17:24 $
23  * CVS/RCS Revision: $Revision: 1.6 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 #ifndef SICERTVF_H
31 #define SICERTVF_H
32 
33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmsign/sitypes.h"
35 
36 #ifdef WITH_OPENSSL
37 
38 class SiCertificate;
39 struct x509_store_st;
40 typedef struct x509_store_st X509_STORE;
41 
45 {
46 public:
47 
50 
52  virtual ~SiCertificateVerifier();
53 
59  OFCondition addTrustedCertificateFile(const char *fileName, int fileType);
60 
67  OFCondition addTrustedCertificateDir(const char *pathName, int fileType);
68 
75  OFCondition addCertificateRevocationList(const char *fileName, int fileType);
76 
85 
91  const char *lastError() const;
92 
93 private:
94 
97 
100 
102  X509_STORE* x509store;
103 
105  long errorCode;
106 
107 };
108 
109 #endif
110 #endif
111 
112 /*
113  * $Log: sicertvf.h,v $
114  * Revision 1.6 2010-10-14 13:17:24 joergr
115  * Updated copyright header. Added reference to COPYRIGHT file.
116  *
117  * Revision 1.5 2005-12-08 16:04:34 meichel
118  * Changed include path schema for all DCMTK header files
119  *
120  * Revision 1.4 2003/06/04 14:21:03 meichel
121  * Simplified include structure to avoid preprocessor limitation
122  * (max 32 #if levels) on MSVC5 with STL.
123  *
124  * Revision 1.3 2001/09/26 14:30:19 meichel
125  * Adapted dcmsign to class OFCondition
126  *
127  * Revision 1.2 2001/06/01 15:50:47 meichel
128  * Updated copyright header
129  *
130  * Revision 1.1 2001/01/25 15:11:43 meichel
131  * Added class SiCertificateVerifier in dcmsign which allows to check
132  * whether a certificate from a digital signature is trusted, i.e. issued
133  * by a known CA and not contained in a CRL.
134  *
135  * Revision 1.1 2000/11/07 16:48:53 meichel
136  * Initial release of dcmsign module for DICOM Digital Signatures
137  *
138  *
139  */
140 


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2