资源简介
vs2015编译的openssl-1.0.2l包含静态库(lib)和动态库(dll)头文件等
代码片段和文件信息
#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_FERROR] = app_ferror;
OPENSSL_ApplinkTable[APPlink_CLEARERR] = app_clearerr;
OPENSSL_ApplinkTable[APPlink_FILENO] = app_fileno;
OPENSSL_ApplinkTable[APPlink_OPEN] = _open;
OPENSSL_ApplinkTable[APPlink_READ] = _read;
OPENSSL_ApplinkTable[APPlink_WRITE] = _write;
OPENSSL_ApplinkTable[
- 上一篇:计算机组成原理54条Mips指令实验
- 下一篇:简单的物流系统
相关资源
- Win64OpenSSL-1.1.1
- AIX5.3、6.1、7.1可用的openssl0.9.8和open
- Win32OpenSSL
- perl/nasm工具
- ios openssl(libssl.a和libcrypto.a)编译 支
- openssl1.0.2g编译完成的
- openssl-1.1.1库win32-64
- OpenSSL 1.1.1a for Windows32位、64位,已编
- VS2015编译好的最新OpenSSL-1.0.2j所有共八
- openssl 结合 IOCP的
- Win7下通过VS2015编译好的最新OpenSSL-1
- Win7下通过VS2015编译好的OpenSSL所有共八
- Win32OpenSSL-1_0_2n 安装包
- Windows下用SSL实现加密通讯Demo
- Win64OpenSSL-1_1_0
- 编译好的openssl库
- 海思3516A 3516D openssl zlib openssh编译
- Win32OpenSSL-1_0_2c.exe
- Win64OpenSSL-1_0_2d
- x64 windows libcurlopensslzlib编译好,VS直接
- OpenSSL工具
- curl+openssl开发库VS2017x64
- Win64OpenSSL-1_0_1e.exe
- 最新的OPENSSL1.1.0编译好的
- ios openssl静态库 (libssl.a和libcrypto.a)
- openssl+openssh离线安装包
- Win32OpenSSL-1_1_1g.exe
- stm32_RSA.zip
- OPENSSL AES 加解密例程
- libcurl支持https的dll和lib(包含openssl的
评论
共有 条评论