diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-09-03 13:36:26 -0500 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-07-22 15:56:44 +0200 |
commit | 56e5891a95d38fe6a09276ce3a0bf06daf24f141 (patch) | |
tree | 7bce5405ab0d4aa330b37003cc1777c90971dd01 /kio/kssl/ksslcertificate.h | |
parent | cc48df2a09bbdb6e83f52215b1a41c257d4820bc (diff) | |
download | tdelibs-56e5891a95d38fe6a09276ce3a0bf06daf24f141.tar.gz tdelibs-56e5891a95d38fe6a09276ce3a0bf06daf24f141.zip |
Add initial CRL support to KSSLCertificate
(cherry picked from commit 5896a404bcc63085cf0a50d232d2d631a5107228)
Diffstat (limited to 'kio/kssl/ksslcertificate.h')
-rw-r--r-- | kio/kssl/ksslcertificate.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/kio/kssl/ksslcertificate.h b/kio/kssl/ksslcertificate.h index 16dbb2082..6c579728d 100644 --- a/kio/kssl/ksslcertificate.h +++ b/kio/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); |