资源简介
openssl,已编译好的动态和静态库
代码片段和文件信息
#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[
相关资源
- libcurl_7.52静态库
- wireless_tools.29+libnl-1.1+wpa_supplicant-2.6
- openssl-devel
- 升级OpenSSH_7.4p1完整源码包
- libmp3lame(3.100)_iOS静态库支持arm64v
- win10 VS2017 编译成功的openssl 32位和64位
- openssl生成的out32dll文件
- libevent-2.1.8-stable for iOS 包含静态库与
- rplidar静态库工程
- Windows下VS2015编译并使用libcurl.lib静态
- openssl lib
- 大漠插件重新封装为DLL库
- 这是一个基于openssl库的对文件进行加
- openssl编程.pdf
- openssl-0.9.8h-1-bin
- libcurl.a(with zlib openssl libssh2) 含r
- Network Security with OpenSSL 免费
- zbar静态库支持armv7sarm64
- Indy10.6和OpenSSL解决D7下GET&POST;乱码
- openssl-0.9.8.1302.tar.Z
- libcurl静态库[支持https]
- openssh-7.9p1+openssl-1.1.0h一键升级
- windows下调用openssl需要的include和lib
- Win64OpenSSL_Light-1_0_2d-2
- 编译完后的OpenSSL不需安装版本
- Open62541 Linux静态库
- openssl-1.0.1e
- gmp大数库静态链接库,无须编译,直
- openssl-1.0.1i.tar.gz
- nginx1.9.0和其所用到所有包
评论
共有 条评论