OFFIS DCMTK
Version 3.6.0
Main Page
Related Pages
Classes
Files
File List
File Members
dcmsign
include
dcmtk
dcmsign
sicert.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: Norbert Loxen
17
*
18
* Purpose:
19
* classes: SiCertificate
20
*
21
* Last Update: $Author: joergr $
22
* Update Date: $Date: 2010-10-14 13:17:24 $
23
* CVS/RCS Revision: $Revision: 1.8 $
24
* Status: $State: Exp $
25
*
26
* CVS/RCS Log at end of file
27
*
28
*/
29
30
#ifndef SICERT_H
31
#define SICERT_H
32
33
#include "dcmtk/config/osconfig.h"
34
#include "dcmtk/dcmsign/sitypes.h"
35
36
#ifdef WITH_OPENSSL
37
38
#include "dcmtk/ofstd/ofstring.h"
/* for class OFString */
39
40
class
DcmItem
;
41
class
SiAlgorithm
;
42
struct
x509_st;
43
typedef
struct
x509_st X509;
44
47
class
SiCertificate
48
{
49
public
:
50
52
SiCertificate
();
53
55
virtual
~SiCertificate
();
56
62
OFCondition
loadCertificate
(
const
char
*filename,
int
filetype);
63
69
OFCondition
read
(
DcmItem
& item);
70
76
OFCondition
write
(
DcmItem
& item);
77
80
E_KeyType
getKeyType
();
81
87
SiAlgorithm
*
createAlgorithmForPublicKey
();
88
93
long
getX509Version
();
94
99
void
getCertSubjectName
(
OFString
& str);
100
105
void
getCertIssuerName
(
OFString
& str);
106
111
long
getCertSerialNo
();
112
117
void
getCertValidityNotBefore
(
OFString
& str);
118
123
void
getCertValidityNotAfter
(
OFString
& str);
124
130
long
getCertKeyBits
();
131
135
X509 *
getRawCertificate
();
136
137
private
:
138
140
SiCertificate
(
SiCertificate
& arg);
141
143
SiCertificate
&
operator=
(
SiCertificate
& arg);
144
146
X509*
x509
;
147
148
};
149
150
#endif
151
#endif
152
153
/*
154
* $Log: sicert.h,v $
155
* Revision 1.8 2010-10-14 13:17:24 joergr
156
* Updated copyright header. Added reference to COPYRIGHT file.
157
*
158
* Revision 1.7 2010-02-22 11:39:54 uli
159
* Remove some unneeded includes.
160
*
161
* Revision 1.6 2005-12-08 16:04:33 meichel
162
* Changed include path schema for all DCMTK header files
163
*
164
* Revision 1.5 2003/07/04 13:28:13 meichel
165
* Replaced forward declarations for OFString with explicit includes,
166
* needed when compiling with HAVE_STD_STRING
167
*
168
* Revision 1.4 2003/06/04 14:21:03 meichel
169
* Simplified include structure to avoid preprocessor limitation
170
* (max 32 #if levels) on MSVC5 with STL.
171
*
172
* Revision 1.3 2001/09/26 14:30:19 meichel
173
* Adapted dcmsign to class OFCondition
174
*
175
* Revision 1.2 2001/06/01 15:50:47 meichel
176
* Updated copyright header
177
*
178
* Revision 1.1 2000/11/07 16:48:53 meichel
179
* Initial release of dcmsign module for DICOM Digital Signatures
180
*
181
*
182
*/
183
Generated on Thu Dec 20 2012 for
OFFIS DCMTK
Version 3.6.0 by
Doxygen
1.8.2