Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
9e5b3780
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
大约 1 年 前同步成功
通知
9
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9e5b3780
编写于
6月 05, 2005
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated support for NetWare, submitted by Verdon Walker <VWalker@novell.com>.
PR: 1098
上级
7ed87653
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
65 addition
and
60 deletion
+65
-60
Configure
Configure
+3
-3
INSTALL.NW
INSTALL.NW
+6
-8
Netware/do_tests.pl
Netware/do_tests.pl
+52
-43
e_os.h
e_os.h
+1
-5
util/pl/netware.pl
util/pl/netware.pl
+3
-1
未找到文件。
Configure
浏览文件 @
9e5b3780
...
...
@@ -483,10 +483,10 @@ my %table=(
# NetWare from David Ward (dsward@novell.com) - requires MetroWerks NLM development tools
# netware-clib => legacy CLib c-runtime support
"netware-clib", "mwccnlm:::::
${x86_gcc_opts}:
::",
"netware-clib", "mwccnlm:::::
:BN_LLONG ${x86_gcc_opts}
::",
# netware-libc => LibC/NKS support
"netware-libc", "mwccnlm:::::
BN_LLONG ${x86_gcc_opts}:
::",
"netware-libc-gcc", "i586-netware-gcc:-nostdinc -I/ndk/libc/include -I/ndk/libc/include/winsock -DL_ENDIAN -DNETWARE_LIBC -DOPENSSL_SYSNAME_NETWARE -DTERMIO -O2 -Wall::::
${x86_gcc_opts}:
::",
"netware-libc", "mwccnlm:::::
:BN_LLONG ${x86_gcc_opts}
::",
"netware-libc-gcc", "i586-netware-gcc:-nostdinc -I/ndk/libc/include -I/ndk/libc/include/winsock -DL_ENDIAN -DNETWARE_LIBC -DOPENSSL_SYSNAME_NETWARE -DTERMIO -O2 -Wall::::
:BN_LLONG ${x86_gcc_opts}
::",
# DJGPP
"DJGPP", "gcc:-I/dev/env/WATT_ROOT/inc -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -Wall -DDEVRANDOM=\"/dev/urandom\\x24\":::MSDOS:-L/dev/env/WATT_ROOT/lib -lwatt:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:",
...
...
INSTALL.NW
浏览文件 @
9e5b3780
...
...
@@ -95,7 +95,12 @@ following tools may be required:
Microsoft SDK. Note: The winsock2.h support headers may change
with various versions of winsock2.h. Check the dependencies
section on the NDK WinSock2 download page for the latest
information on dependencies.
information on dependencies. These components are unsupported by
Novell. They are provided as a courtesy, but it is strongly
suggested that all development be done using LIBC, not CLIB.
As of June 2005, the WinSock2 components are available at:
http://forgeftp.novell.com//ws2comp/
NLM and NetWare libraries for C (including CLIB and XPlat):
...
...
@@ -288,13 +293,6 @@ The do_tests.pl script generates a log file "\openssl\test_out\tests.log"
which should be reviewed for errors. Any errors will be denoted by the word
"ERROR" in the log.
NOTE: Currently (11/2002), the LibC test nlms report an error while loading
when launched from the perl script (do_tests.pl). The problems are
being addressed by the LibC development team and should be fixed in the
next release. Until the problems are corrected, the LibC test nlms
will have to be executed manually.
DEVELOPING WITH THE OPENSSL SDK:
--------------------------------
Now that everything is built and tested, you are ready to use the OpenSSL
...
...
Netware/do_tests.pl
浏览文件 @
9e5b3780
...
...
@@ -42,8 +42,8 @@ sub main()
encryption_tests
();
pem_tests
();
verify_tests
();
ssl_tests
();
ca_tests
();
ssl_tests
();
close
(
OUT
);
...
...
@@ -67,10 +67,17 @@ sub algorithm_tests
foreach
$i
(
@tests
)
{
$outFile
=
"
$output_path
\\
$i
.out
";
system
("
$i
>
$outFile
");
log_desc
("
Test:
$i
\
.nlm:
");
log_output
("",
$outFile
);
if
(
-
e
"
$base_path
\\
$i
.nlm
")
{
$outFile
=
"
$output_path
\\
$i
.out
";
system
("
$i
>
$outFile
");
log_desc
("
Test:
$i
\
.nlm:
");
log_output
("",
$outFile
);
}
else
{
log_desc
("
Test:
$i
\
.nlm: file not found
");
}
}
}
...
...
@@ -246,61 +253,63 @@ sub verify_tests
sub
ssl_tests
{
my
$outFile
=
"
$output_path
\\
ssl_tst.out
";
my
(
$CAcert
)
=
"
$output_path
\\
certCA.ss
";
my
(
$Ukey
)
=
"
$output_path
\\
keyU.ss
";
my
(
$Ucert
)
=
"
$output_path
\\
certU.ss
";
my
(
$ssltest
)
=
"
ssltest -key
$Ukey
-cert
$Ucert
-c_key
$Ukey
-c_cert
$Ucert
-CAfile
$CAcert
";
print
(
"
\n
RUNNING SSL TESTS:
\n\n
");
print
(
OUT
"
\n
========================================================
\n
");
print
(
OUT
"
SSL TESTS:
\n\n
");
make_tmp_cert_file
();
system
("
ssltest -ssl2 >
$outFile
");
log_desc
("
Testing sslv2:
");
log_output
("
ssltest -ssl2
",
$outFile
);
system
("
ssltest -ssl2 -server_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-ssl2 -server_auth
>
$outFile
");
log_desc
("
Testing sslv2 with server authentication:
");
log_output
("
ssltest -ssl2 -server_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-ssl2 -server_auth
",
$outFile
);
system
("
ssltest -ssl2 -client_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-ssl2 -client_auth
>
$outFile
");
log_desc
("
Testing sslv2 with client authentication:
");
log_output
("
ssltest -ssl2 -client_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-ssl2 -client_auth
",
$outFile
);
system
("
ssltest -ssl2 -server_auth -client_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-ssl2 -server_auth -client_auth
>
$outFile
");
log_desc
("
Testing sslv2 with both client and server authentication:
");
log_output
("
ssltest -ssl2 -server_auth -client_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-ssl2 -server_auth -client_auth
",
$outFile
);
system
("
ssltest -ssl3 >
$outFile
");
log_desc
("
Testing sslv3:
");
log_output
("
ssltest -ssl3
",
$outFile
);
system
("
ssltest -ssl3 -server_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-ssl3 -server_auth
>
$outFile
");
log_desc
("
Testing sslv3 with server authentication:
");
log_output
("
ssltest -ssl3 -server_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-ssl3 -server_auth
",
$outFile
);
system
("
ssltest -ssl3 -client_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-ssl3 -client_auth
>
$outFile
");
log_desc
("
Testing sslv3 with client authentication:
");
log_output
("
ssltest -ssl3 -client_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-ssl3 -client_auth
",
$outFile
);
system
("
ssltest -ssl3 -server_auth -client_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-ssl3 -server_auth -client_auth
>
$outFile
");
log_desc
("
Testing sslv3 with both client and server authentication:
");
log_output
("
ssltest -ssl3 -server_auth -client_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-ssl3 -server_auth -client_auth
",
$outFile
);
system
("
ssltest >
$outFile
");
log_desc
("
Testing sslv2/sslv3:
");
log_output
("
ssltest
",
$outFile
);
system
("
ssltest -server_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-server_auth
>
$outFile
");
log_desc
("
Testing sslv2/sslv3 with server authentication:
");
log_output
("
ssltest -server_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-server_auth
",
$outFile
);
system
("
ssltest -client_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-client_auth
>
$outFile
");
log_desc
("
Testing sslv2/sslv3 with client authentication:
");
log_output
("
ssltest -client_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-client_auth
",
$outFile
);
system
("
ssltest -server_auth -client_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-server_auth -client_auth
>
$outFile
");
log_desc
("
Testing sslv2/sslv3 with both client and server authentication:
");
log_output
("
ssltest -server_auth -client_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-server_auth -client_auth
",
$outFile
);
system
("
ssltest -bio_pair -ssl2 >
$outFile
");
log_desc
("
Testing sslv2 via BIO pair:
");
...
...
@@ -310,49 +319,49 @@ sub ssl_tests
log_desc
("
Testing sslv2/sslv3 with 1024 bit DHE via BIO pair:
");
log_output
("
ssltest -bio_pair -dhe1024dsa -v
",
$outFile
);
system
("
ssltest -bio_pair -ssl2 -server_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-bio_pair -ssl2 -server_auth
>
$outFile
");
log_desc
("
Testing sslv2 with server authentication via BIO pair:
");
log_output
("
ssltest -bio_pair -ssl2 -server_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-bio_pair -ssl2 -server_auth
",
$outFile
);
system
("
ssltest -bio_pair -ssl2 -client_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-bio_pair -ssl2 -client_auth
>
$outFile
");
log_desc
("
Testing sslv2 with client authentication via BIO pair:
");
log_output
("
ssltest -bio_pair -ssl2 -client_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-bio_pair -ssl2 -client_auth
",
$outFile
);
system
("
ssltest -bio_pair -ssl2 -server_auth -client_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-bio_pair -ssl2 -server_auth -client_auth
>
$outFile
");
log_desc
("
Testing sslv2 with both client and server authentication via BIO pair:
");
log_output
("
ssltest -bio_pair -ssl2 -server_auth -client_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-bio_pair -ssl2 -server_auth -client_auth
",
$outFile
);
system
("
ssltest -bio_pair -ssl3 >
$outFile
");
log_desc
("
Testing sslv3 via BIO pair:
");
log_output
("
ssltest -bio_pair -ssl3
",
$outFile
);
system
("
ssltest -bio_pair -ssl3 -server_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-bio_pair -ssl3 -server_auth
>
$outFile
");
log_desc
("
Testing sslv3 with server authentication via BIO pair:
");
log_output
("
ssltest -bio_pair -ssl3 -server_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-bio_pair -ssl3 -server_auth
",
$outFile
);
system
("
ssltest -bio_pair -ssl3 -client_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-bio_pair -ssl3 -client_auth
>
$outFile
");
log_desc
("
Testing sslv3 with client authentication via BIO pair:
");
log_output
("
ssltest -bio_pair -ssl3 -client_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-bio_pair -ssl3 -client_auth
",
$outFile
);
system
("
ssltest -bio_pair -ssl3 -server_auth -client_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-bio_pair -ssl3 -server_auth -client_auth
>
$outFile
");
log_desc
("
Testing sslv3 with both client and server authentication via BIO pair:
");
log_output
("
ssltest -bio_pair -ssl3 -server_auth -client_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-bio_pair -ssl3 -server_auth -client_auth
",
$outFile
);
system
("
ssltest -bio_pair >
$outFile
");
log_desc
("
Testing sslv2/sslv3 via BIO pair:
");
log_output
("
ssltest -bio_pair
",
$outFile
);
system
("
ssltest -bio_pair -server_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-bio_pair -server_auth
>
$outFile
");
log_desc
("
Testing sslv2/sslv3 with server authentication via BIO pair:
");
log_output
("
ssltest -bio_pair -server_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-bio_pair -server_auth
",
$outFile
);
system
("
ssltest -bio_pair -client_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-bio_pair -client_auth
>
$outFile
");
log_desc
("
Testing sslv2/sslv3 with client authentication via BIO pair:
");
log_output
("
ssltest -bio_pair -client_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-bio_pair -client_auth
",
$outFile
);
system
("
ssltest -bio_pair -server_auth -client_auth -CAfile
$tmp_cert
>
$outFile
");
system
("
$ssltest
-bio_pair -server_auth -client_auth
>
$outFile
");
log_desc
("
Testing sslv2/sslv3 with both client and server authentication via BIO pair:
");
log_output
("
ssltest -bio_pair -server_auth -client_auth -CAfile
$tmp_cert
",
$outFile
);
log_output
("
$ssltest
-bio_pair -server_auth -client_auth
",
$outFile
);
}
...
...
e_os.h
浏览文件 @
9e5b3780
...
...
@@ -438,11 +438,7 @@ extern HINSTANCE _hInstance;
# elif defined(OPENSSL_SYS_NETWARE)
/* NetWare uses the WinSock2 interfaces
*/
# if defined(NETWARE_CLIB)
# include <ws2nlm.h>
# elif defined(NETWARE_LIBC)
# include <novsock2.h>
# endif
# include <novsock2.h>
# define SSLeay_Write(a,b,c) send((a),(b),(c),0)
# define SSLeay_Read(a,b,c) recv((a),(b),(c),0)
# define SHUTDOWN(fd) { shutdown((fd),0); closesocket(fd); }
...
...
util/pl/netware.pl
浏览文件 @
9e5b3780
...
...
@@ -82,10 +82,12 @@ else
# paths for each subdirectory a recursive include directive
# is used ( -ir crypto ).
#
# A similar issue exists for the engines and apps subdirectories.
#
# Turned off the "possible" warnings ( -w nopossible ). Metrowerks
# complained a lot about various stuff. May want to turn back
# on for further development.
$cflags
=
"
-ir crypto -msgstyle gcc -align 4 -processor pentium
\\
$cflags
=
"
-ir crypto -
ir engines -ir apps -
msgstyle gcc -align 4 -processor pentium
\\
-char unsigned -w on -w nolargeargs -w nopossible -w nounusedarg
\\
-w noimplicitconv -relax_pointers -nosyspath -DL_ENDIAN
\\
-DOPENSSL_SYSNAME_NETWARE -U_WIN32 -maxerrors 20
";
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录