add port to certificate checker
[claws.git] / src / ssl_certificate.h
index 933475e558b1991a07a838acb66963f2012da95b..9c80d15004de66e43e6132d3536f312b2b36c76b 100644 (file)
@@ -17,8 +17,8 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-#ifndef __SSL_CHECK_H__
-#define __SSL_CHECK_H__
+#ifndef __SSL_CERTIFICATE_H__
+#define __SSL_CERTIFICATE_H__
 
 #ifdef HAVE_CONFIG_H
 #  include "config.h"
 #if USE_SSL
 
 #include <openssl/ssl.h>
+#include <openssl/objects.h>
 #include <glib.h>
 
-typedef enum {
-       SSL_CERTIFICATE_OK,
-       SSL_CERTIFICATE_UNKNOWN,
-       SSL_CERTIFICATE_CHANGED
-} SSLCertificateStatus;
-
 typedef struct _SSLCertificate SSLCertificate;
 
 struct _SSLCertificate
 {
        X509 *x509_cert;
        gchar *host;
-       gchar *issuer;
-       gchar *subject;
-       gchar *fingerprint;
+       gushort port;
 };
 
-gboolean ssl_certificate_check (X509 *x509_cert, gchar *host);
+gboolean ssl_certificate_check (X509 *x509_cert, gchar *host, gushort port);
 
 #endif /* USE_SSL */
-#endif /* SSL_CHECK_H */
+#endif /* SSL_CERTIFICATE_H */