tls.h

来自「功能强大的ftp服务器源代码」· C头文件 代码 · 共 32 行

H
32
字号
#ifndef __TLS_H__#define __TLS_H__ 1#ifdef WITH_TLS# include <openssl/ssl.h># include <openssl/err.h># include <openssl/rand.h>int tls_init_library(void);void tls_free_library(void);int tls_init_new_session(void);# ifndef IN_TLS_Cextern# endif    SSL_CTX *tls_ctx;# ifndef IN_TLS_Cextern# endif    SSL *tls_cnx;/* If we really have to, use an insecure but exportable 512-bits key */# define RSA_EPHEMERAL_KEY_LEN 512/* The minimal number of bits we accept for a cipher */# define MINIMAL_CIPHER_KEY_LEN 40#endif#endif

⌨️ 快捷键说明

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