33 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/ofstd/ofstream.h" 35 #include "dcmtk/dcmpstat/dvpstyp.h" 36 #include "dcmtk/ofstd/ofstring.h" 37 #include "dcmtk/dcmsign/sicertvf.h" 38 #include "dcmtk/dcmdata/dcerror.h" 170 static void printSignatureItemPosition(
DcmStack& stack, STD_NAMESPACE ostream& os);
void updateDigitalSignatureInformation(DcmItem &dataset, DVPSObjectType objtype, OFBool onRead)
updates the digital signature information for the given object type.
a class representing a list of DICOM elements in which each element has a different tag and elements ...
class maintaining a attribute tag (group and element number)
SiCertificateVerifier certVerifier
the certificate verifier, available only if compiled with OpenSSL support
unsigned long corruptSignaturesPState
number of corrupt signatures in current PState
unsigned long untrustSignaturesImage
number of untrustworthy signatures in current Image
DVPSSignatureStatus getCombinedImagePStateSignatureStatus() const
returns the combined status flag for the current image and presentation state.
OFBool attributesSigned(DcmItem &item, DcmAttributeTag &tagList) const
checks whether any attribute mentioned in the tag list is affected by digital signatures.
Configuration class for the Softcopy Presentation State viewer.
virtual ~DVSignatureHandler()
destructor
unsigned long correctSignaturesImage
number of correct signatures in current Image
unsigned long corruptSignaturesSR
number of corrupt signatures in current SR
OFString htmlPState
current presentation state html page
a class representing X.509 public key certificates.
DVPSSignatureStatus getCurrentSignatureStatus(DVPSObjectType objtype) const
returns the status flag for the current object of given type.
handler for all digital signature related functions in dcmpstat
OFString htmlSR
current SR html page
this class manages a stack of pointers to DcmObject instances.
unsigned long correctSignaturesSR
number of correct signatures in current SR
unsigned long getNumberOfUntrustworthySignatures(DVPSObjectType objtype) const
returns number of untrustworthy signatures for given object type.
void updateSignatureValidationOverview()
updates the overview HTML page.
unsigned long corruptSignaturesImage
number of corrupt signatures in current Image
unsigned long getNumberOfCorruptSignatures(DVPSObjectType objtype) const
returns number of corrupt signatures for given object type.
const char * getCurrentSignatureValidationHTML(DVPSObjectType objtype) const
returns a string containing a complete HTML page with the signature validation results for the last o...
DVConfiguration & config
reference to object maintaining the system configuration
unsigned long getNumberOfCorrectSignatures(DVPSObjectType objtype) const
returns number of correct signatures for given object type.
unsigned long correctSignaturesPState
number of correct signatures in current PState
unsigned long untrustSignaturesSR
number of untrustworthy signatures in current SR
unsigned long untrustSignaturesPState
number of untrustworthy signatures in current PState
void replaceString(DVPSObjectType objtype, const char *str)
replaces the current HTML page for the given object type by the new string.
const char * getCurrentSignatureValidationOverview() const
returns a string containing a complete HTML page with the signature validation overview.
a simple string class that implements a subset of std::string.
OFString htmlImage
current image html page
OFString htmlOverview
current overview
void disableDigitalSignatureInformation(DVPSObjectType objtype)
disables the digital signature information for the given object type.
DVSignatureHandler(DVConfiguration &cfg)
constructor
OFCondition createSignature(DcmItem &mainDataset, const DcmStack &itemStack, DcmAttributeTag &attributesNotToSignInMainDataset, const char *userID, const char *passwd)
adds one or more new digital signatures to the given dataset.
void disableImageAndPState()
disables internal settings for image and presentation state.
DVSignatureHandler & operator=(const DVSignatureHandler &)
private undefined assignment operator
General purpose class for condition codes.
a class representing the DICOM value representation 'Attribute Tag' (AT)