diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-09-03 13:36:26 -0500 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-01-01 19:40:57 +0100 |
commit | 294100108cb4ef6fdb6624792e1a7e11d2d7397e (patch) | |
tree | 7183153210e82f9e4010dd4b31c42e562326e26e /tdeio/kssl/ksslcertificate.h | |
parent | 291a19f7d3cd6aa7e1b612da34c5747aea07e119 (diff) | |
download | tdelibs-294100108cb4ef6fdb6624792e1a7e11d2d7397e.tar.gz tdelibs-294100108cb4ef6fdb6624792e1a7e11d2d7397e.zip |
Add initial CRL support to KSSLCertificate
(cherry picked from commit 5896a404bcc63085cf0a50d232d2d631a5107228)
Diffstat (limited to 'tdeio/kssl/ksslcertificate.h')
-rw-r--r-- | tdeio/kssl/ksslcertificate.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tdeio/kssl/ksslcertificate.h b/tdeio/kssl/ksslcertificate.h index 0c5f87323..67f6a808d 100644 --- a/tdeio/kssl/ksslcertificate.h +++ b/tdeio/kssl/ksslcertificate.h @@ -57,8 +57,10 @@ class KSSLX509V3; #ifdef KSSL_HAVE_SSL typedef struct x509_st X509; +typedef struct X509_crl_st X509_CRL; #else class X509; +class X509_CRL; #endif /** @@ -98,6 +100,13 @@ public: static KSSLCertificate *fromString(TQCString cert); /** + * Create an X.509 CRL certificate from a base64 encoded string. + * @param cert the certificate in base64 form + * @return the X.509 CRL certificate, or NULL + */ + static KSSLCertificate *crlFromString(TQCString cert); + + /** * Create an X.509 certificate from the internal representation. * This one duplicates the X509 object for itself. * @param x5 the OpenSSL representation of the certificate @@ -166,6 +175,18 @@ public: TQDateTime getQDTNotAfter() const; /** + * Get the date that the CRL was generated on. + * @return the date + */ + TQDateTime getQDTLastUpdate() const; + + /** + * Get the date that the CRL must be updated by. + * @return the date + */ + TQDateTime getQDTNextUpdate() const; + + /** * Convert the certificate to DER (ASN.1) format. * @return the binary data of the DER encoding */ @@ -360,6 +381,7 @@ protected: KSSLCertificate(); void setCert(X509 *c); + void setCRL(X509_CRL *c); void setChain(void *c); X509 *getCert(); KSSLValidation processError(int ec); |