24 #ifndef _QORE_QORESSLCERTIFICATE_H
26 #define _QORE_QORESSLCERTIFICATE_H
28 #include <qore/QoreSSLBase.h>
30 #include <openssl/ssl.h>
31 #include <openssl/pem.h>
37 struct qore_sslcert_private *priv;
45 DLLLOCAL QoreSSLCertificate& operator=(
const QoreSSLCertificate&);
55 DLLEXPORT QoreSSLCertificate(X509 *c);
73 DLLLOCAL QoreSSLCertificate(
const char *fn,
ExceptionSink *xsink);
76 DLLEXPORT
operator bool()
const;
84 DLLEXPORT X509 *getData()
const;
91 DLLEXPORT int64 getSerialNumber()
const;
92 DLLEXPORT int64 getVersion()
const;
DLLEXPORT QoreStringNode * getPEM(ExceptionSink *xsink) const
returns a string in PEM format representing the certificate; caller owns the QoreStringNode reference...
represents an X509 certificate, reference-counted, dynamically-allocated only
Definition: QoreSSLCertificate.h:34
This is the hash or associative list container type in Qore, dynamically allocated only...
Definition: QoreHashNode.h:41
the base class for all data to be used as private data of Qore objects
Definition: AbstractPrivateData.h:36
The base class for all value and parse types in Qore expression trees.
Definition: AbstractQoreNode.h:47
virtual DLLLOCAL ~QoreSSLCertificate()
the destructor is protected to ensure that it's only dynamically allocated (use deref() to delete) ...
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:42
Qore's string value type, reference counted, dynamically-allocated only.
Definition: QoreStringNode.h:40
Qore's parse tree/value type for date-time values, reference-counted, dynamically-allocated only...
Definition: DateTimeNode.h:36
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:35
offers static functions to help with translating openssl data structures to Qore data structures ...
Definition: QoreSSLBase.h:32
holds arbitrary binary data
Definition: BinaryNode.h:33