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

📄 common.h

📁 OpenSSL相关的例子程序
💻 H
字号:
#ifndef _common_h#define _common_h#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <netinet/tcp.h>#include <netdb.h>#include <fcntl.h>#include <signal.h>#include <unistd.h>#include <string.h>#include <openssl/ssl.h>#define CA_LIST "root.pem"#define HOST	"localhost"#define RANDOM  "random.pem"#define PORT	4433#define BUFSIZZ 1024extern BIO *bio_err;int berr_exit (char *string);int err_exit(char *string);SSL_CTX *initialize_ctx(char *keyfile, char *password);void destroy_ctx(SSL_CTX *ctx);#ifndef ALLOW_OLD_VERSIONS#if (OPENSSL_VERSION_NUMBER < 0x00905100L)#error "Must use OpenSSL 0.9.6 or later"#endif#endif#endif

⌨️ 快捷键说明

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