#include <QoreSSLCertificate.h>
Public Member Functions | |
DLLEXPORT | QoreSSLCertificate (X509 *c) |
creates the object from a pointer to an X509 data structure, the QoreSSLCertificate object takes ownership of the X509 pointer | |
DLLEXPORT | QoreSSLCertificate (const BinaryNode *bin, ExceptionSink *xsink) |
creates the object from a pointer to a BinaryNode object | |
DLLEXPORT | QoreSSLCertificate (const QoreString *str, ExceptionSink *xsink) |
create the object from a pointer to a QoreString representing the X.509 certificate in PEM format | |
DLLLOCAL | QoreSSLCertificate (const char *fn, ExceptionSink *xsink) |
creates the object from a filename | |
DLLEXPORT | operator bool () const |
returns true if the object is valid, false if not | |
DLLEXPORT QoreStringNode * | getPEM (ExceptionSink *xsink) const |
returns a string in PEM format representing the certificate; caller owns the QoreStringNode reference returned | |
Protected Member Functions | |
virtual DLLLOCAL | ~QoreSSLCertificate () |
the destructor is protected to ensure that it's only dynamically allocated (use deref() to delete) |
DLLEXPORT QoreSSLCertificate::QoreSSLCertificate | ( | X509 * | c | ) |
creates the object from a pointer to an X509 data structure, the QoreSSLCertificate object takes ownership of the X509 pointer
c | a pointer to an X509 data structure, the QoreSSLCertificate object takes ownership of the X509 pointer |
DLLEXPORT QoreSSLCertificate::QoreSSLCertificate | ( | const BinaryNode * | bin, | |
ExceptionSink * | xsink | |||
) |
creates the object from a pointer to a BinaryNode object
bin | a pointer to a BinaryNode object with the raw binary certificate information | |
xsink | Qore-language exceptions are raised here in case of errors |
DLLEXPORT QoreSSLCertificate::QoreSSLCertificate | ( | const QoreString * | str, | |
ExceptionSink * | xsink | |||
) |
create the object from a pointer to a QoreString representing the X.509 certificate in PEM format
str | a pointer to a QoreString with the certificatge in PEM format | |
xsink | Qore-language exceptions are raised here in case of errors |
DLLLOCAL QoreSSLCertificate::QoreSSLCertificate | ( | const char * | fn, | |
ExceptionSink * | xsink | |||
) |
creates the object from a filename
fn | the filename of the certificate file in PEM format | |
xsink | Qore-language exceptions are raised here in case of errors |
DLLEXPORT QoreStringNode* QoreSSLCertificate::getPEM | ( | ExceptionSink * | xsink | ) | const |
returns a string in PEM format representing the certificate; caller owns the QoreStringNode reference returned