OFFIS DCMTK  Version 3.6.0
sitypes.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, Marco Eichelberg
17  *
18  * Purpose:
19  * consts, typedefs and enums for dcmsign
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:17:25 $
23  * CVS/RCS Revision: $Revision: 1.7 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 #ifndef SITYPES_H
31 #define SITYPES_H
32 
33 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
34 
35 #ifdef WITH_OPENSSL
36 
37 #include "dcmtk/ofstd/oftypes.h"
38 #include "dcmtk/ofstd/ofcond.h"
39 
40 // DICOM defined terms for MAC algorithms, certificate and timestamp types
41 #define SI_DEFTERMS_RIPEMD160 "RIPEMD160"
42 #define SI_DEFTERMS_SHA1 "SHA1"
43 #define SI_DEFTERMS_MD5 "MD5"
44 #define SI_DEFTERMS_X509CERT "X509_1993_SIG"
45 #define SI_DEFTERMS_CMS_TS "CMS_TS"
46 
47 
50 enum E_KeyType
51 {
53  EKT_RSA,
54 
56  EKT_DSA,
57 
59  EKT_DH,
60 
62  EKT_none
63 };
64 
65 
68 enum E_MACType
69 {
71  EMT_SHA1,
72 
74  EMT_RIPEMD160,
75 
77  EMT_MD5
78 };
79 
80 
81 /*
82  * specific error conditions for module dcmsign
83  */
84 
86 extern const OFCondition SI_EC_InitializationFailed;
87 
89 extern const OFCondition SI_EC_OpenSSLFailure;
90 
92 extern const OFCondition SI_EC_CannotRead;
93 
95 extern const OFCondition SI_EC_WrongTransferSyntax;
96 
98 extern const OFCondition SI_EC_MacIDsExhausted;
99 
101 extern const OFCondition SI_EC_CertificateDoesNotMatchPrivateKey;
102 
104 extern const OFCondition SI_EC_MacDoesNotMatchProfile;
105 
107 extern const OFCondition SI_EC_AlgorithmDoesNotMatchProfile;
108 
110 extern const OFCondition SI_EC_TransferSyntaxDoesNotMatchProfile;
111 
115 extern const OFCondition SI_EC_VerificationFailed_NoCertificate;
116 
118 extern const OFCondition SI_EC_VerificationFailed_NoMAC;
119 
121 extern const OFCondition SI_EC_VerificationFailed_NoSignature;
122 
124 extern const OFCondition SI_EC_VerificationFailed_UnsupportedMACAlgorithm;
125 
127 extern const OFCondition SI_EC_VerificationFailed_Corrupted;
128 
130 extern const OFCondition SI_EC_VerificationFailed_NoTrust;
131 
132 #endif
133 #endif
134 
135 /*
136  * $Log: sitypes.h,v $
137  * Revision 1.7 2010-10-14 13:17:25 joergr
138  * Updated copyright header. Added reference to COPYRIGHT file.
139  *
140  * Revision 1.6 2005-12-08 16:04:47 meichel
141  * Changed include path schema for all DCMTK header files
142  *
143  * Revision 1.5 2001/11/16 15:50:51 meichel
144  * Adapted digital signature code to final text of supplement 41.
145  *
146  * Revision 1.4 2001/09/26 14:30:23 meichel
147  * Adapted dcmsign to class OFCondition
148  *
149  * Revision 1.3 2001/06/01 15:50:51 meichel
150  * Updated copyright header
151  *
152  * Revision 1.2 2001/01/25 15:11:44 meichel
153  * Added class SiCertificateVerifier in dcmsign which allows to check
154  * whether a certificate from a digital signature is trusted, i.e. issued
155  * by a known CA and not contained in a CRL.
156  *
157  * Revision 1.1 2000/11/07 16:49:00 meichel
158  * Initial release of dcmsign module for DICOM Digital Signatures
159  *
160  *
161  */
162 


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