http://linux.chinaunix.net/techdoc/desktop/2007/10/12/969683.shtml这是一篇关于将stunnel变成插件的文章,也有作者编译好的源代码 以及 配置源代码http://blogimg.chinaunix.net/blog/upfile/071018112912.rar这个源代码 中少个openssl包,大家有兴趣,可以自己下个测试程序如下 ,我只想让stunnel挂起来 就行,但是 就是一直有错误,有知道的么,请讲下,谢谢
#include <stdio.h>
#include <string.h>
#include <windows.h>int main(void)
{
    static char dllname[] = "..\\Debug\\unissl.dll";
    static char funcname[] = "stunnel";
    static HMODULE hStunnel;
    static FARPROC stunnel;
    hStunnel = LoadLibraryA( dllname );
    if ( hStunnel==NULL )
    {
MessageBox
( 0,
"Load unissl.dll failed.",
"BkSSL",
MB_ICONERROR
);
return 1;
    }
    
    stunnel = GetProcAddress( hStunnel, funcname );
    stunnel(); return 0;}