Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
d4d2f98c
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
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看板
提交
d4d2f98c
编写于
25年前
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Comment out two unimplemented functions from bio.h. Attempt to get the
Win32 test batch file going again.
上级
0cc39579
无相关合并请求
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
197 addition
and
171 deletion
+197
-171
CHANGES
CHANGES
+7
-0
INSTALL.W32
INSTALL.W32
+10
-3
STATUS
STATUS
+2
-1
crypto/bio/bio.h
crypto/bio/bio.h
+3
-2
ms/tenc.bat
ms/tenc.bat
+14
-14
ms/test.bat
ms/test.bat
+7
-6
ms/testenc.bat
ms/testenc.bat
+6
-5
ms/testpem.bat
ms/testpem.bat
+35
-36
ms/testss.bat
ms/testss.bat
+98
-98
ms/tpem.bat
ms/tpem.bat
+6
-6
test/testreq.pem
test/testreq.pem
+9
-0
未找到文件。
CHANGES
浏览文件 @
d4d2f98c
...
...
@@ -5,10 +5,16 @@
Changes between 0.9.1c and 0.9.2
*) Comment out two functions in bio.h that aren't implemented. Fix up the
Win32 test batch file so it (might) work again. The Win32 test batch file
is horrible: I feel ill....
[Steve Henson]
*) Move various #ifdefs around so NO_SYSLOG, NO_DIRENT etc are now selected
in e_os.h. Audit of header files to check ANSI and non ANSI
sections: 10 functions were absent from non ANSI section and not exported
from Windows DLLs. Fixed up libeay.num for new functions.
[Steve Henson]
*) Make `openssl version' output lines consistent.
[Ralf S. Engelschall]
...
...
@@ -39,6 +45,7 @@
*) Permit extensions to be added to CRLs using crl_section in openssl.cnf.
Currently only issuerAltName and AuthorityKeyIdentifier make any sense
in CRLs.
[Steve Henson]
*) Add a useful kludge to allow package maintainers to specify compiler and
other platforms details on the command line without having to patch the
...
...
This diff is collapsed.
Click to expand it.
INSTALL.W32
浏览文件 @
d4d2f98c
...
...
@@ -32,7 +32,8 @@ then from the VC++ environment at a prompt do:
nmake -f ms\ntdll.mak
you may get a warning about too many rules but if all is well it should all
compile and you will have some DLLs and executables in out32dll.
compile and you will have some DLLs and executables in out32dll. If you want
to try the tests then cd to out32dll and run ..\ms\test
Troubleshooting.
...
...
@@ -68,14 +69,20 @@ environments this can happen. The best fix is to edit the file with the warning
in and fix it. Alternatively you can turn off the halt on warnings by editing
the CFLAG line in the Makefile and deleting the /WX option.
Finally y
ou might get compilation errors. Again you will have to fix these or
Y
ou might get compilation errors. Again you will have to fix these or
report them.
One final comment about compiling applications linked to the OpenSSL library.
If you don't use the multithreaded DLL runtime library (/MD option) your
program will almost certainly crash: see the original SSLeay description below
for more details.
Tweaks.
There are various changes you can make to the Win32 compile environment. If you
have the MASM assembler 'ml' then you can try the assembly language code. To
do this remove the 'no-asm' part from do_ms.bat.
do this remove the 'no-asm' part from do_ms.bat. You can also add 'debug' here
to make a debugging version of the library.
If you want to enable the NT specific features of OpenSSL (currently only
the logging BIO) follow the instructions above but call the batch file
...
...
This diff is collapsed.
Click to expand it.
STATUS
浏览文件 @
d4d2f98c
OpenSSL STATUS Last modified at
______________ $Date: 1999/03/0
8 21:56:46
$
______________ $Date: 1999/03/0
9 03:01:42
$
DEVELOPMENT STATE
...
...
@@ -11,6 +11,7 @@
o FreeBSD 2.2.7 Ben Laurie OK
o FreeBSD 3.1 Ralf S. Engelschall all silent
o Solaris 2.6 Ralf S. Engelschall ctype-related warnings, test fails
o Linux RH 5.1 Steve Henson OK
Proposed release time: Monday, March 15th 1999
...
...
This diff is collapsed.
Click to expand it.
crypto/bio/bio.h
浏览文件 @
d4d2f98c
...
...
@@ -463,10 +463,11 @@ BIO *BIO_new_fp(FILE *stream, int close_flag);
# endif
/* FP_API */
#else
int
BIO_get_ex_num
();
/* These two aren't currently implemented */
/*int BIO_get_ex_num();*/
/*void BIO_set_ex_free_func();*/
int
BIO_set_ex_data
();
char
*
BIO_get_ex_data
();
void
BIO_set_ex_free_func
();
int
BIO_get_ex_new_index
();
# if defined(WIN16) && defined(_WINDLL)
...
...
This diff is collapsed.
Click to expand it.
ms/tenc.bat
浏览文件 @
d4d2f98c
rem called by testenc
echo
test
%
1
%
2
%
3
%
4
%
5
%
6
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-e -bufsize
113
-k
test
-in
%input%
-out
%tmp1
%
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-d -bufsize
157
-k
test
-in
%tmp1
%
-out
%out1
%
%cmp%
%input%
%out1
%
if
errorlevel
1
goto
err
echo
test
base64
%
1
%
2
%
3
%
4
%
5
%
6
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-a -e -bufsize
113
-k
test
-in
%input%
-out
%tmp1
%
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-a -d -bufsize
157
-k
test
-in
%tmp1
%
-out
%out1
%
%cmp%
%input%
%out1
%
:err
rem called by testenc
echo
test
%
1
%
2
%
3
%
4
%
5
%
6
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-e -bufsize
113
-k
test
-in
%input%
-out
%tmp1
%
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-d -bufsize
157
-k
test
-in
%tmp1
%
-out
%out1
%
%cmp%
%input%
%out1
%
if
errorlevel
1
goto
err
echo
test
base64
%
1
%
2
%
3
%
4
%
5
%
6
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-a -e -bufsize
113
-k
test
-in
%input%
-out
%tmp1
%
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-a -d -bufsize
157
-k
test
-in
%tmp1
%
-out
%out1
%
%cmp%
%input%
%out1
%
:err
This diff is collapsed.
Click to expand it.
ms/test.bat
浏览文件 @
d4d2f98c
@echo
=
off
set
test
=
p
:\work\ssleay
\ms
set
test
=
..
\ms
set
opath
=
%PATH%
PATH
=
%
1
;
%PATH%
PATH
=
..\ms
;
%PATH%
set
OPENSSL_CONF
=
..\apps\openssl.cnf
rem run this from inside the bin directory
...
...
@@ -63,19 +64,19 @@ dsatest
if
errorlevel
1
goto
done
echo
testenc
call
%test%
\testenc
ssleay
call
%test%
\testenc
openssl
if
errorlevel
1
goto
done
echo
testpem
call
%test%
\testpem
ssleay
call
%test%
\testpem
openssl
if
errorlevel
1
goto
done
echo
verify
copy
..\certs\
*
.pem
cert
.tmp
>
nul
ssleay
verify
-CAfile
cert
.tmp ..\certs\
*
.pem
openssl
verify
-CAfile
cert
.tmp ..\certs\
*
.pem
echo
testss
call
%test%
\testss
ssleay
call
%test%
\testss
openssl
if
errorlevel
1
goto
done
echo
test
sslv2
...
...
This diff is collapsed.
Click to expand it.
ms/testenc.bat
浏览文件 @
d4d2f98c
echo
start
testenc
path
=
p
:\work\ssleay\ms
;
%path%
echo
=
off
path
=
d
:\openssl\ms
;
%path%
set
ssleay
=
%
1
%
set
input
=
p
:\work\ssleay
\ms\testenc.bat
set
tmp1
=
p
:\work\ssleay
\ms\cipher.out
set
out1
=
p
:\work\ssleay
\ms\clear.out
set
cmp
=
perl
p
:\work\ssleay
\ms\cmp.pl
set
input
=
d
:\openssl
\ms\testenc.bat
set
tmp1
=
d
:\openssl
\ms\cipher.out
set
out1
=
d
:\openssl
\ms\clear.out
set
cmp
=
perl
d
:\openssl
\ms\cmp.pl
cd
call
tenc
.bat
enc
...
...
This diff is collapsed.
Click to expand it.
ms/testpem.bat
浏览文件 @
d4d2f98c
echo
=
off
set
ssleay
=
%
1
%
set
tmp1
=
pem
.out
set
cmp
=
perl
..\ms\cmp.pl
call
tpem
.bat
crl
..\test\testcrl.pem
if
errorlevel
1
goto
err
call
tpem
.bat
pkcs7
..\test\testp7.pem
if
errorlevel
1
goto
err
call
tpem
.bat
req
..\test\testreq.pem
if
errorlevel
1
goto
err
call
tpem
.bat
req
..\test\testreq2.pem
if
errorlevel
1
goto
err
call
tpem
.bat
rsa
..\test\testrsa.pem
if
errorlevel
1
goto
err
call
tpem
.bat
x509
..\test\testx509.pem
if
errorlevel
1
goto
err
call
tpem
.bat
x509
..\test\v3
-cert
1
.pem
if
errorlevel
1
goto
err
call
tpem
.bat
x509
..\test\v3
-cert
1
.pem
if
errorlevel
1
goto
err
call
tpem
.bat
sess_id
..\test\testsid.pem
if
errorlevel
1
goto
err
echo
OK
del
%tmp1
%
:err
echo
=
off
set
ssleay
=
%
1
%
set
tmp1
=
pem
.out
set
cmp
=
perl
..\ms\cmp.pl
call
tpem
.bat
crl
..\test\testcrl.pem
if
errorlevel
1
goto
err
call
tpem
.bat
pkcs7
..\test\testp7.pem
if
errorlevel
1
goto
err
call
tpem
.bat
req
..\test\testreq.pem
if
errorlevel
1
goto
err
call
tpem
.bat
req
..\test\testreq2.pem
if
errorlevel
1
goto
err
call
tpem
.bat
rsa
..\test\testrsa.pem
if
errorlevel
1
goto
err
call
tpem
.bat
x509
..\test\testx509.pem
if
errorlevel
1
goto
err
call
tpem
.bat
x509
..\test\v3
-cert
1
.pem
if
errorlevel
1
goto
err
call
tpem
.bat
x509
..\test\v3
-cert
1
.pem
if
errorlevel
1
goto
err
call
tpem
.bat
sess_id
..\test\testsid.pem
if
errorlevel
1
goto
err
echo
OK
del
%tmp1
%
:err
This diff is collapsed.
Click to expand it.
ms/testss.bat
浏览文件 @
d4d2f98c
echo
=
o
ff
rem set ssleay=..\out\ssleay
set
ssleay
=
%
1
set
reqcmd
=
%ssleay%
req
set
x509cmd
=
%ssleay%
x509
set
verifycmd
=
%ssleay%
verify
set
CAkey
=
keyCA
.ss
set
CAcert
=
certCA
.ss
set
CAserial
=
certCA
.srl
set
CAreq
=
reqCA
.ss
set
CAconf
=
..\test\CAss.cnf
set
CAreq2
=
req2CA
.ss
set
Uconf
=
..\test\Uss.cnf
set
Ukey
=
keyU
.ss
set
Ureq
=
reqU
.ss
set
Ucert
=
certU
.ss
echo
make
a
certificate
request
using
'req'
%reqcmd%
-config
%CAconf%
-out
%CAreq%
-keyout
%CAkey%
-new
if
errorlevel
1
goto
err_req
echo
convert
the
certificate
request
into
a
self
signed
certificate
using
'x509'
%x5
09
cmd
%
-CAcreateserial -in
%CAreq%
-days
30
-req -out
%CAcert%
-signkey
%CAkey%
>
err
.ss
if
errorlevel
1
goto
err_x509
echo
--
echo
convert
a
certificate
into
a
certificate
request
using
'x509'
%x5
09
cmd
%
-in
%CAcert%
-x
509
toreq
-signkey
%CAkey%
-out
%CAreq2
%
>
err
.ss
if
errorlevel
1
goto
err_x509_2
%reqcmd%
-verify -in
%CAreq%
-noout
if
errorlevel
1
goto
err_verify_1
%reqcmd%
-verify -in
%CAreq2
%
-noout
if
errorlevel
1
goto
err_verify_2
%verifycmd%
-CAfile
%CAcert%
%CAcert%
if
errorlevel
1
goto
err_verify_3
echo
--
echo
make
another
certificate
request
using
'req'
%reqcmd%
-config
%Uconf%
-out
%Ureq%
-keyout
%Ukey%
-new
>
err
.ss
if
errorlevel
1
goto
err_req_gen
echo
--
echo
sign
certificate
request
with
the
just
created
CA
via
'x509'
%x5
09
cmd
%
-CAcreateserial -in
%Ureq%
-days
30
-req -out
%Ucert%
-CA
%CAcert%
-CAkey
%CAkey%
-CAserial
%CAserial%
if
errorlevel
1
goto
err_x509_sign
%verifycmd%
-CAfile
%CAcert%
%Ucert%
echo
--
echo
Certificate
details
%x5
09
cmd
%
-subject -issuer -startdate -enddate -noout -in
%Ucert%
echo
Everything
appeared
to
work
echo
--
echo
The
generated
CA
certificate
is
%CAcert%
echo
The
generated
CA
private
key
is
%CAkey%
echo
The
current
CA
signing
serial
number
is
in
%CAserial%
echo
The
generated
user
certificate
is
%Ucert%
echo
The
generated
user
private
key
is
%Ukey%
echo
--
del
err
.ss
goto
end
:err
_req
echo
error
using
'req'
to
generate
a
certificate
request
goto
end
:err
_x509
echo
error
using
'x509'
to
self
sign
a
certificate
request
goto
end
:err
_x509_2
echo
error
using
'x509'
convert
a
certificate
to
a
certificate
request
goto
end
:err
_verify_1
echo
first
generated
request
is
invalid
goto
end
:err
_verify_2
echo
second
generated
request
is
invalid
goto
end
:err
_verify_3
echo
first
generated
cert
is
invalid
goto
end
:err
_req_gen
echo
error
using
'req'
to
generate
a
certificate
request
goto
end
:err
_x509_sign
echo
error
using
'x509'
to
sign
a
certificate
request
goto
end
:end
echo
=
o
n
rem set ssleay=..\out\ssleay
set
ssleay
=
%
1
set
reqcmd
=
%ssleay%
req
set
x509cmd
=
%ssleay%
x509
set
verifycmd
=
%ssleay%
verify
set
CAkey
=
keyCA
.ss
set
CAcert
=
certCA
.ss
set
CAserial
=
certCA
.srl
set
CAreq
=
reqCA
.ss
set
CAconf
=
..\test\CAss.cnf
set
CAreq2
=
req2CA
.ss
set
Uconf
=
..\test\Uss.cnf
set
Ukey
=
keyU
.ss
set
Ureq
=
reqU
.ss
set
Ucert
=
certU
.ss
echo
make
a
certificate
request
using
'req'
%reqcmd%
-config
%CAconf%
-out
%CAreq%
-keyout
%CAkey%
-new
if
errorlevel
1
goto
err_req
echo
convert
the
certificate
request
into
a
self
signed
certificate
using
'x509'
%x5
09
cmd
%
-CAcreateserial -in
%CAreq%
-days
30
-req -out
%CAcert%
-signkey
%CAkey%
>
err
.ss
if
errorlevel
1
goto
err_x509
echo
--
echo
convert
a
certificate
into
a
certificate
request
using
'x509'
%x5
09
cmd
%
-in
%CAcert%
-x
509
toreq
-signkey
%CAkey%
-out
%CAreq2
%
>
err
.ss
if
errorlevel
1
goto
err_x509_2
%reqcmd%
-verify -in
%CAreq%
-noout
if
errorlevel
1
goto
err_verify_1
%reqcmd%
-verify -in
%CAreq2
%
-noout
if
errorlevel
1
goto
err_verify_2
%verifycmd%
-CAfile
%CAcert%
%CAcert%
if
errorlevel
1
goto
err_verify_3
echo
--
echo
make
another
certificate
request
using
'req'
%reqcmd%
-config
%Uconf%
-out
%Ureq%
-keyout
%Ukey%
-new
>
err
.ss
if
errorlevel
1
goto
err_req_gen
echo
--
echo
sign
certificate
request
with
the
just
created
CA
via
'x509'
%x5
09
cmd
%
-CAcreateserial -in
%Ureq%
-days
30
-req -out
%Ucert%
-CA
%CAcert%
-CAkey
%CAkey%
-CAserial
%CAserial%
if
errorlevel
1
goto
err_x509_sign
%verifycmd%
-CAfile
%CAcert%
%Ucert%
echo
--
echo
Certificate
details
%x5
09
cmd
%
-subject -issuer -startdate -enddate -noout -in
%Ucert%
echo
Everything
appeared
to
work
echo
--
echo
The
generated
CA
certificate
is
%CAcert%
echo
The
generated
CA
private
key
is
%CAkey%
echo
The
current
CA
signing
serial
number
is
in
%CAserial%
echo
The
generated
user
certificate
is
%Ucert%
echo
The
generated
user
private
key
is
%Ukey%
echo
--
del
err
.ss
goto
end
:err
_req
echo
error
using
'req'
to
generate
a
certificate
request
goto
end
:err
_x509
echo
error
using
'x509'
to
self
sign
a
certificate
request
goto
end
:err
_x509_2
echo
error
using
'x509'
convert
a
certificate
to
a
certificate
request
goto
end
:err
_verify_1
echo
first
generated
request
is
invalid
goto
end
:err
_verify_2
echo
second
generated
request
is
invalid
goto
end
:err
_verify_3
echo
first
generated
cert
is
invalid
goto
end
:err
_req_gen
echo
error
using
'req'
to
generate
a
certificate
request
goto
end
:err
_x509_sign
echo
error
using
'x509'
to
sign
a
certificate
request
goto
end
:end
This diff is collapsed.
Click to expand it.
ms/tpem.bat
浏览文件 @
d4d2f98c
rem called by testpem
echo
test
%
1
%
2
%ssleay%
%
1
-in
%
2
-out
%tmp1
%
%cmp%
%
2
%tmp1
%
rem called by testpem
echo
test
%
1
%
2
%ssleay%
%
1
-in
%
2
-out
%tmp1
%
%cmp%
%
2
%tmp1
%
This diff is collapsed.
Click to expand it.
test/testreq.pem
0 → 100644
浏览文件 @
d4d2f98c
-----BEGIN CERTIFICATE REQUEST-----
MIIBQjCB7QIBADCBhzELMAkGA1UEBhMCQVUxEzARBgNVBAgTClF1ZWVuc2xhbmQx
ETAPBgNVBAcTCEJyaXNiYW5lMRowGAYDVQQKExFDcnlwdFNvZnQgUHR5IEx0ZDET
MBEGA1UEAxMKRXJpYyBZb3VuZzEfMB0GCSqGSIb3DQEJARYQZWF5QG1pbmNvbS5v
ei5hdTBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDCLwdDF7Fu4DSiae/+3045nf73
V5OdRnICMXq4M0td4upwgC/ve7w+3q1OzObOpFgpuP1PEOsHGO48GrolDu4lAgMB
AAGgADANBgkqhkiG9w0BAQQFAANBAItCGg8qCPSoASvm3QUx/6PpreQclDO0bM2l
eacLlzSHBUvaSqapR/pHfHG2r9l6PuEr/rrYHo+ZrAraSyPhEBc=
-----END CERTIFICATE REQUEST-----
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
反馈
建议
客服
返回
顶部