aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-tcp-stream-ssl.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-01-16 15:19:49 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-16 15:19:49 +0800
commit405f1c52290c72da9108d637d6b69cd33c296b80 (patch)
tree790fa0ad398b2d6f68565e723de635a18098fd02 /camel/camel-tcp-stream-ssl.h
parent1511e09691ffb94c99b7e2343162aefd4d298f9d (diff)
downloadgsoc2013-evolution-405f1c52290c72da9108d637d6b69cd33c296b80.tar.gz
gsoc2013-evolution-405f1c52290c72da9108d637d6b69cd33c296b80.tar.zst
gsoc2013-evolution-405f1c52290c72da9108d637d6b69cd33c296b80.zip
Ugh, this design is ugly like my butt.
2001-01-16 Jeffrey Stedfast <fejj@ximian.com> Ugh, this design is ugly like my butt. * camel-session.c (camel_session_query_cert_authenticator): New function which will be useful when we integrate SSL. * camel-tcp-stream-ssl.c (ssl_auth_cert): Callback to authenticate a certificate. (ssl_bad_cert): Callback that gets the reason the certificate is bad and then calls camel's cert-authenticator callback to notify the user and to allow the user to override the check. (stream_connect): Set the URL we expect to connect with and setup the auth_cert and bad_cert callbacks. (camel_tcp_stream_ssl_new): Now takes a CamelSession and a expected_host argument that it will use for certificate authentication. (camel_tcp_stream_ssl_finalize): Unref the session and free the expected_host. svn path=/trunk/; revision=7531
Diffstat (limited to 'camel/camel-tcp-stream-ssl.h')
-rw-r--r--camel/camel-tcp-stream-ssl.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/camel/camel-tcp-stream-ssl.h b/camel/camel-tcp-stream-ssl.h
index 2e7ad343a5..de6eb1a8bc 100644
--- a/camel/camel-tcp-stream-ssl.h
+++ b/camel/camel-tcp-stream-ssl.h
@@ -31,8 +31,8 @@ extern "C" {
#endif /* __cplusplus */
#include <camel/camel-tcp-stream.h>
-#include <mozilla/nsprpub/prio.h>
-#include <mozilla/nsprpub/prnetdb.h>
+#include <camel/camel-session.h>
+#include <nspr.h>
#define CAMEL_TCP_STREAM_SSL_TYPE (camel_tcp_stream_ssl_get_type ())
#define CAMEL_TCP_STREAM_SSL(obj) (CAMEL_CHECK_CAST((obj), CAMEL_TCP_STREAM_SSL_TYPE, CamelTcpStreamSSL))
@@ -44,6 +44,9 @@ struct _CamelTcpStreamSSL
CamelTcpStream parent_object;
PRFileDesc *sockfd;
+
+ CamelSession *session;
+ char *expected_host;
};
typedef struct {
@@ -57,7 +60,7 @@ typedef struct {
CamelType camel_tcp_stream_ssl_get_type (void);
/* public methods */
-CamelStream *camel_tcp_stream_ssl_new (void);
+CamelStream *camel_tcp_stream_ssl_new (CamelSession *session, const char *expected_host);
#ifdef __cplusplus
}