资源简介
已经编译好的OPENSSL 1.1最新官方库,WIN32平台使用,可直接添加的VC2013使用,添加方式加入头文件和库文件:#include
#include
#include
#include
#include
#include
#pragma comment(lib, "libssl.lib")
#pragma comment(lib, "libcrypto.lib")
本人正在使用的VC SSL版本,可以正常连接到加密传输TLS1.2的服务器上。

代码片段和文件信息
/*
* Copyright 2004-2016 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
*/
#define APPlink_STDIN 1
#define APPlink_STDOUT 2
#define APPlink_STDERR 3
#define APPlink_FPRINTF 4
#define APPlink_FGETS 5
#define APPlink_FREAD 6
#define APPlink_FWRITE 7
#define APPlink_FSETMOD 8
#define APPlink_FEOF 9
#define APPlink_FCLOSE 10 /* should not be used */
#define APPlink_FOPEN 11 /* solely for completeness */
#define APPlink_FSEEK 12
#define APPlink_FTELL 13
#define APPlink_FFLUSH 14
#define APPlink_FERROR 15
#define APPlink_CLEARERR 16
#define APPlink_FILENO 17 /* to be used with below */
#define APPlink_OPEN 18 /* formally can‘t be used as flags can vary */
#define APPlink_READ 19
#define APPlink_WRITE 20
#define APPlink_LSEEK 21
#define APPlink_CLOSE 22
#define APPlink_MAX 22 /* always same as last macro */
#ifndef APPMACROS_ONLY
# include
# include
# include
static void *app_stdin(void)
{
return stdin;
}
static void *app_stdout(void)
{
return stdout;
}
static void *app_stderr(void)
{
return stderr;
}
static int app_feof(FILE *fp)
{
return feof(fp);
}
static int app_ferror(FILE *fp)
{
return ferror(fp);
}
static void app_clearerr(FILE *fp)
{
clearerr(fp);
}
static int app_fileno(FILE *fp)
{
return _fileno(fp);
}
static int app_fsetmod(FILE *fp char mod)
{
return _setmode(_fileno(fp) mod == ‘b‘ ? _O_BINARY : _O_TEXT);
}
#ifdef __cplusplus
extern “C“ {
#endif
__declspec(dllexport)
void **
# if defined(__BORLANDC__)
/*
* __stdcall appears to be the only way to get the name
* decoration right with Borland C. Otherwise it works
* purely incidentally as we pass no parameters.
*/
__stdcall
# else
__cdecl
# endif
OPENSSL_Applink(void)
{
static int once = 1;
static void *OPENSSL_ApplinkTable[APPlink_MAX + 1] =
{ (void *)APPlink_MAX };
if (once) {
OPENSSL_ApplinkTable[APPlink_STDIN] = app_stdin;
OPENSSL_ApplinkTable[APPlink_STDOUT] = app_stdout;
OPENSSL_ApplinkTable[APPlink_STDERR] = app_stderr;
OPENSSL_ApplinkTable[APPlink_FPRINTF] = fprintf;
OPENSSL_ApplinkTable[APPlink_FGETS] = fgets;
OPENSSL_ApplinkTable[APPlink_FREAD] = fread;
OPENSSL_ApplinkTable[APPlink_FWRITE] = fwrite;
OPENSSL_ApplinkTable[APPlink_FSETMOD] = app_fsetmod;
OPENSSL_ApplinkTable[APPlink_FEOF] = app_feof;
OPENSSL_ApplinkTable[APPlink_FCLOSE] = fclose;
OPENSSL_ApplinkTable[APPlink_FOPEN] = fopen;
OPENSSL_ApplinkTable[APPlink_FSEEK] = fseek;
OPENSSL_ApplinkTable[APPlink_FTELL] = ftell;
OPENSSL_ApplinkTable[APPlink_FFLUSH] = fflush;
OPENSSL_ApplinkTable[APPlink_
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3349 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\aes.h
文件 3508 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\appli
文件 33627 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\asn1.h
文件 13539 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\asn1err.h
文件 32940 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\asn1t.h
文件 395 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\asn1_mac.h
文件 2398 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\async.h
文件 1196 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\asyncerr.h
文件 34655 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\bio.h
文件 5836 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\bioerr.h
文件 1847 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\blowfish.h
文件 20345 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\bn.h
文件 4591 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\bnerr.h
文件 1600 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\buffer.h
文件 752 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\buffererr.h
文件 3179 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\camellia.h
文件 1674 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\cast.h
文件 1064 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\cmac.h
文件 16412 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\cms.h
文件 10840 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\cmserr.h
文件 1328 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\comp.h
文件 1081 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\comperr.h
文件 5601 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\conf.h
文件 2741 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\conferr.h
文件 1300 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\conf_api.h
文件 17162 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\crypto.h
文件 1449 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\cryptoerr.h
文件 15990 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\ct.h
文件 3402 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\cterr.h
文件 7627 2018-03-15 11:58 OpenSSL-_Out32dll\inc32\openssl\des.h
............此处省略86个文件信息
- 上一篇:AP6212 驱动
- 下一篇:Dialog风格Activity全屏显示悬浮窗
相关资源
- 程序员专用字体YaHei.Consolas.1.11b42517
- Windows异步套接字网络编程
- VC 获得文件属性 获取文件的创建时
- 基于MVC模式的会员管理系统
- silicon lab公司的收音IC SI47XX全套开发工
- 读者写者问题(读者优先,写者优先
- MFC程序-碰撞的小球
- vc 柱形图 CBarChart
- 用vc 写的导线测量,针对刚学测绘的
- 用VC 编写的仿QQ聊天室程序源代码
- 栅栏填充算法源码(VC)
- 简单的房屋租赁系统
- .net网站服装销售系统(MVC)
- Openssl给文件传输加密
-
ob
jectARX给Auto CAD加工具条 - blowfish的vc2008工程.rar
- 画图程序MFC/VC/VC CRectTracker 串行化
- capon波束形成算法-VC实现
- 读取串口数据并画实时曲线的VC 程序
- VC 游戏编程—附源代码
- IpHlpApi.h&IpHlpApi.lib
- openssl 简介(中文)
- vc 6.0开发的流程图编辑器
- VC 天空盒(skyBox)实现(附源代码)
- c MFC 画多边形
- keil vcom windows 7 64bit 驱动
- vc URL编解码类
- vc编写中国象棋详细源码注释并附有视
- VC 围棋源代码
- 应用接口支持库1.1版eAPI
评论
共有 条评论