00001 00002 #ifndef __JBXL_HTTPS_TOOL_H_ 00003 #define __JBXL_HTTPS_TOOL_H_ 00004 00005 00013 #include "ssl_tool.h" 00014 #include "http_tool.h" 00015 00016 00017 #ifdef DISABLE_SSL 00018 #undef ENABLE_SSL 00019 #endif 00020 00021 #ifdef ENABLE_SSL 00022 00023 int recv_https_header(int sofd, SSL* ssl, tList** pl, int* len, int tm, FILE* fp, int* state); 00024 int send_https_header(int sofd, SSL* ssl, tList* pl, int mode); 00025 00026 int recv_https_content(int sofd, SSL* ssl, Buffer* buf, int len, int tm, FILE* fp, int* state); 00027 int recv_https_chunked(int sofd, SSL* ssl, Buffer* buf, int tm, FILE* fp, int* state); 00028 int recv_https_closed (int sofd, SSL* ssl, Buffer* buf, int tm, FILE* fp); 00029 00030 int recv_https_chunked_remain(int sofd, SSL* ssl, Buffer* buf, int chnksz, int tm); 00031 00032 int recv_https_Buffer(int sofd, SSL* ssl, tList** pl, Buffer* buf, int timeout, int* hdonly, int* state, int nochunk); 00033 int send_https_Buffer(int sofd, SSL* ssl, tList* pl, Buffer* buf); 00034 00035 int recv_https_file(int sofd, SSL* ssl, tList** pl, const char* fname, const char* wdir, int timeout, int* hdonly, int* state); 00036 int send_https_file(int sofd, SSL* ssl, tList* pl, const char* fname); 00037 00038 int save_https_xml(int cofd, SSL* ssl, tList** pl, tXML** xml, char** recvfn, const char* wdir, int timeout, int* state); 00039 00040 #endif // ENABLE_SSL 00041 00042 #endif // __JBXL_HTTPS_TOOL_H_ 00043