From 6da96db8dd1fc783a025fb1db9ecf46430f744d6 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sun, 11 Mar 2001 04:35:20 +0000 Subject: Comment out everything unless HAVE_NSS is defined. 2001-03-09 Jeffrey Stedfast * camel-tcp-stream-ssl.h: Comment out everything unless HAVE_NSS is defined. * camel-tcp-stream-ssl.c (stream_read): Don't use errno, use nspr's error code stuff. (stream_write): Same. svn path=/trunk/; revision=8626 --- camel/camel-tcp-stream-ssl.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'camel/camel-tcp-stream-ssl.h') diff --git a/camel/camel-tcp-stream-ssl.h b/camel/camel-tcp-stream-ssl.h index de6eb1a8bc..ef4e21126c 100644 --- a/camel/camel-tcp-stream-ssl.h +++ b/camel/camel-tcp-stream-ssl.h @@ -30,17 +30,19 @@ extern "C" { #pragma } #endif /* __cplusplus */ +#include + +#ifdef HAVE_NSS #include #include -#include +#include #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)) #define CAMEL_TCP_STREAM_SSL_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_TCP_STREAM_SSL_TYPE, CamelTcpStreamSSLClass)) #define CAMEL_IS_TCP_STREAM_SSL(o) (CAMEL_CHECK_TYPE((o), CAMEL_TCP_STREAM_SSL_TYPE)) -struct _CamelTcpStreamSSL -{ +struct _CamelTcpStreamSSL { CamelTcpStream parent_object; PRFileDesc *sockfd; @@ -62,6 +64,8 @@ CamelType camel_tcp_stream_ssl_get_type (void); /* public methods */ CamelStream *camel_tcp_stream_ssl_new (CamelSession *session, const char *expected_host); +#endif /* HAVE_NSS */ + #ifdef __cplusplus } #endif /* __cplusplus */ -- cgit v1.2.3