Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
bbb8de09
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看板
提交
bbb8de09
编写于
9月 04, 2000
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Avoid abort() throughout the library, except when preprocessor
symbols for debugging are defined.
上级
5e386163
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
196 addition
and
75 deletion
+196
-75
CHANGES
CHANGES
+10
-0
Configure
Configure
+14
-14
TABLE
TABLE
+14
-14
apps/Makefile.ssl
apps/Makefile.ssl
+19
-0
crypto/bio/bio_err.c
crypto/bio/bio_err.c
+3
-3
crypto/bio/bio_lib.c
crypto/bio/bio_lib.c
+2
-0
crypto/bio/bss_conn.c
crypto/bio/bss_conn.c
+2
-2
crypto/bn/bn_asm.c
crypto/bn/bn_asm.c
+3
-8
crypto/bn/bn_lib.c
crypto/bn/bn_lib.c
+7
-7
crypto/bn/vms-helper.c
crypto/bn/vms-helper.c
+2
-0
crypto/conf/conf_api.c
crypto/conf/conf_api.c
+7
-7
crypto/objects/obj_dat.c
crypto/objects/obj_dat.c
+4
-2
crypto/objects/obj_dat.h
crypto/objects/obj_dat.h
+75
-5
crypto/x509/x509_lu.c
crypto/x509/x509_lu.c
+9
-4
ssl/s3_clnt.c
ssl/s3_clnt.c
+6
-1
ssl/s3_srvr.c
ssl/s3_srvr.c
+4
-1
ssl/ssl.h
ssl/ssl.h
+1
-1
ssl/ssl_lib.c
ssl/ssl_lib.c
+7
-6
util/libeay.num
util/libeay.num
+7
-0
未找到文件。
CHANGES
浏览文件 @
bbb8de09
...
...
@@ -4,6 +4,16 @@
Changes between 0.9.5a and 0.9.6 [xx XXX 2000]
*) Fix BN_mul_word for the case where the word is 0. (We have to use
BN_zero, we may not return a BIGNUM with an array consisting of
words set to zero.)
[Bodo Moeller]
*) Avoid calling abort() from within the library when problems are
detected, except if preprocessor symbols have been defined
(such as REF_CHECK, BN_DEBUG etc.).
[Bodo Moeller]
*) New openssl application 'rsautl'. This utility can be
used for low level RSA operations. DER public key
BIO/fp routines also added.
...
...
Configure
浏览文件 @
bbb8de09
...
...
@@ -104,15 +104,15 @@ my %table=(
# Our development configs
"purify", "purify gcc:-g -DPURIFY -Wall::(unknown):-lsocket -lnsl::::",
"debug", "gcc:-DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -ggdb -g2 -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror::(unknown):-lefence::::",
"debug-ben", "gcc:-DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -O2 -pedantic -Wall -Wshadow -Werror -pipe::(unknown):::::",
"debug-ben-debug", "gcc:-DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -g3 -O2 -pedantic -Wall -Wshadow -Werror -pipe::(unknown):::::",
"debug-ben-strict", "gcc:-DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DCONST_STRICT -O2 -Wall -Wshadow -Werror -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe::(unknown):::::",
"debug", "gcc:-DBN_DEBUG -DREF_CHECK -D
CONF_DEBUG -D
BN_CTX_DEBUG -DCRYPTO_MDEBUG -ggdb -g2 -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror::(unknown):-lefence::::",
"debug-ben", "gcc:-DBN_DEBUG -DREF_CHECK -D
CONF_DEBUG -D
BN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -O2 -pedantic -Wall -Wshadow -Werror -pipe::(unknown):::::",
"debug-ben-debug", "gcc:-DBN_DEBUG -DREF_CHECK -D
CONF_DEBUG -D
BN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -g3 -O2 -pedantic -Wall -Wshadow -Werror -pipe::(unknown):::::",
"debug-ben-strict", "gcc:-DBN_DEBUG -DREF_CHECK -D
CONF_DEBUG -D
BN_CTX_DEBUG -DCRYPTO_MDEBUG -DCONST_STRICT -O2 -Wall -Wshadow -Werror -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe::(unknown):::::",
"debug-rse","cc:-DTERMIOS -DL_ENDIAN -pipe -O -g -ggdb3 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
"debug-bodo", "gcc:-D
BIO_PAIR_DEBUG -DL_ENDIAN -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL
-g -m486 -pedantic -Wshadow -Wall::-D_REENTRANT::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
"debug-ulf", "gcc:-DL_ENDIAN -DREF_CHECK -DBN_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -g -O2 -m486 -Wall -Werror -Wshadow -pipe::-D_REENTRANT::${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
"debug-steve", "gcc:-DL_ENDIAN -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -O2 -m486 -pedantic -Wall -Werror -Wshadow -pipe::-D_REENTRANT::${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
"debug-levitte-linux-elf","gcc:-DUSE_ALLOCATING_PRINT -DRL_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DNO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -ggdb -g3 -m486 -pedantic -ansi -Wall -Wshadow -Wid-clash-31 -pipe::-D_REENTRANT:-ldl:::::::::::dlfcn",
"debug-bodo", "gcc:-D
L_ENDIAN -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DBIO_PAIR_DEBUG
-g -m486 -pedantic -Wshadow -Wall::-D_REENTRANT::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
"debug-ulf", "gcc:-DL_ENDIAN -DREF_CHECK -D
CONF_DEBUG -D
BN_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -g -O2 -m486 -Wall -Werror -Wshadow -pipe::-D_REENTRANT::${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
"debug-steve", "gcc:-DL_ENDIAN -DREF_CHECK -D
CONF_DEBUG -D
BN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -O2 -m486 -pedantic -Wall -Werror -Wshadow -pipe::-D_REENTRANT::${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
"debug-levitte-linux-elf","gcc:-DUSE_ALLOCATING_PRINT -DRL_DEBUG -DREF_CHECK -D
CONF_DEBUG -D
BN_CTX_DEBUG -DCRYPTO_MDEBUG -DNO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -ggdb -g3 -m486 -pedantic -ansi -Wall -Wshadow -Wid-clash-31 -pipe::-D_REENTRANT:-ldl:::::::::::dlfcn",
"dist", "cc:-O::(unknown):::::",
# Basic configs that should work on any (32 and less bit) box
...
...
@@ -135,8 +135,8 @@ my %table=(
# but keep the assembler modules.
"solaris-sparcv9-gcc27","gcc:-mv8 -O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus-gcc27.o:::asm/md5-sparcv8plus-gcc27.o::::::dlfcn:solaris-shared:-fPIC",
####
"debug-solaris-sparcv8-gcc","gcc:-D
REF_CHECK
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mv8 -Wall -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-fPIC",
"debug-solaris-sparcv9-gcc","gcc:-D
REF_CHECK
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mcpu=ultrasparc -Wall -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus.o:::::::::dlfcn:solaris-shared:-fPIC",
"debug-solaris-sparcv8-gcc","gcc:-D
BN_DEBUG -DREF_CHECK -DCONF_DEBUG
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mv8 -Wall -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-fPIC",
"debug-solaris-sparcv9-gcc","gcc:-D
BN_DEBUG -DREF_CHECK -DCONF_DEBUG
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mcpu=ultrasparc -Wall -DB_ENDIAN::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:asm/sparcv8plus.o:::::::::dlfcn:solaris-shared:-fPIC",
#### SPARC Solaris with Sun C setups
# DO NOT use /xO[34] on sparc with SC3.0. It is broken, and will not pass the tests
...
...
@@ -149,8 +149,8 @@ my %table=(
"solaris-sparcv9-cc","cc:-xtarget=ultra -xarch=v8plus -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK_LL DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn:solaris-shared:-KPIC",
"solaris64-sparcv9-cc","cc:-xtarget=ultra -xarch=v9 -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::asm/md5-sparcv9.o::::::dlfcn:solaris-shared:-KPIC",
####
"debug-solaris-sparcv8-cc","cc:-D
REF_CHECK
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xarch=v8 -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-KPIC",
"debug-solaris-sparcv9-cc","cc:-D
REF_CHECK
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xtarget=ultra -xarch=v8plus -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK_LL DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn:solaris-shared:-KPIC",
"debug-solaris-sparcv8-cc","cc:-D
BN_DEBUG -DREF_CHECK -DCONF_DEBUG
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xarch=v8 -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8.o:::::::::dlfcn:solaris-shared:-KPIC",
"debug-solaris-sparcv9-cc","cc:-D
BN_DEBUG -DREF_CHECK -DCONF_DEBUG
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xtarget=ultra -xarch=v8plus -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK_LL DES_PTR DES_RISC1 DES_UNROLL BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn:solaris-shared:-KPIC",
#### SPARC Linux setups
"linux-sparcv7","gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::",
...
...
@@ -277,8 +277,8 @@ my %table=(
# The intel boxes :-), It would be worth seeing if bsdi-gcc can use the
# bn86-elf.o file file since it is hand tweaked assembler.
"linux-elf", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall::-D_REENTRANT:-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC",
"debug-linux-elf","gcc:-D
REF_CHECK
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall::-D_REENTRANT:-lefence:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn",
"debug-linux-elf-noefence","gcc:-D
REF_CHECK
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall::-D_REENTRANT::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn",
"debug-linux-elf","gcc:-D
BN_DEBUG -DREF_CHECK -DCONF_DEBUG
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall::-D_REENTRANT:-lefence:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn",
"debug-linux-elf-noefence","gcc:-D
BN_DEBUG -DREF_CHECK -DCONF_DEBUG
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall::-D_REENTRANT::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn",
"linux-aout", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}",
"linux-mips", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::(unknown)::BN_LLONG:::",
"linux-ppc", "gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::BN_LLONG::",
...
...
TABLE
浏览文件 @
bbb8de09
...
...
@@ -682,7 +682,7 @@ $shared_cflag =
*** debug
$cc = gcc
$cflags = -DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -ggdb -g2 -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror
$cflags = -DBN_DEBUG -DREF_CHECK -D
CONF_DEBUG -D
BN_CTX_DEBUG -DCRYPTO_MDEBUG -ggdb -g2 -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror
$unistd =
$thread_cflag = (unknown)
$lflags = -lefence
...
...
@@ -702,7 +702,7 @@ $shared_cflag =
*** debug-ben
$cc = gcc
$cflags = -DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -O2 -pedantic -Wall -Wshadow -Werror -pipe
$cflags = -DBN_DEBUG -DREF_CHECK -D
CONF_DEBUG -D
BN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -O2 -pedantic -Wall -Wshadow -Werror -pipe
$unistd =
$thread_cflag = (unknown)
$lflags =
...
...
@@ -722,7 +722,7 @@ $shared_cflag =
*** debug-ben-debug
$cc = gcc
$cflags = -DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -g3 -O2 -pedantic -Wall -Wshadow -Werror -pipe
$cflags = -DBN_DEBUG -DREF_CHECK -D
CONF_DEBUG -D
BN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -g3 -O2 -pedantic -Wall -Wshadow -Werror -pipe
$unistd =
$thread_cflag = (unknown)
$lflags =
...
...
@@ -742,7 +742,7 @@ $shared_cflag =
*** debug-ben-strict
$cc = gcc
$cflags = -DBN_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DCONST_STRICT -O2 -Wall -Wshadow -Werror -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe
$cflags = -DBN_DEBUG -DREF_CHECK -D
CONF_DEBUG -D
BN_CTX_DEBUG -DCRYPTO_MDEBUG -DCONST_STRICT -O2 -Wall -Wshadow -Werror -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe
$unistd =
$thread_cflag = (unknown)
$lflags =
...
...
@@ -762,7 +762,7 @@ $shared_cflag =
*** debug-bodo
$cc = gcc
$cflags = -D
BIO_PAIR_DEBUG -DL_ENDIAN -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL
-g -m486 -pedantic -Wshadow -Wall
$cflags = -D
L_ENDIAN -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DBIO_PAIR_DEBUG
-g -m486 -pedantic -Wshadow -Wall
$unistd =
$thread_cflag = -D_REENTRANT
$lflags =
...
...
@@ -782,7 +782,7 @@ $shared_cflag =
*** debug-levitte-linux-elf
$cc = gcc
$cflags = -DUSE_ALLOCATING_PRINT -DRL_DEBUG -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DNO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -ggdb -g3 -m486 -pedantic -ansi -Wall -Wshadow -Wid-clash-31 -pipe
$cflags = -DUSE_ALLOCATING_PRINT -DRL_DEBUG -DREF_CHECK -D
CONF_DEBUG -D
BN_CTX_DEBUG -DCRYPTO_MDEBUG -DNO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -ggdb -g3 -m486 -pedantic -ansi -Wall -Wshadow -Wid-clash-31 -pipe
$unistd =
$thread_cflag = -D_REENTRANT
$lflags = -ldl
...
...
@@ -802,7 +802,7 @@ $shared_cflag =
*** debug-linux-elf
$cc = gcc
$cflags = -D
REF_CHECK
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall
$cflags = -D
BN_DEBUG -DREF_CHECK -DCONF_DEBUG
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall
$unistd =
$thread_cflag = -D_REENTRANT
$lflags = -lefence
...
...
@@ -822,7 +822,7 @@ $shared_cflag =
*** debug-linux-elf-noefence
$cc = gcc
$cflags = -D
REF_CHECK
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall
$cflags = -D
BN_DEBUG -DREF_CHECK -DCONF_DEBUG
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -m486 -Wall
$unistd =
$thread_cflag = -D_REENTRANT
$lflags =
...
...
@@ -862,7 +862,7 @@ $shared_cflag =
*** debug-solaris-sparcv8-cc
$cc = cc
$cflags = -D
REF_CHECK
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xarch=v8 -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W
$cflags = -D
BN_DEBUG -DREF_CHECK -DCONF_DEBUG
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xarch=v8 -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W
$unistd =
$thread_cflag = -D_REENTRANT
$lflags = -lsocket -lnsl -ldl
...
...
@@ -882,7 +882,7 @@ $shared_cflag = -KPIC
*** debug-solaris-sparcv8-gcc
$cc = gcc
$cflags = -D
REF_CHECK
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mv8 -Wall -DB_ENDIAN
$cflags = -D
BN_DEBUG -DREF_CHECK -DCONF_DEBUG
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mv8 -Wall -DB_ENDIAN
$unistd =
$thread_cflag = -D_REENTRANT
$lflags = -lsocket -lnsl -ldl
...
...
@@ -902,7 +902,7 @@ $shared_cflag = -fPIC
*** debug-solaris-sparcv9-cc
$cc = cc
$cflags = -D
REF_CHECK
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xtarget=ultra -xarch=v8plus -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC
$cflags = -D
BN_DEBUG -DREF_CHECK -DCONF_DEBUG
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -xtarget=ultra -xarch=v8plus -g -O -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W -DULTRASPARC
$unistd =
$thread_cflag = -D_REENTRANT
$lflags = -lsocket -lnsl -ldl
...
...
@@ -922,7 +922,7 @@ $shared_cflag = -KPIC
*** debug-solaris-sparcv9-gcc
$cc = gcc
$cflags = -D
REF_CHECK
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mcpu=ultrasparc -Wall -DB_ENDIAN
$cflags = -D
BN_DEBUG -DREF_CHECK -DCONF_DEBUG
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -O -g -mcpu=ultrasparc -Wall -DB_ENDIAN
$unistd =
$thread_cflag = -D_REENTRANT
$lflags = -lsocket -lnsl -ldl
...
...
@@ -942,7 +942,7 @@ $shared_cflag = -fPIC
*** debug-steve
$cc = gcc
$cflags = -DL_ENDIAN -DREF_CHECK -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -O2 -m486 -pedantic -Wall -Werror -Wshadow -pipe
$cflags = -DL_ENDIAN -DREF_CHECK -D
CONF_DEBUG -D
BN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -O2 -m486 -pedantic -Wall -Werror -Wshadow -pipe
$unistd =
$thread_cflag = -D_REENTRANT
$lflags =
...
...
@@ -962,7 +962,7 @@ $shared_cflag =
*** debug-ulf
$cc = gcc
$cflags = -DL_ENDIAN -DREF_CHECK -DBN_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -g -O2 -m486 -Wall -Werror -Wshadow -pipe
$cflags = -DL_ENDIAN -DREF_CHECK -D
CONF_DEBUG -D
BN_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -g -O2 -m486 -Wall -Werror -Wshadow -pipe
$unistd =
$thread_cflag = -D_REENTRANT
$lflags =
...
...
apps/Makefile.ssl
浏览文件 @
bbb8de09
...
...
@@ -628,6 +628,25 @@ rsa.o: ../include/openssl/ripemd.h ../include/openssl/rsa.h
rsa.o
:
../include/openssl/safestack.h ../include/openssl/sha.h
rsa.o
:
../include/openssl/stack.h ../include/openssl/x509.h
rsa.o
:
../include/openssl/x509_vfy.h apps.h
rsautl.o
:
../include/openssl/asn1.h ../include/openssl/bio.h
rsautl.o
:
../include/openssl/blowfish.h ../include/openssl/bn.h
rsautl.o
:
../include/openssl/buffer.h ../include/openssl/cast.h
rsautl.o
:
../include/openssl/crypto.h ../include/openssl/des.h
rsautl.o
:
../include/openssl/dh.h ../include/openssl/dsa.h
rsautl.o
:
../include/openssl/e_os.h ../include/openssl/e_os2.h
rsautl.o
:
../include/openssl/err.h ../include/openssl/evp.h
rsautl.o
:
../include/openssl/idea.h ../include/openssl/lhash.h
rsautl.o
:
../include/openssl/md2.h ../include/openssl/md4.h
rsautl.o
:
../include/openssl/md5.h ../include/openssl/mdc2.h
rsautl.o
:
../include/openssl/obj_mac.h ../include/openssl/objects.h
rsautl.o
:
../include/openssl/opensslconf.h ../include/openssl/opensslv.h
rsautl.o
:
../include/openssl/pem.h ../include/openssl/pem2.h
rsautl.o
:
../include/openssl/pkcs7.h ../include/openssl/rc2.h
rsautl.o
:
../include/openssl/rc4.h ../include/openssl/rc5.h
rsautl.o
:
../include/openssl/ripemd.h ../include/openssl/rsa.h
rsautl.o
:
../include/openssl/safestack.h ../include/openssl/sha.h
rsautl.o
:
../include/openssl/stack.h ../include/openssl/x509.h
rsautl.o
:
../include/openssl/x509_vfy.h apps.h
s_cb.o
:
../include/openssl/asn1.h ../include/openssl/bio.h
s_cb.o
:
../include/openssl/blowfish.h ../include/openssl/bn.h
s_cb.o
:
../include/openssl/buffer.h ../include/openssl/cast.h
...
...
crypto/bio/bio_err.c
浏览文件 @
bbb8de09
...
...
@@ -105,7 +105,7 @@ static ERR_STRING_DATA BIO_str_reasons[]=
{
BIO_R_BAD_HOSTNAME_LOOKUP
,
"bad hostname lookup"
},
{
BIO_R_BROKEN_PIPE
,
"broken pipe"
},
{
BIO_R_CONNECT_ERROR
,
"connect error"
},
{
BIO_R_EOF_ON_MEMORY_BIO
,
"
eof on memory bio
"
},
{
BIO_R_EOF_ON_MEMORY_BIO
,
"
EOF on memory BIO
"
},
{
BIO_R_ERROR_SETTING_NBIO
,
"error setting nbio"
},
{
BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET
,
"error setting nbio on accepted socket"
},
{
BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET
,
"error setting nbio on accept socket"
},
...
...
@@ -126,8 +126,8 @@ static ERR_STRING_DATA BIO_str_reasons[]=
{
BIO_R_UNABLE_TO_LISTEN_SOCKET
,
"unable to listen socket"
},
{
BIO_R_UNINITIALIZED
,
"uninitialized"
},
{
BIO_R_UNSUPPORTED_METHOD
,
"unsupported method"
},
{
BIO_R_WRITE_TO_READ_ONLY_BIO
,
"write to read only
bio
"
},
{
BIO_R_WSASTARTUP
,
"
wsas
tartup"
},
{
BIO_R_WRITE_TO_READ_ONLY_BIO
,
"write to read only
BIO
"
},
{
BIO_R_WSASTARTUP
,
"
WSAS
tartup"
},
{
0
,
NULL
}
};
...
...
crypto/bio/bio_lib.c
浏览文件 @
bbb8de09
...
...
@@ -206,7 +206,9 @@ int BIO_write(BIO *b, const void *in, int inl)
* determine this is the reference count which is now invalid since
* the memory has been free()ed.
*/
#ifdef REF_CHECK
if
(
b
->
references
<=
0
)
abort
();
#endif
if
(
cb
!=
NULL
)
/* && (b->references >= 1)) */
i
=
(
int
)
cb
(
b
,
BIO_CB_WRITE
|
BIO_CB_RETURN
,
in
,
inl
,
0L
,(
long
)
i
);
...
...
crypto/bio/bss_conn.c
浏览文件 @
bbb8de09
...
...
@@ -188,7 +188,7 @@ static int conn_state(BIO *b, BIO_CONNECT *c)
case
BIO_CONN_S_GET_PORT
:
if
(
c
->
param_port
==
NULL
)
{
abort
();
/* abort(); */
goto
exit_loop
;
}
else
if
(
BIO_get_port
(
c
->
param_port
,
&
c
->
port
)
<=
0
)
...
...
@@ -299,7 +299,7 @@ static int conn_state(BIO *b, BIO_CONNECT *c)
ret
=
1
;
goto
exit_loop
;
default:
abort
();
/* abort(); */
goto
exit_loop
;
}
...
...
crypto/bn/bn_asm.c
浏览文件 @
bbb8de09
...
...
@@ -227,7 +227,7 @@ BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
#else
/* Divide h
-
l by d and return the result. */
/* Divide h
,
l by d and return the result. */
/* I need to test this some more :-( */
BN_ULONG
bn_div_words
(
BN_ULONG
h
,
BN_ULONG
l
,
BN_ULONG
d
)
{
...
...
@@ -237,13 +237,8 @@ BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
if
(
d
==
0
)
return
(
BN_MASK2
);
i
=
BN_num_bits_word
(
d
);
if
((
i
!=
BN_BITS2
)
&&
(
h
>
(
BN_ULONG
)
1
<<
i
))
{
#if !defined(NO_STDIO) && !defined(WIN16)
fprintf
(
stderr
,
"Division would overflow (%d)
\n
"
,
i
);
#endif
abort
();
}
assert
((
i
==
BN_BITS2
)
||
(
h
>
(
BN_ULONG
)
1
<<
i
));
i
=
BN_BITS2
-
i
;
if
(
h
>=
d
)
h
-=
d
;
...
...
crypto/bn/bn_lib.c
浏览文件 @
bbb8de09
...
...
@@ -56,6 +56,12 @@
* [including the GNU Public Licence.]
*/
#ifndef BN_DEBUG
# undef NDEBUG
/* avoid conflicting definitions */
# define NDEBUG
#endif
#include <assert.h>
#include <stdio.h>
#include "cryptlib.h"
#include "bn_lcl.h"
...
...
@@ -244,14 +250,8 @@ int BN_num_bits(const BIGNUM *a)
if
(
a
->
top
==
0
)
return
(
0
);
l
=
a
->
d
[
a
->
top
-
1
];
assert
(
l
!=
0
);
i
=
(
a
->
top
-
1
)
*
BN_BITS2
;
if
(
l
==
0
)
{
#if !defined(NO_STDIO) && !defined(WIN16)
fprintf
(
stderr
,
"BAD TOP VALUE
\n
"
);
#endif
abort
();
}
return
(
i
+
BN_num_bits_word
(
l
));
}
...
...
crypto/bn/vms-helper.c
浏览文件 @
bbb8de09
...
...
@@ -59,8 +59,10 @@
bn_div_words_abort
(
int
i
)
{
#ifdef BN_DEBUG
#if !defined(NO_STDIO) && !defined(WIN16)
fprintf
(
stderr
,
"Division would overflow (%d)
\n
"
,
i
);
#endif
abort
();
#endif
}
crypto/conf/conf_api.c
浏览文件 @
bbb8de09
...
...
@@ -58,6 +58,12 @@
/* Part of the code in here was originally in conf.c, which is now removed */
#ifndef CONF_DEBUG
# undef NDEBUG
/* avoid conflicting definitions */
# define NDEBUG
#endif
#include <assert.h>
#include <openssl/conf.h>
#include <openssl/conf_api.h>
...
...
@@ -267,13 +273,7 @@ CONF_VALUE *_CONF_new_section(CONF *conf, char *section)
v
->
value
=
(
char
*
)
sk
;
vv
=
(
CONF_VALUE
*
)
lh_insert
(
conf
->
data
,
v
);
if
(
vv
!=
NULL
)
{
#if !defined(NO_STDIO) && !defined(WIN16)
fprintf
(
stderr
,
"internal fault
\n
"
);
#endif
abort
();
}
assert
(
vv
==
NULL
);
ok
=
1
;
err:
if
(
!
ok
)
...
...
crypto/objects/obj_dat.c
浏览文件 @
bbb8de09
...
...
@@ -134,7 +134,8 @@ static unsigned long add_hash(ADDED_OBJ *ca)
ret
=
a
->
nid
;
break
;
default:
abort
();
/* abort(); */
return
0
;
}
ret
&=
0x3fffffffL
;
ret
|=
ca
->
type
<<
30L
;
...
...
@@ -167,7 +168,8 @@ static int add_cmp(ADDED_OBJ *ca, ADDED_OBJ *cb)
case
ADDED_NID
:
return
(
a
->
nid
-
b
->
nid
);
default:
abort
();
/* abort(); */
return
0
;
}
return
(
1
);
/* should not get here */
}
...
...
crypto/objects/obj_dat.h
浏览文件 @
bbb8de09
...
...
@@ -61,12 +61,12 @@
* perl obj_dat.pl objects.h obj_dat.h
*/
#define NUM_NID 3
79
#define NUM_SN 3
78
#define NUM_LN 3
78
#define NUM_OBJ 3
52
#define NUM_NID 3
93
#define NUM_SN 3
92
#define NUM_LN 3
92
#define NUM_OBJ 3
66
static
unsigned
char
lvalues
[
28
38
]
=
{
static
unsigned
char
lvalues
[
28
96
]
=
{
0x00
,
/* [ 0] OBJ_undef */
0x2A
,
0x86
,
0x48
,
0x86
,
0xF7
,
0x0D
,
/* [ 1] OBJ_rsadsi */
0x2A
,
0x86
,
0x48
,
0x86
,
0xF7
,
0x0D
,
0x01
,
/* [ 7] OBJ_pkcs */
...
...
@@ -419,6 +419,20 @@ static unsigned char lvalues[2838]={
0x2B
,
0x0E
,
0x03
,
0x02
,
/* [2826] OBJ_algorithm */
0x2B
,
0x0E
,
0x03
,
0x02
,
0x0B
,
/* [2830] OBJ_rsaSignature */
0x55
,
0x08
,
/* [2835] OBJ_X500algorithms */
0x2B
,
/* [2837] OBJ_org */
0x2B
,
0x06
,
/* [2838] OBJ_dod */
0x2B
,
0x06
,
0x01
,
/* [2840] OBJ_iana */
0x2B
,
0x06
,
0x01
,
0x01
,
/* [2843] OBJ_Directory */
0x2B
,
0x06
,
0x01
,
0x02
,
/* [2847] OBJ_Management */
0x2B
,
0x06
,
0x01
,
0x03
,
/* [2851] OBJ_Experimental */
0x2B
,
0x06
,
0x01
,
0x04
,
/* [2855] OBJ_Private */
0x2B
,
0x06
,
0x01
,
0x05
,
/* [2859] OBJ_Security */
0x2B
,
0x06
,
0x01
,
0x06
,
/* [2863] OBJ_SNMPv2 */
0x2B
,
0x06
,
0x01
,
0x07
,
/* [2867] OBJ_Mail */
0x01
,
/* [2871] OBJ_Enterprises */
0xBA
,
0x82
,
0x58
,
/* [2872] OBJ_dcObject */
0x09
,
0x92
,
0x26
,
0x89
,
0x93
,
0xF2
,
0x2C
,
0x64
,
0x01
,
0x19
,
/* [2875] OBJ_domainComponent */
0x09
,
0x92
,
0x26
,
0x89
,
0x93
,
0xF2
,
0x2C
,
0x64
,
0x04
,
0x0D
,
/* [2885] OBJ_Domain */
};
static
ASN1_OBJECT
nid_objs
[
NUM_NID
]
=
{
...
...
@@ -1017,6 +1031,20 @@ static ASN1_OBJECT nid_objs[NUM_NID]={
{
"rsaSignature"
,
"rsaSignature"
,
NID_rsaSignature
,
5
,
&
(
lvalues
[
2830
]),
0
},
{
"X500algorithms"
,
"directory services - algorithms"
,
NID_X500algorithms
,
2
,
&
(
lvalues
[
2835
]),
0
},
{
"ORG"
,
"org"
,
NID_org
,
1
,
&
(
lvalues
[
2837
]),
0
},
{
"DOD"
,
"dod"
,
NID_dod
,
2
,
&
(
lvalues
[
2838
]),
0
},
{
"IANA"
,
"iana"
,
NID_iana
,
3
,
&
(
lvalues
[
2840
]),
0
},
{
"directory"
,
"Directory"
,
NID_Directory
,
4
,
&
(
lvalues
[
2843
]),
0
},
{
"mgmt"
,
"Management"
,
NID_Management
,
4
,
&
(
lvalues
[
2847
]),
0
},
{
"experimental"
,
"Experimental"
,
NID_Experimental
,
4
,
&
(
lvalues
[
2851
]),
0
},
{
"private"
,
"Private"
,
NID_Private
,
4
,
&
(
lvalues
[
2855
]),
0
},
{
"security"
,
"Security"
,
NID_Security
,
4
,
&
(
lvalues
[
2859
]),
0
},
{
"snmpv2"
,
"SNMPv2"
,
NID_SNMPv2
,
4
,
&
(
lvalues
[
2863
]),
0
},
{
"mail"
,
"Mail"
,
NID_Mail
,
4
,
&
(
lvalues
[
2867
]),
0
},
{
"enterprises"
,
"Enterprises"
,
NID_Enterprises
,
1
,
&
(
lvalues
[
2871
]),
0
},
{
"dcobject"
,
"dcObject"
,
NID_dcObject
,
3
,
&
(
lvalues
[
2872
]),
0
},
{
"DC"
,
"domainComponent"
,
NID_domainComponent
,
10
,
&
(
lvalues
[
2875
]),
0
},
{
"domain"
,
"Domain"
,
NID_Domain
,
10
,
&
(
lvalues
[
2885
]),
0
},
};
static
ASN1_OBJECT
*
sn_objs
[
NUM_SN
]
=
{
...
...
@@ -1034,6 +1062,7 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
&
(
nid_objs
[
141
]),
/* "CRLReason" */
&
(
nid_objs
[
367
]),
/* "CrlID" */
&
(
nid_objs
[
107
]),
/* "D" */
&
(
nid_objs
[
391
]),
/* "DC" */
&
(
nid_objs
[
31
]),
/* "DES-CBC" */
&
(
nid_objs
[
30
]),
/* "DES-CFB" */
&
(
nid_objs
[
29
]),
/* "DES-ECB" */
...
...
@@ -1047,6 +1076,7 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
&
(
nid_objs
[
63
]),
/* "DES-EDE3-OFB" */
&
(
nid_objs
[
45
]),
/* "DES-OFB" */
&
(
nid_objs
[
80
]),
/* "DESX-CBC" */
&
(
nid_objs
[
380
]),
/* "DOD" */
&
(
nid_objs
[
116
]),
/* "DSA" */
&
(
nid_objs
[
66
]),
/* "DSA-SHA" */
&
(
nid_objs
[
113
]),
/* "DSA-SHA1" */
...
...
@@ -1056,6 +1086,7 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
&
(
nid_objs
[
48
]),
/* "Email" */
&
(
nid_objs
[
99
]),
/* "G" */
&
(
nid_objs
[
101
]),
/* "I" */
&
(
nid_objs
[
381
]),
/* "IANA" */
&
(
nid_objs
[
34
]),
/* "IDEA-CBC" */
&
(
nid_objs
[
35
]),
/* "IDEA-CFB" */
&
(
nid_objs
[
36
]),
/* "IDEA-ECB" */
...
...
@@ -1073,6 +1104,7 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
&
(
nid_objs
[
17
]),
/* "O" */
&
(
nid_objs
[
178
]),
/* "OCSP" */
&
(
nid_objs
[
180
]),
/* "OCSPSigning" */
&
(
nid_objs
[
379
]),
/* "ORG" */
&
(
nid_objs
[
18
]),
/* "OU" */
&
(
nid_objs
[
9
]),
/* "PBE-MD2-DES" */
&
(
nid_objs
[
168
]),
/* "PBE-MD2-RC2-64" */
...
...
@@ -1153,10 +1185,15 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
&
(
nid_objs
[
153
]),
/* "crlBag" */
&
(
nid_objs
[
103
]),
/* "crlDistributionPoints" */
&
(
nid_objs
[
88
]),
/* "crlNumber" */
&
(
nid_objs
[
390
]),
/* "dcobject" */
&
(
nid_objs
[
140
]),
/* "deltaCRL" */
&
(
nid_objs
[
28
]),
/* "dhKeyAgreement" */
&
(
nid_objs
[
382
]),
/* "directory" */
&
(
nid_objs
[
174
]),
/* "dnQualifier" */
&
(
nid_objs
[
392
]),
/* "domain" */
&
(
nid_objs
[
132
]),
/* "emailProtection" */
&
(
nid_objs
[
389
]),
/* "enterprises" */
&
(
nid_objs
[
384
]),
/* "experimental" */
&
(
nid_objs
[
172
]),
/* "extReq" */
&
(
nid_objs
[
56
]),
/* "extendedCertificateAttributes" */
&
(
nid_objs
[
126
]),
/* "extendedKeyUsage" */
...
...
@@ -1337,8 +1374,10 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
&
(
nid_objs
[
150
]),
/* "keyBag" */
&
(
nid_objs
[
83
]),
/* "keyUsage" */
&
(
nid_objs
[
157
]),
/* "localKeyID" */
&
(
nid_objs
[
388
]),
/* "mail" */
&
(
nid_objs
[
182
]),
/* "member-body" */
&
(
nid_objs
[
51
]),
/* "messageDigest" */
&
(
nid_objs
[
383
]),
/* "mgmt" */
&
(
nid_objs
[
136
]),
/* "msCTLSign" */
&
(
nid_objs
[
135
]),
/* "msCodeCom" */
&
(
nid_objs
[
134
]),
/* "msCodeInd" */
...
...
@@ -1374,6 +1413,7 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
&
(
nid_objs
[
22
]),
/* "pkcs7-signedData" */
&
(
nid_objs
[
151
]),
/* "pkcs8ShroudedKeyBag" */
&
(
nid_objs
[
47
]),
/* "pkcs9" */
&
(
nid_objs
[
385
]),
/* "private" */
&
(
nid_objs
[
84
]),
/* "privateKeyUsagePeriod" */
&
(
nid_objs
[
286
]),
/* "qcStatements" */
&
(
nid_objs
[
6
]),
/* "rsaEncryption" */
...
...
@@ -1385,9 +1425,11 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={
&
(
nid_objs
[
292
]),
/* "sbqp-routerIdentifier" */
&
(
nid_objs
[
159
]),
/* "sdsiCertificate" */
&
(
nid_objs
[
154
]),
/* "secretBag" */
&
(
nid_objs
[
386
]),
/* "security" */
&
(
nid_objs
[
129
]),
/* "serverAuth" */
&
(
nid_objs
[
371
]),
/* "serviceLocator" */
&
(
nid_objs
[
52
]),
/* "signingTime" */
&
(
nid_objs
[
387
]),
/* "snmpv2" */
&
(
nid_objs
[
85
]),
/* "subjectAltName" */
&
(
nid_objs
[
82
]),
/* "subjectKeyIdentifier" */
&
(
nid_objs
[
293
]),
/* "textNotice" */
...
...
@@ -1408,7 +1450,11 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
&
(
nid_objs
[
285
]),
/* "Biometric Info" */
&
(
nid_objs
[
179
]),
/* "CA Issuers" */
&
(
nid_objs
[
131
]),
/* "Code Signing" */
&
(
nid_objs
[
382
]),
/* "Directory" */
&
(
nid_objs
[
392
]),
/* "Domain" */
&
(
nid_objs
[
132
]),
/* "E-mail Protection" */
&
(
nid_objs
[
389
]),
/* "Enterprises" */
&
(
nid_objs
[
384
]),
/* "Experimental" */
&
(
nid_objs
[
372
]),
/* "Extended OCSP Status" */
&
(
nid_objs
[
172
]),
/* "Extension Request" */
&
(
nid_objs
[
294
]),
/* "IPSec End System" */
...
...
@@ -1417,6 +1463,8 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
&
(
nid_objs
[
182
]),
/* "ISO Member Body" */
&
(
nid_objs
[
183
]),
/* "ISO US Member Body" */
&
(
nid_objs
[
142
]),
/* "Invalidity Date" */
&
(
nid_objs
[
388
]),
/* "Mail" */
&
(
nid_objs
[
383
]),
/* "Management" */
&
(
nid_objs
[
135
]),
/* "Microsoft Commercial Code Signing" */
&
(
nid_objs
[
138
]),
/* "Microsoft Encrypted File System" */
&
(
nid_objs
[
171
]),
/* "Microsoft Extension Request" */
...
...
@@ -1448,10 +1496,13 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
&
(
nid_objs
[
127
]),
/* "PKIX" */
&
(
nid_objs
[
164
]),
/* "Policy Qualifier CPS" */
&
(
nid_objs
[
165
]),
/* "Policy Qualifier User Notice" */
&
(
nid_objs
[
385
]),
/* "Private" */
&
(
nid_objs
[
1
]),
/* "RSA Data Security, Inc." */
&
(
nid_objs
[
2
]),
/* "RSA Data Security, Inc. PKCS" */
&
(
nid_objs
[
188
]),
/* "S/MIME" */
&
(
nid_objs
[
167
]),
/* "S/MIME Capabilities" */
&
(
nid_objs
[
387
]),
/* "SNMPv2" */
&
(
nid_objs
[
386
]),
/* "Security" */
&
(
nid_objs
[
143
]),
/* "Strong Extranet ID" */
&
(
nid_objs
[
130
]),
/* "TLS Web Client Authentication" */
&
(
nid_objs
[
129
]),
/* "TLS Web Server Authentication" */
...
...
@@ -1493,6 +1544,7 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
&
(
nid_objs
[
53
]),
/* "countersignature" */
&
(
nid_objs
[
14
]),
/* "countryName" */
&
(
nid_objs
[
153
]),
/* "crlBag" */
&
(
nid_objs
[
390
]),
/* "dcObject" */
&
(
nid_objs
[
31
]),
/* "des-cbc" */
&
(
nid_objs
[
30
]),
/* "des-cfb" */
&
(
nid_objs
[
29
]),
/* "des-ecb" */
...
...
@@ -1511,6 +1563,8 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
&
(
nid_objs
[
11
]),
/* "directory services (X.500)" */
&
(
nid_objs
[
378
]),
/* "directory services - algorithms" */
&
(
nid_objs
[
174
]),
/* "dnQualifier" */
&
(
nid_objs
[
380
]),
/* "dod" */
&
(
nid_objs
[
391
]),
/* "domainComponent" */
&
(
nid_objs
[
116
]),
/* "dsaEncryption" */
&
(
nid_objs
[
67
]),
/* "dsaEncryption-old" */
&
(
nid_objs
[
66
]),
/* "dsaWithSHA" */
...
...
@@ -1522,6 +1576,7 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
&
(
nid_objs
[
156
]),
/* "friendlyName" */
&
(
nid_objs
[
99
]),
/* "givenName" */
&
(
nid_objs
[
163
]),
/* "hmacWithSHA1" */
&
(
nid_objs
[
381
]),
/* "iana" */
&
(
nid_objs
[
266
]),
/* "id-aca" */
&
(
nid_objs
[
355
]),
/* "id-aca-accessIdentity" */
&
(
nid_objs
[
354
]),
/* "id-aca-authenticationInfo" */
...
...
@@ -1707,6 +1762,7 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
&
(
nid_objs
[
51
]),
/* "messageDigest" */
&
(
nid_objs
[
173
]),
/* "name" */
&
(
nid_objs
[
369
]),
/* "noCheck" */
&
(
nid_objs
[
379
]),
/* "org" */
&
(
nid_objs
[
17
]),
/* "organizationName" */
&
(
nid_objs
[
18
]),
/* "organizationalUnitName" */
&
(
nid_objs
[
374
]),
/* "path" */
...
...
@@ -1783,13 +1839,17 @@ static ASN1_OBJECT *ln_objs[NUM_LN]={
static
ASN1_OBJECT
*
obj_objs
[
NUM_OBJ
]
=
{
&
(
nid_objs
[
0
]),
/* OBJ_undef 0 */
&
(
nid_objs
[
389
]),
/* OBJ_Enterprises 1 */
&
(
nid_objs
[
181
]),
/* OBJ_iso 1 */
&
(
nid_objs
[
182
]),
/* OBJ_member_body 1 2 */
&
(
nid_objs
[
379
]),
/* OBJ_org 1 3 */
&
(
nid_objs
[
11
]),
/* OBJ_X500 2 5 */
&
(
nid_objs
[
380
]),
/* OBJ_dod 1 3 6 */
&
(
nid_objs
[
12
]),
/* OBJ_X509 2 5 4 */
&
(
nid_objs
[
378
]),
/* OBJ_X500algorithms 2 5 8 */
&
(
nid_objs
[
81
]),
/* OBJ_id_ce 2 5 29 */
&
(
nid_objs
[
183
]),
/* OBJ_ISO_US 1 2 840 */
&
(
nid_objs
[
381
]),
/* OBJ_iana 1 3 6 1 */
&
(
nid_objs
[
13
]),
/* OBJ_commonName 2 5 4 3 */
&
(
nid_objs
[
100
]),
/* OBJ_surname 2 5 4 4 */
&
(
nid_objs
[
105
]),
/* OBJ_serialNumber 2 5 4 5 */
...
...
@@ -1819,6 +1879,14 @@ static ASN1_OBJECT *obj_objs[NUM_OBJ]={
&
(
nid_objs
[
89
]),
/* OBJ_certificate_policies 2 5 29 32 */
&
(
nid_objs
[
90
]),
/* OBJ_authority_key_identifier 2 5 29 35 */
&
(
nid_objs
[
126
]),
/* OBJ_ext_key_usage 2 5 29 37 */
&
(
nid_objs
[
390
]),
/* OBJ_dcObject 1466 344 */
&
(
nid_objs
[
382
]),
/* OBJ_Directory 1 3 6 1 1 */
&
(
nid_objs
[
383
]),
/* OBJ_Management 1 3 6 1 2 */
&
(
nid_objs
[
384
]),
/* OBJ_Experimental 1 3 6 1 3 */
&
(
nid_objs
[
385
]),
/* OBJ_Private 1 3 6 1 4 */
&
(
nid_objs
[
386
]),
/* OBJ_Security 1 3 6 1 5 */
&
(
nid_objs
[
387
]),
/* OBJ_SNMPv2 1 3 6 1 6 */
&
(
nid_objs
[
388
]),
/* OBJ_Mail 1 3 6 1 7 */
&
(
nid_objs
[
376
]),
/* OBJ_algorithm 1 3 14 3 2 */
&
(
nid_objs
[
19
]),
/* OBJ_rsa 2 5 8 1 1 */
&
(
nid_objs
[
96
]),
/* OBJ_mdc2WithRSA 2 5 8 3 100 */
...
...
@@ -2044,6 +2112,8 @@ static ASN1_OBJECT *obj_objs[NUM_OBJ]={
&
(
nid_objs
[
78
]),
/* OBJ_netscape_comment 2 16 840 1 113730 1 13 */
&
(
nid_objs
[
79
]),
/* OBJ_netscape_cert_sequence 2 16 840 1 113730 2 5 */
&
(
nid_objs
[
139
]),
/* OBJ_ns_sgc 2 16 840 1 113730 4 1 */
&
(
nid_objs
[
391
]),
/* OBJ_domainComponent 0 9 2342 19200300 100 1 25 */
&
(
nid_objs
[
392
]),
/* OBJ_Domain 0 9 2342 19200300 100 4 13 */
&
(
nid_objs
[
189
]),
/* OBJ_id_smime_mod 1 2 840 113549 1 9 16 0 */
&
(
nid_objs
[
190
]),
/* OBJ_id_smime_ct 1 2 840 113549 1 9 16 1 */
&
(
nid_objs
[
191
]),
/* OBJ_id_smime_aa 1 2 840 113549 1 9 16 2 */
...
...
crypto/x509/x509_lu.c
浏览文件 @
bbb8de09
...
...
@@ -168,7 +168,8 @@ static unsigned long x509_object_hash(X509_OBJECT *a)
h
=
X509_NAME_hash
(
a
->
data
.
crl
->
crl
->
issuer
);
break
;
default:
abort
();
/* abort(); */
return
0
;
}
return
(
h
);
}
...
...
@@ -188,7 +189,8 @@ static int x509_object_cmp(X509_OBJECT *a, X509_OBJECT *b)
ret
=
X509_CRL_cmp
(
a
->
data
.
crl
,
b
->
data
.
crl
);
break
;
default:
abort
();
/* abort(); */
return
0
;
}
return
(
ret
);
}
...
...
@@ -221,7 +223,9 @@ static void cleanup(X509_OBJECT *a)
X509_CRL_free
(
a
->
data
.
crl
);
}
else
abort
();
{
/* abort(); */
}
OPENSSL_free
(
a
);
}
...
...
@@ -374,7 +378,8 @@ X509_OBJECT *X509_OBJECT_retrieve_by_subject(LHASH *h, int type,
crl_info_s
.
issuer
=
name
;
break
;
default:
abort
();
/* abort(); */
return
NULL
;
}
tmp
=
(
X509_OBJECT
*
)
lh_retrieve
(
h
,
&
stmp
);
...
...
ssl/s3_clnt.c
浏览文件 @
bbb8de09
...
...
@@ -142,7 +142,12 @@ int ssl3_connect(SSL *s)
if
(
cb
!=
NULL
)
cb
(
s
,
SSL_CB_HANDSHAKE_START
,
1
);
if
((
s
->
version
&
0xff00
)
!=
0x0300
)
abort
();
{
SSLerr
(
SSL_F_SSL3_CONNECT
,
SSL_R_INTERNAL_ERROR
);
ret
=
-
1
;
goto
end
;
}
/* s->version=SSL3_VERSION; */
s
->
type
=
SSL_ST_CONNECT
;
...
...
ssl/s3_srvr.c
浏览文件 @
bbb8de09
...
...
@@ -153,7 +153,10 @@ int ssl3_accept(SSL *s)
if
(
cb
!=
NULL
)
cb
(
s
,
SSL_CB_HANDSHAKE_START
,
1
);
if
((
s
->
version
>>
8
)
!=
3
)
abort
();
{
SSLerr
(
SSL_F_SSL3_ACCEPT
,
SSL_R_INTERNAL_ERROR
);
return
-
1
;
}
s
->
type
=
SSL_ST_ACCEPT
;
if
(
s
->
init_buf
==
NULL
)
...
...
ssl/ssl.h
浏览文件 @
bbb8de09
...
...
@@ -553,7 +553,7 @@ struct ssl_st
#ifndef NO_BIO
BIO
*
rbio
;
/* used by SSL_read */
BIO
*
wbio
;
/* used by SSL_write */
BIO
*
bbio
;
/* used during session-id reuse to concat
i
nate
BIO
*
bbio
;
/* used during session-id reuse to concat
e
nate
* messages */
#else
char
*
rbio
;
/* used by SSL_read */
...
...
ssl/ssl_lib.c
浏览文件 @
bbb8de09
...
...
@@ -58,6 +58,8 @@
* [including the GNU Public Licence.]
*/
#include <assert.h>
#include <stdio.h>
#include <openssl/objects.h>
#include <openssl/lhash.h>
...
...
@@ -1851,12 +1853,11 @@ void ssl_free_wbio_buffer(SSL *s)
if
(
s
->
bbio
==
s
->
wbio
)
{
/* remove buffering */
under
=
BIO_pop
(
s
->
wbio
);
if
(
under
!=
NULL
)
s
->
wbio
=
under
;
else
abort
();
/* ok */
}
s
->
wbio
=
BIO_pop
(
s
->
wbio
);
#ifdef REF_CHECK
/* not the usual REF_CHECK, but this avoids adding one more preprocessor symbol */
assert
(
s
->
wbio
!=
NULL
);
#endif
}
BIO_free
(
s
->
bbio
);
s
->
bbio
=
NULL
;
}
...
...
util/libeay.num
浏览文件 @
bbb8de09
...
...
@@ -1839,3 +1839,10 @@ MD4_Final 2435
MD4_Update 2436
MD4_Init 2437
EVP_md4 2438
i2d_PUBKEY_bio 2439
i2d_PUBKEY_fp 2440
d2i_PUBKEY_bio 2441
ASN1_STRING_to_UTF8 2442
BIO_vprintf 2443
BIO_vsnprintf 2444
d2i_PUBKEY_fp 2445
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录