...);
#if USE_SSL
-NNTPSockInfo *nntp_open(const gchar *server, gushort port, gchar *buf, gboolean use_ssl)
+NNTPSockInfo *nntp_open(const gchar *server, gushort port, gchar *buf, SSLType ssl_type)
#else
NNTPSockInfo *nntp_open(const gchar *server, gushort port, gchar *buf)
#endif
}
#if USE_SSL
- if (use_ssl && !ssl_init_socket(sock)) {
+ if (ssl_type && !ssl_init_socket(sock)) {
sock_close(sock);
return NULL;
}
#if USE_SSL
NNTPSockInfo *nntp_open_auth(const gchar *server, gushort port, gchar *buf,
- const gchar *userid, const gchar *passwd, gboolean use_ssl)
+ const gchar *userid, const gchar *passwd, SSLType ssl_type)
#else
NNTPSockInfo *nntp_open_auth(const gchar *server, gushort port, gchar *buf,
const gchar *userid, const gchar *passwd)
NNTPSockInfo *sock;
#if USE_SSL
- sock = nntp_open(server, port, buf, use_ssl);
+ sock = nntp_open(server, port, buf, ssl_type);
#else
sock = nntp_open(server, port, buf);
#endif