现在的位置: 首页 > 综合 > 正文

stunnel 工作简述

2013年10月23日 ⁄ 综合 ⁄ 共 370字 ⁄ 字号 评论关闭

1.stunnel可以作为https client端发出连接。

2.stunnel亦可以作为https server端接收连接。

3.stunnel transfer函数中有个do{}while(...)循环中的四个socket传输数据:

                  |        read_from_local                                    SSL_write    |

local         |                                              stunnel                                      |            HTTPS Server

                  |     write_to_local                                          SSL_read       |

只要有数据就读然后就写,并不会等接收到所有数据后再写。

4.stunnel依赖第三方加密库OpenSSL, SSLeakey等

抱歉!评论已关闭.