#include <openssl/objects.h>
#include <glib.h>
+#define SSLCERT_ASK_HOOKLIST "sslcert_ask"
+
typedef struct _SSLCertificate SSLCertificate;
struct _SSLCertificate
gushort port;
};
+typedef struct _SSLCertHookData SSLCertHookData;
+
+struct _SSLCertHookData
+{
+ SSLCertificate *cert;
+ SSLCertificate *old_cert;
+ gboolean accept;
+};
+
SSLCertificate *ssl_certificate_find (gchar *host, gushort port);
SSLCertificate *ssl_certificate_find_lookup (gchar *host, gushort port, gboolean lookup);
gboolean ssl_certificate_check (X509 *x509_cert, gchar *host, gushort port);