| Camel Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
CamelTcpStreamSSL;
#define CAMEL_TCP_STREAM_SSL_ENABLE_SSL2
#define CAMEL_TCP_STREAM_SSL_ENABLE_SSL3
#define CAMEL_TCP_STREAM_SSL_ENABLE_TLS
CamelStream * camel_tcp_stream_ssl_new (struct _CamelSession *session,
const gchar *expected_host,
guint32 flags);
CamelStream * camel_tcp_stream_ssl_new_raw (struct _CamelSession *session,
const gchar *expected_host,
guint32 flags);
gint camel_tcp_stream_ssl_enable_ssl (CamelTcpStreamSSL *ssl);
typedef struct {
CamelTcpStreamRaw parent_object;
CamelTcpStreamSSLPrivate *priv;
} CamelTcpStreamSSL;
CamelStream * camel_tcp_stream_ssl_new (struct _CamelSession *session, const gchar *expected_host, guint32 flags);
Since the SSL certificate authenticator may need to prompt the
user, a CamelSession is needed. expected_host is needed as a
protection against an MITM attack.
|
an active CamelSession object |
|
host that the stream is expected to connect with |
|
a bitwise combination of any of CAMEL_TCP_STREAM_SSL_ENABLE_SSL2, CAMEL_TCP_STREAM_SSL_ENABLE_SSL3 or CAMEL_TCP_STREAM_SSL_ENABLE_TLS |
Returns : |
a new CamelTcpStreamSSL stream preset in SSL mode |
CamelStream * camel_tcp_stream_ssl_new_raw (struct _CamelSession *session, const gchar *expected_host, guint32 flags);
Since the SSL certificate authenticator may need to prompt the
user, a CamelSession is needed. expected_host is needed as a
protection against an MITM attack.
|
an active CamelSession object |
|
host that the stream is expected to connect with |
|
a bitwise combination of any of CAMEL_TCP_STREAM_SSL_ENABLE_SSL2, CAMEL_TCP_STREAM_SSL_ENABLE_SSL3 or CAMEL_TCP_STREAM_SSL_ENABLE_TLS |
Returns : |
a new CamelTcpStreamSSL stream not yet toggled into SSL mode |
gint camel_tcp_stream_ssl_enable_ssl (CamelTcpStreamSSL *ssl);
Toggles an ssl-capable stream into ssl mode (if it isn't already).
|
a CamelTcpStreamSSL object |
Returns : |
0 on success or -1 on fail
|