diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-17 07:02:04 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-17 07:02:04 +0800 |
commit | a9df5de4af55791e4d4aeb3533bcc715e28c1512 (patch) | |
tree | 0b9faa4b152a9c3589226000c9e4fb01620f3225 /camel/camel-tcp-stream-raw.c | |
parent | 13afe783505cb99b902ec4b29c46fb14ec8006f0 (diff) | |
download | gsoc2013-evolution-a9df5de4af55791e4d4aeb3533bcc715e28c1512.tar gsoc2013-evolution-a9df5de4af55791e4d4aeb3533bcc715e28c1512.tar.gz gsoc2013-evolution-a9df5de4af55791e4d4aeb3533bcc715e28c1512.tar.bz2 gsoc2013-evolution-a9df5de4af55791e4d4aeb3533bcc715e28c1512.tar.lz gsoc2013-evolution-a9df5de4af55791e4d4aeb3533bcc715e28c1512.tar.xz gsoc2013-evolution-a9df5de4af55791e4d4aeb3533bcc715e28c1512.tar.zst gsoc2013-evolution-a9df5de4af55791e4d4aeb3533bcc715e28c1512.zip |
Print info about the issuer of the certificate.
2001-03-16 Jeffrey Stedfast <fejj@ximian.com>
* camel-tcp-stream-ssl.c (ssl_bad_cert): Print info about the
issuer of the certificate.
* providers/smtp/camel-smtp-transport.c (smtp_connect): Use
camel_tcp_stream_get_socket().
* camel-tcp-stream-openssl.c (stream_get_socket): Implemented.
* camel-tcp-stream-ssl.c (stream_get_socket): Implemented.
* camel-tcp-stream-raw.c (stream_get_socket): Implemented.
* camel-tcp-stream.c (camel_tcp_stream_get_socket): New function.
svn path=/trunk/; revision=8764
Diffstat (limited to 'camel/camel-tcp-stream-raw.c')
-rw-r--r-- | camel/camel-tcp-stream-raw.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/camel/camel-tcp-stream-raw.c b/camel/camel-tcp-stream-raw.c index 2580f1a7e5..59e09080e9 100644 --- a/camel/camel-tcp-stream-raw.c +++ b/camel/camel-tcp-stream-raw.c @@ -45,6 +45,7 @@ static int stream_close (CamelStream *stream); static int stream_connect (CamelTcpStream *stream, struct hostent *host, int port); static int stream_getsockopt (CamelTcpStream *stream, CamelSockOptData *data); static int stream_setsockopt (CamelTcpStream *stream, const CamelSockOptData *data); +static gpointer stream_get_socket (CamelTcpStream *stream); static void camel_tcp_stream_raw_class_init (CamelTcpStreamRawClass *camel_tcp_stream_raw_class) @@ -65,6 +66,7 @@ camel_tcp_stream_raw_class_init (CamelTcpStreamRawClass *camel_tcp_stream_raw_cl camel_tcp_stream_class->connect = stream_connect; camel_tcp_stream_class->getsockopt = stream_getsockopt; camel_tcp_stream_class->setsockopt = stream_setsockopt; + camel_tcp_stream_class->get_socket = stream_get_socket; } static void @@ -433,3 +435,9 @@ stream_setsockopt (CamelTcpStream *stream, const CamelSockOptData *data) (void *) &data->value, sizeof (data->value)); } + +static gpointer +stream_get_socket (CamelTcpStream *stream) +{ + return GINT_TO_POINTER (CAMEL_TCP_STREAM_RAW (stream)->sockfd); +} |