Top | ![]() |
![]() |
![]() |
![]() |
CamelStream * camel_tcp_stream_ssl_new (CamelSession *session
,const gchar *expected_host
,CamelTcpStreamSSLFlags 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.
session |
an active CamelSession object |
|
expected_host |
host that the stream is expected to connect with |
|
flags |
a bitwise combination of CamelTcpStreamSSLFlags |
CamelStream * camel_tcp_stream_ssl_new_raw (CamelSession *session
,const gchar *expected_host
,CamelTcpStreamSSLFlags 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.
session |
an active CamelSession object |
|
expected_host |
host that the stream is expected to connect with |
|
flags |
a bitwise combination of CamelTcpStreamSSLFlags |
gint camel_tcp_stream_ssl_enable_ssl (CamelTcpStreamSSL *ssl
,GCancellable *cancellable
,GError **error
);
Toggles an ssl-capable stream into ssl mode (if it isn't already).