hook for certificate acception
[claws.git] / src / ssl_certificate.h
index 237807275d9795320c563a18598f0115de979af4..c85010a7fdd8df7af91cfc6c133f47d720327f01 100644 (file)
@@ -30,6 +30,8 @@
 #include <openssl/objects.h>
 #include <glib.h>
 
+#define SSLCERT_ASK_HOOKLIST "sslcert_ask"
+
 typedef struct _SSLCertificate SSLCertificate;
 
 struct _SSLCertificate
@@ -39,6 +41,15 @@ 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);