33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmsign/sitypes.h"
38 #include "dcmtk/ofstd/ofstring.h"
43 typedef struct x509_st X509;
a class representing a list of DICOM elements in which each element has a different tag and elements ...
void getCertIssuerName(OFString &str)
returns the issuer name (distinguished name) of the current certificate.
long getX509Version()
returns the format version of the X.509 certificate.
X509 * getRawCertificate()
returns a pointer to the raw certificate structure or NULL if no certificate present.
SiCertificate()
default constructor
SiAlgorithm * createAlgorithmForPublicKey()
creates an SiAlgorithm object for the public key contained in this certificate.
OFCondition loadCertificate(const char *filename, int filetype)
loads an X.509 certificate from file.
E_KeyType getKeyType()
returns the type of public key stored in this certificate
virtual ~SiCertificate()
destructor
void getCertValidityNotAfter(OFString &str)
returns the end of validity of the current certificate in human readable form.
a class representing X.509 public key certificates.
SiCertificate & operator=(SiCertificate &arg)
private undefined copy assignment operator
void getCertValidityNotBefore(OFString &str)
returns the start of validity of the current certificate in human readable form.
X509 * x509
OpenSSL X.509 structure.
OFCondition write(DcmItem &item)
writes the current X.509 certificate into an item of the Digital Signatures Sequence and creates the ...
pure virtual base class of the public key crypto systems used for signature creation and verification...
long getCertSerialNo()
returns the serial number of the X.509 certificate.
OFCondition read(DcmItem &item)
reads an X.509 certificate from an item of the Digital Signatures Sequence and checks the certificate...
a simple string class that implements a subset of std::string.
void getCertSubjectName(OFString &str)
returns the subject name (distinguished name) of the current certificate.
long getCertKeyBits()
returns the strength (number of bits) of the public key contained in the current certificate.
General purpose class for condition codes.