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
00031
00032
00033
00034 #ifndef SITYPES_H
00035 #define SITYPES_H
00036
00037 #include "dcmtk/config/osconfig.h"
00038
00039 #ifdef WITH_OPENSSL
00040
00041 #include "dcmtk/ofstd/oftypes.h"
00042 #include "dcmtk/ofstd/ofcond.h"
00043
00044
00045 #define SI_DEFTERMS_RIPEMD160 "RIPEMD160"
00046 #define SI_DEFTERMS_SHA1 "SHA1"
00047 #define SI_DEFTERMS_MD5 "MD5"
00048 #define SI_DEFTERMS_X509CERT "X509_1993_SIG"
00049 #define SI_DEFTERMS_CMS_TS "CMS_TS"
00050
00051
00054 enum E_KeyType
00055 {
00057 EKT_RSA,
00058
00060 EKT_DSA,
00061
00063 EKT_DH,
00064
00066 EKT_none
00067 };
00068
00069
00072 enum E_MACType
00073 {
00075 EMT_SHA1,
00076
00078 EMT_RIPEMD160,
00079
00081 EMT_MD5
00082 };
00083
00084
00085
00086
00087
00088
00090 extern const OFCondition SI_EC_InitializationFailed;
00091
00093 extern const OFCondition SI_EC_OpenSSLFailure;
00094
00096 extern const OFCondition SI_EC_CannotRead;
00097
00099 extern const OFCondition SI_EC_WrongTransferSyntax;
00100
00102 extern const OFCondition SI_EC_MacIDsExhausted;
00103
00105 extern const OFCondition SI_EC_CertificateDoesNotMatchPrivateKey;
00106
00108 extern const OFCondition SI_EC_MacDoesNotMatchProfile;
00109
00111 extern const OFCondition SI_EC_AlgorithmDoesNotMatchProfile;
00112
00114 extern const OFCondition SI_EC_TransferSyntaxDoesNotMatchProfile;
00115
00119 extern const OFCondition SI_EC_VerificationFailed_NoCertificate;
00120
00122 extern const OFCondition SI_EC_VerificationFailed_NoMAC;
00123
00125 extern const OFCondition SI_EC_VerificationFailed_NoSignature;
00126
00128 extern const OFCondition SI_EC_VerificationFailed_UnsupportedMACAlgorithm;
00129
00131 extern const OFCondition SI_EC_VerificationFailed_Corrupted;
00132
00134 extern const OFCondition SI_EC_VerificationFailed_NoTrust;
00135
00136 #endif
00137 #endif
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
00163