资源简介
该资源为openssl1.1.1源码,用与编译出相关的SSL库,对于openssl的编译过程及使用其创建https server 可参考本账号博客文章。

代码片段和文件信息
/*
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the “License“). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
#if !defined(_POSIX_C_SOURCE) && defined(OPENSSL_SYS_VMS)
/*
* On VMS you need to define this to get the declaration of fileno(). The
* value 2 is to make sure no function defined in POSIX-2 is left undefined.
*/
# define _POSIX_C_SOURCE 2
#endif
#include
#include
#include
#include
#ifndef OPENSSL_NO_POSIX_IO
# include
# include
#endif
#include
#include
#include
#include
#include
#include
#include
#include
#include
#ifndef OPENSSL_NO_ENGINE
# include
#endif
#ifndef OPENSSL_NO_RSA
# include
#endif
#include
#include
#include “s_apps.h“
#include “apps.h“
#ifdef _WIN32
static int WIN32_rename(const char *from const char *to);
# define rename(fromto) WIN32_rename((from)(to))
#endif
typedef struct {
const char *name;
unsigned long flag;
unsigned long mask;
} NAME_EX_TBL;
static UI_METHOD *ui_method = NULL;
static const UI_METHOD *ui_fallback_method = NULL;
static int set_table_opts(unsigned long *flags const char *arg
const NAME_EX_TBL * in_tbl);
static int set_multi_opts(unsigned long *flags const char *arg
const NAME_EX_TBL * in_tbl);
int app_init(long mesgwin);
int chopup_args(ARGS *arg char *buf)
{
int quoted;
char c = ‘\0‘ *p = NULL;
arg->argc = 0;
if (arg->size == 0) {
arg->size = 20;
arg->argv = app_malloc(sizeof(*arg->argv) * arg->size “argv space“);
}
for (p = buf;;) {
/* Skip whitespace. */
while (*p && isspace(_UC(*p)))
p++;
if (!*p)
break;
/* The start of something good :-) */
if (arg->argc >= arg->size) {
char **tmp;
arg->size += 20;
tmp = OPENSSL_realloc(arg->argv sizeof(*arg->argv) * arg->size);
if (tmp == NULL)
return 0;
arg->argv = tmp;
}
quoted = *p == ‘\‘‘ || *p == ‘“‘;
if (quoted)
c = *p++;
arg->argv[arg->argc++] = p;
/* now look for the end of this */
if (quoted) {
while (*p && *p != c)
p++;
*p++ = ‘\0‘;
} else {
while (*p && !isspace(_UC(*p)))
p++;
if (*p)
*p++ = ‘\0‘;
}
}
arg->argv[arg->argc] = NULL;
return 1;
}
#ifndef APP_INIT
int app_init(long mesgwin)
{
return 1;
}
#endif
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 50 2018-09-11 20:48 openssl-1.1.1\.gitattributes
文件 531 2018-09-11 20:48 openssl-1.1.1\.github\PULL_REQUEST_TEMPLATE.md
文件 2948 2018-09-11 20:48 openssl-1.1.1\.gitignore
文件 270 2018-09-11 20:48 openssl-1.1.1\.gitmodules
文件 256 2018-09-11 20:48 openssl-1.1.1\.travis-apt-pin.preferences
文件 257 2018-09-11 20:48 openssl-1.1.1\.travis-create-release.sh
文件 10111 2018-09-11 20:48 openssl-1.1.1\.travis.yml
文件 87 2018-09-11 20:48 openssl-1.1.1\ACKNOWLEDGEMENTS
文件 73475 2018-09-11 20:48 openssl-1.1.1\apps\apps.c
文件 25314 2018-09-11 20:48 openssl-1.1.1\apps\apps.h
文件 2245 2018-09-11 20:48 openssl-1.1.1\apps\app_rand.c
文件 10550 2018-09-11 20:48 openssl-1.1.1\apps\asn1pars.c
文件 4882 2018-09-11 20:48 openssl-1.1.1\apps\bf_prefix.c
文件 1451 2018-09-11 20:48 openssl-1.1.1\apps\build.info
文件 3 2018-09-11 20:48 openssl-1.1.1\apps\ca-cert.srl
文件 916 2018-09-11 20:48 openssl-1.1.1\apps\ca-key.pem
文件 635 2018-09-11 20:48 openssl-1.1.1\apps\ca-req.pem
文件 86179 2018-09-11 20:48 openssl-1.1.1\apps\ca.c
文件 7577 2018-09-11 20:48 openssl-1.1.1\apps\CA.pl.in
文件 623 2018-09-11 20:48 openssl-1.1.1\apps\cert.pem
文件 7358 2018-09-11 20:48 openssl-1.1.1\apps\ciphers.c
文件 3285 2018-09-11 20:48 openssl-1.1.1\apps\client.pem
文件 44938 2018-09-11 20:48 openssl-1.1.1\apps\cms.c
文件 11048 2018-09-11 20:48 openssl-1.1.1\apps\crl.c
文件 6324 2018-09-11 20:48 openssl-1.1.1\apps\crl2p7.c
文件 414 2018-09-11 20:48 openssl-1.1.1\apps\ct_log_list.cnf
文件 359 2018-09-11 20:48 openssl-1.1.1\apps\demoSRP\srp_verifier.txt
文件 21 2018-09-11 20:48 openssl-1.1.1\apps\demoSRP\srp_verifier.txt.attr
文件 15545 2018-09-11 20:48 openssl-1.1.1\apps\dgst.c
文件 447 2018-09-11 20:48 openssl-1.1.1\apps\dh1024.pem
............此处省略3164个文件信息
相关资源
- AE开发Windows最短路径分析
-
Windows em
bedded Compact 2013 应用开发调 - 黑苹果硬件兼容检测和查询软件
- Uninstall_Cortana_WINCLIENT.CN.rar
- VMware65_SLP_DeLLSLIC2.1
- Windows异步套接字网络编程
- WINDOWS98启动盘镜像Win98.IMA
- 仿windows记事本
- windows7用的,非常漂亮的透明计时器
- Openssl给文件传输加密
- openssl 简介(中文)
- windows下制作macOS安装U盘,绝对简单好
- keil vcom windows 7 64bit 驱动
- windows ce 系统的GPIO驱动程序
- TCP 发包工具(windows)
- 微软的可以删除系统卸不干净的软件
- windows下生成MD5值的工具(WinMD5)
- windows cygwin ns2安装步骤
- 电梯模拟程序C/C 算法实现
- WinAPI 函数库(大全)
- 解决在Windows XP SP2下不能显示验证码的
- 加快Windows XP操作系统开机速度
- Windows 1.0 软盘镜像
- Windows下访问LINUX的利器-SSH
- ChilledWindows.exe(玩笑病毒)
- NDK-R12B windows-x86_64百度云盘
- windows3.2简体中文版,虚拟机文件
- Windows 3.0 安装软盘(3.5 720k)
- WINDOWS内核安全编程 寒江独钓 光盘源
- 寒江独钓-Windows内核安全编程(完整版
评论
共有 条评论