00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef SITYPES_H
00031 #define SITYPES_H
00032
00033 #include "dcmtk/config/osconfig.h"
00034
00035 #ifdef WITH_OPENSSL
00036
00037 #include "dcmtk/ofstd/oftypes.h"
00038 #include "dcmtk/ofstd/ofcond.h"
00039
00040
00041 #define SI_DEFTERMS_RIPEMD160 "RIPEMD160"
00042 #define SI_DEFTERMS_SHA1 "SHA1"
00043 #define SI_DEFTERMS_MD5 "MD5"
00044 #define SI_DEFTERMS_X509CERT "X509_1993_SIG"
00045 #define SI_DEFTERMS_CMS_TS "CMS_TS"
00046
00047
00050 enum E_KeyType
00051 {
00053 EKT_RSA,
00054
00056 EKT_DSA,
00057
00059 EKT_DH,
00060
00062 EKT_none
00063 };
00064
00065
00068 enum E_MACType
00069 {
00071 EMT_SHA1,
00072
00074 EMT_RIPEMD160,
00075
00077 EMT_MD5
00078 };
00079
00080
00081
00082
00083
00084
00086 extern const OFCondition SI_EC_InitializationFailed;
00087
00089 extern const OFCondition SI_EC_OpenSSLFailure;
00090
00092 extern const OFCondition SI_EC_CannotRead;
00093
00095 extern const OFCondition SI_EC_WrongTransferSyntax;
00096
00098 extern const OFCondition SI_EC_MacIDsExhausted;
00099
00101 extern const OFCondition SI_EC_CertificateDoesNotMatchPrivateKey;
00102
00104 extern const OFCondition SI_EC_MacDoesNotMatchProfile;
00105
00107 extern const OFCondition SI_EC_AlgorithmDoesNotMatchProfile;
00108
00110 extern const OFCondition SI_EC_TransferSyntaxDoesNotMatchProfile;
00111
00115 extern const OFCondition SI_EC_VerificationFailed_NoCertificate;
00116
00118 extern const OFCondition SI_EC_VerificationFailed_NoMAC;
00119
00121 extern const OFCondition SI_EC_VerificationFailed_NoSignature;
00122
00124 extern const OFCondition SI_EC_VerificationFailed_UnsupportedMACAlgorithm;
00125
00127 extern const OFCondition SI_EC_VerificationFailed_Corrupted;
00128
00130 extern const OFCondition SI_EC_VerificationFailed_NoTrust;
00131
00132 #endif
00133 #endif
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162