htssl.h
来自「www工具包. 这是W3C官方支持的www支撑库. 其中提供通用目的的客户端的W」· C头文件 代码 · 共 91 行
H
91 行
/* W3C Sample Code Library libwww SSL Transport Wrapper! SSL Transport Wrapper!This module declares a SSL (using the OpenSSLlibrary) transport wrapper so that libwww can use SSL as atransport the same way it can use TCP andlocal host as transports. This module keeps a context of the application(SSL_CTX), Cipher negotiation, certificate directory path settingcould be added here.The module is contributed by Olga Antropova*/#ifndef _HTSSL_H#define _HTSSL_H/*. The HTSSL Class.The HTSSL Class is the libwww interface to the SSL layer.*/typedef struct _HTSSL HTSSL;extern BOOL HTSSL_init (void);extern BOOL HTSSL_isInitialized (void);extern BOOL HTSSL_terminate (void);/*The following functions allow to set (or retrieve) the TSL/SSL protocol methodwe want to use when talking with the server. By default, we use thehighest available protocol (TLSv1 in this version).*/ typedef enum _HTSSL_PROTOCOL { HTSSL_V2 = 0, HTSSL_V3, HTSSL_V23, /* Brian Hawley: the SSLv23 method tries SSLv3/TLSv1 but can fall back to SSLV2 */ HTTLS_V1} HTSSL_PROTOCOL;extern void HTSSL_protMethod_set (HTSSL_PROTOCOL prot_method);extern HTSSL_PROTOCOL HTSSL_protMethod (void);/*The following functions allow to set (or retrieve) the certificateverification depth. By default, the verification depth has a value of 0.*/ extern void HTSSL_verifyDepth_set (int depth);extern int HTSSL_verifyDepth (void);/**/extern HTSSL * HTSSL_new (int sd);extern void HTSSL_free (HTSSL * htssl);extern BOOL HTSSL_open (HTSSL * htssl, int sd);extern BOOL HTSSL_close (HTSSL * htssl);extern BOOL HTSSL_isOpen (HTSSL * htssl);extern int HTSSL_read (HTSSL * htssl, int sd, char * buff, int len);extern int HTSSL_write (HTSSL * htssl, int sd, char * buff, int len);extern int HTSSL_getError (HTSSL * htssl, int status);/**/#endif /* _HTSSL_H *//* @(#) $Id: HTSSL.html,v 1.3 2000/08/03 10:53:08 kahan Exp $*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?