libspopc.h   libspopc.h 
skipping to change at line 61 skipping to change at line 61
* bundle. If it is not set (or set to NULL), SSL connections can be still be * bundle. If it is not set (or set to NULL), SSL connections can be still be
* made, but certificates will not be verified! * made, but certificates will not be verified!
* This function sets a global variable, and should be called before * This function sets a global variable, and should be called before
* pop3_prepare() or popbegin() if you want to verify certs. * pop3_prepare() or popbegin() if you want to verify certs.
* *
* Hint: If you have a recent version of curl/libcurl installed, you can tr y * Hint: If you have a recent version of curl/libcurl installed, you can tr y
* setting this to the output of: "curl-config --ca" * setting this to the output of: "curl-config --ca"
************************************************************************** ****/ ************************************************************************** ****/
void pop3_cert_setup(const char *certfile); void pop3_cert_setup(const char *certfile);
/**************************************************************************
****
* pop3_ssl_never() disable the use of SSL on any port, even 995.
* pop3_ssl_auto() enable the use of SSL only on port 995. (default)
* pop3_ssl_always() enable the use of SSL on any port, even 110.
*
* These functions set a global variable, and should be called before
* pop3_prepare() or popbegin() if you want to modify libspopc behaviour.
* By default, not calling any of these, the behaviour of libspopc follows
* the same as pop3_ssl_auto() for backward compatibility reason.
**************************************************************************
****/
void pop3_ssl_never(void);
void pop3_ssl_auto(void);
void pop3_ssl_always(void);
#else /* Non-SSL */ #else /* Non-SSL */
/************************************************************************** **** /************************************************************************** ****
* If the library is compiled without SSL, the "pop3sock_t" type is a simp le * If the library is compiled without SSL, the "pop3sock_t" type is a simp le
* integer (i.e. socket) and all the functions should work just as they di d * integer (i.e. socket) and all the functions should work just as they di d
* in previous libspopc versions. * in previous libspopc versions (< 0.8).
************************************************************************** ****/ ************************************************************************** ****/
typedef int pop3sock_t; typedef int pop3sock_t;
#define BAD_SOCK -1 #define BAD_SOCK -1
#endif /* SSL/Non-SSL */ #endif /* SSL/Non-SSL */
/*************************************** /***************************************
* low-level methods for a pop3 client * * low-level methods for a pop3 client *
 End of changes. 2 change blocks. 
1 lines changed or deleted 17 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/