?? htssl.h
字號:
/* 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -