libspopc.h | libspopc.h | |||
---|---|---|---|---|
skipping to change at line 56 | skipping to change at line 59 | |||
/************************************************************************** **** | /************************************************************************** **** | |||
* Use pop3_cert_setup() to specify the location of your SSL certificate | * Use pop3_cert_setup() to specify the location of your SSL certificate | |||
* 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(char *certfile); | void pop3_cert_setup(const char *certfile); | |||
#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. | |||
************************************************************************** ****/ | ************************************************************************** ****/ | |||
typedef int pop3sock_t; | typedef int pop3sock_t; | |||
#define BAD_SOCK -1 | #define BAD_SOCK -1 | |||
#endif /* SSL */ | #endif /* SSL/Non-SSL */ | |||
/*************************************** | /*************************************** | |||
* low-level methods for a pop3 client * | * low-level methods for a pop3 client * | |||
***************************************/ | ***************************************/ | |||
#define SOCKET_TIMEOUT 15 /* miliseconds socket connection timeout */ | #define SOCKET_TIMEOUT 15 /* miliseconds socket connection timeout */ | |||
#define TCPBUFLEN 512 /* length of the socket buffer */ | #define TCPBUFLEN 512 /* length of the socket buffer */ | |||
#define POPBUF 512 /* lenght of the pop response: 512 bytes as say RFC 1939 */ | #define POPBUF 512 /* lenght of the pop response: 512 bytes as say RFC 1939 */ | |||
/************************************************************************** **** | /************************************************************************** **** | |||
* Be careful, using the low-level API is uncompliant with using the high | * Be careful, using the low-level API is uncompliant with using the high | |||
* level API. Here, you make your choice. If you don't know the pop3 protoc ol | * level API. Here, you make your choice. If you don't know the pop3 protoc ol | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||