⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ssl.c

📁 mms client
💻 C
字号:
/*   * ssl.c - implements SSL specific routines and types  *  * This file implements the secure socket layer (SSL) specific   * routines and types.  *  * This product includes software developed by Ralf S. Engelschall   * <rse@engelschall.com> for use in the mod_ssl project   * (http://www.modssl.org/).  *  * Stipe Tolj <tolj@wapme-systems.de>   * for Kannel Project and Wapme Systems AG  */  #include "gwlib/gwlib.h"  #ifdef HAVE_LIBSSL   #include <openssl/ssl.h>  int SSL_smart_shutdown(SSL *ssl) {     int i;     int rc;      /*      * Repeat the calls, because SSL_shutdown internally dispatches through a      * little state machine. Usually only one or two interation should be      * needed, so we restrict the total number of restrictions in order to      * avoid process hangs in case the client played bad with the socket      * connection and OpenSSL cannot recognize it.      */     rc = 0;     for (i = 0; i < 4 /* max 2x pending + 2x data = 4 */; i++) {         if ((rc = SSL_shutdown(ssl)))             break;     }     return rc; }  #endif /* HAVE_LIBSSL */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -