@@ -32,7 +32,9 @@ class HttpSender {
3232                         std::string* resp_body, std::string* err_msg,
3333                         bool  is_check_md5 = false ,
3434                         bool  is_verify_cert = true ,
35-                          const  std::string& ca_location = " " 
35+                          const  std::string& ca_location = " " 
36+                          SSLCtxCallback ssl_ctx_cb = nullptr , 
37+                          void  *user_data = nullptr );
3638
3739  static  int  SendRequest (const  SharedTransferHandler& handler,
3840                         const  std::string& http_method,
@@ -46,7 +48,9 @@ class HttpSender {
4648                         std::ostream& resp_stream, std::string* err_msg,
4749                         bool  is_check_md5 = false ,
4850                         bool  is_verify_cert = true ,
49-                          const  std::string& ca_location = " " 
51+                          const  std::string& ca_location = " " 
52+                          SSLCtxCallback ssl_ctx_cb = nullptr , 
53+                          void  *user_data = nullptr );
5054
5155  static  int  SendRequest (const  SharedTransferHandler& handler,
5256                         const  std::string& http_method,
@@ -59,7 +63,9 @@ class HttpSender {
5963                         std::string* resp_body, std::string* err_msg,
6064                         bool  is_check_md5 = false ,
6165                         bool  is_verify_cert = true ,
62-                          const  std::string& ca_location = " " 
66+                          const  std::string& ca_location = " " 
67+                          SSLCtxCallback ssl_ctx_cb = nullptr ,
68+                          void  *user_data = nullptr );
6369
6470  static  int  SendRequest (const  SharedTransferHandler& handler,
6571                         const  std::string& http_method,
@@ -72,7 +78,9 @@ class HttpSender {
7278                         std::ostream& resp_stream, std::string* err_msg,
7379                         bool  is_check_md5 = false ,
7480                         bool  is_verify_cert = true ,
75-                          const  std::string& ca_location = " " 
81+                          const  std::string& ca_location = " " 
82+                          SSLCtxCallback ssl_ctx_cb = nullptr , 
83+                          void  *user_data = nullptr );
7684
7785  static  int  SendRequest (const  SharedTransferHandler& handler,
7886                         const  std::string& http_method,
@@ -87,7 +95,9 @@ class HttpSender {
8795                         std::string* err_msg, uint64_t * real_byte,
8896                         bool  is_check_md5 = false ,
8997                         bool  is_verify_cert = true , 
90-                          const  std::string& ca_location = " " 
98+                          const  std::string& ca_location = " " 
99+                          SSLCtxCallback ssl_ctx_cb = nullptr , 
100+                          void  *user_data = nullptr );
91101};
92102
93103}  //  namespace qcloud_cos
0 commit comments