Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
b5929507
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,发现更多精彩内容 >>
提交
b5929507
编写于
4月 27, 1999
作者:
U
Ulf Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update NO_* macros.
上级
61f217ee
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
26 addition
and
27 deletion
+26
-27
apps/enc.c
apps/enc.c
+4
-4
apps/pkcs12.c
apps/pkcs12.c
+1
-0
apps/progs.h
apps/progs.h
+5
-5
apps/progs.pl
apps/progs.pl
+1
-1
crypto/crypto.c
crypto/crypto.c
+6
-4
crypto/evp/c_all.c
crypto/evp/c_all.c
+3
-3
crypto/evp/e_cbc_bf.c
crypto/evp/e_cbc_bf.c
+1
-2
crypto/evp/e_cfb_bf.c
crypto/evp/e_cfb_bf.c
+1
-2
crypto/evp/e_ecb_bf.c
crypto/evp/e_ecb_bf.c
+1
-2
crypto/evp/e_ofb_bf.c
crypto/evp/e_ofb_bf.c
+1
-2
util/mk1mf.pl
util/mk1mf.pl
+2
-2
未找到文件。
apps/enc.c
浏览文件 @
b5929507
...
@@ -232,7 +232,7 @@ bad:
...
@@ -232,7 +232,7 @@ bad:
#ifndef NO_RC4
#ifndef NO_RC4
BIO_printf
(
bio_err
,
"rc2 :128 bit key RC2 encryption
\n
"
);
BIO_printf
(
bio_err
,
"rc2 :128 bit key RC2 encryption
\n
"
);
#endif
#endif
#ifndef NO_B
LOWFISH
#ifndef NO_B
F
BIO_printf
(
bio_err
,
"bf :128 bit key BlowFish encryption
\n
"
);
BIO_printf
(
bio_err
,
"bf :128 bit key BlowFish encryption
\n
"
);
#endif
#endif
#ifndef NO_RC4
#ifndef NO_RC4
...
@@ -270,19 +270,19 @@ bad:
...
@@ -270,19 +270,19 @@ bad:
LN_rc2_cfb64
,
LN_rc2_ofb64
);
LN_rc2_cfb64
,
LN_rc2_ofb64
);
BIO_printf
(
bio_err
,
" -%-4s (%s)
\n
"
,
"rc2"
,
LN_rc2_cbc
);
BIO_printf
(
bio_err
,
" -%-4s (%s)
\n
"
,
"rc2"
,
LN_rc2_cbc
);
#endif
#endif
#ifndef NO_B
LOWFISH
#ifndef NO_B
F
BIO_printf
(
bio_err
,
" -%-12s -%-12s -%-12s -%-12s"
,
BIO_printf
(
bio_err
,
" -%-12s -%-12s -%-12s -%-12s"
,
LN_bf_ecb
,
LN_bf_cbc
,
LN_bf_ecb
,
LN_bf_cbc
,
LN_bf_cfb64
,
LN_bf_ofb64
);
LN_bf_cfb64
,
LN_bf_ofb64
);
BIO_printf
(
bio_err
,
" -%-4s (%s)
\n
"
,
"bf"
,
LN_bf_cbc
);
BIO_printf
(
bio_err
,
" -%-4s (%s)
\n
"
,
"bf"
,
LN_bf_cbc
);
#endif
#endif
#ifndef NO_B
LOWFISH
#ifndef NO_B
F
BIO_printf
(
bio_err
,
" -%-12s -%-12s -%-12s -%-12s"
,
BIO_printf
(
bio_err
,
" -%-12s -%-12s -%-12s -%-12s"
,
LN_cast5_ecb
,
LN_cast5_cbc
,
LN_cast5_ecb
,
LN_cast5_cbc
,
LN_cast5_cfb64
,
LN_cast5_ofb64
);
LN_cast5_cfb64
,
LN_cast5_ofb64
);
BIO_printf
(
bio_err
,
" -%-4s (%s)
\n
"
,
"cast"
,
LN_cast5_cbc
);
BIO_printf
(
bio_err
,
" -%-4s (%s)
\n
"
,
"cast"
,
LN_cast5_cbc
);
#endif
#endif
#ifndef NO_B
LOWFISH
#ifndef NO_B
F
BIO_printf
(
bio_err
,
" -%-12s -%-12s -%-12s -%-12s"
,
BIO_printf
(
bio_err
,
" -%-12s -%-12s -%-12s -%-12s"
,
LN_rc5_ecb
,
LN_rc5_cbc
,
LN_rc5_ecb
,
LN_rc5_cbc
,
LN_rc5_cfb64
,
LN_rc5_ofb64
);
LN_rc5_cfb64
,
LN_rc5_ofb64
);
...
...
apps/pkcs12.c
浏览文件 @
b5929507
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <openssl/des.h>
#include <openssl/pem.h>
#include <openssl/pem.h>
#include <openssl/err.h>
#include <openssl/err.h>
#include <openssl/pkcs12.h>
#include <openssl/pkcs12.h>
...
...
apps/progs.h
浏览文件 @
b5929507
...
@@ -115,7 +115,7 @@ FUNCTION functions[] = {
...
@@ -115,7 +115,7 @@ FUNCTION functions[] = {
#ifndef NO_RC2
#ifndef NO_RC2
{
FUNC_TYPE_CIPHER
,
"rc2"
,
enc_main
},
{
FUNC_TYPE_CIPHER
,
"rc2"
,
enc_main
},
#endif
#endif
#ifndef NO_B
LOWFISH
#ifndef NO_B
F
{
FUNC_TYPE_CIPHER
,
"bf"
,
enc_main
},
{
FUNC_TYPE_CIPHER
,
"bf"
,
enc_main
},
#endif
#endif
#ifndef NO_CAST
#ifndef NO_CAST
...
@@ -184,16 +184,16 @@ FUNCTION functions[] = {
...
@@ -184,16 +184,16 @@ FUNCTION functions[] = {
#ifndef NO_RC2
#ifndef NO_RC2
{
FUNC_TYPE_CIPHER
,
"rc2-ofb"
,
enc_main
},
{
FUNC_TYPE_CIPHER
,
"rc2-ofb"
,
enc_main
},
#endif
#endif
#ifndef NO_B
LOWFISH
#ifndef NO_B
F
{
FUNC_TYPE_CIPHER
,
"bf-cbc"
,
enc_main
},
{
FUNC_TYPE_CIPHER
,
"bf-cbc"
,
enc_main
},
#endif
#endif
#ifndef NO_B
LOWFISH
#ifndef NO_B
F
{
FUNC_TYPE_CIPHER
,
"bf-ecb"
,
enc_main
},
{
FUNC_TYPE_CIPHER
,
"bf-ecb"
,
enc_main
},
#endif
#endif
#ifndef NO_B
LOWFISH
#ifndef NO_B
F
{
FUNC_TYPE_CIPHER
,
"bf-cfb"
,
enc_main
},
{
FUNC_TYPE_CIPHER
,
"bf-cfb"
,
enc_main
},
#endif
#endif
#ifndef NO_B
LOWFISH
#ifndef NO_B
F
{
FUNC_TYPE_CIPHER
,
"bf-ofb"
,
enc_main
},
{
FUNC_TYPE_CIPHER
,
"bf-ofb"
,
enc_main
},
#endif
#endif
#ifndef NO_CAST
#ifndef NO_CAST
...
...
apps/progs.pl
浏览文件 @
b5929507
...
@@ -66,7 +66,7 @@ foreach (
...
@@ -66,7 +66,7 @@ foreach (
elsif
(
$_
=~
/idea/
)
{
$t
=
"
#ifndef NO_IDEA
\n
${t}
#endif
\n
";
}
elsif
(
$_
=~
/idea/
)
{
$t
=
"
#ifndef NO_IDEA
\n
${t}
#endif
\n
";
}
elsif
(
$_
=~
/rc4/
)
{
$t
=
"
#ifndef NO_RC4
\n
${t}
#endif
\n
";
}
elsif
(
$_
=~
/rc4/
)
{
$t
=
"
#ifndef NO_RC4
\n
${t}
#endif
\n
";
}
elsif
(
$_
=~
/rc2/
)
{
$t
=
"
#ifndef NO_RC2
\n
${t}
#endif
\n
";
}
elsif
(
$_
=~
/rc2/
)
{
$t
=
"
#ifndef NO_RC2
\n
${t}
#endif
\n
";
}
elsif
(
$_
=~
/bf/
)
{
$t
=
"
#ifndef NO_B
LOWFISH
\n
${t}
#endif
\n
";
}
elsif
(
$_
=~
/bf/
)
{
$t
=
"
#ifndef NO_B
F
\n
${t}
#endif
\n
";
}
elsif
(
$_
=~
/cast/
)
{
$t
=
"
#ifndef NO_CAST
\n
${t}
#endif
\n
";
}
elsif
(
$_
=~
/cast/
)
{
$t
=
"
#ifndef NO_CAST
\n
${t}
#endif
\n
";
}
elsif
(
$_
=~
/rc5/
)
{
$t
=
"
#ifndef NO_RC5
\n
${t}
#endif
\n
";
}
elsif
(
$_
=~
/rc5/
)
{
$t
=
"
#ifndef NO_RC5
\n
${t}
#endif
\n
";
}
print
$t
;
print
$t
;
...
...
crypto/crypto.c
浏览文件 @
b5929507
...
@@ -361,7 +361,7 @@
...
@@ -361,7 +361,7 @@
#include "evp/e_ecb_r2.c"
#include "evp/e_ecb_r2.c"
#include "evp/e_ofb_r2.c"
#include "evp/e_ofb_r2.c"
#endif
#endif
#ifndef NO_B
LOWFISH
#ifndef NO_B
F
#include "evp/e_cbc_bf.c"
#include "evp/e_cbc_bf.c"
#include "evp/e_cfb_bf.c"
#include "evp/e_cfb_bf.c"
#include "evp/e_ecb_bf.c"
#include "evp/e_ecb_bf.c"
...
@@ -403,7 +403,7 @@
...
@@ -403,7 +403,7 @@
#endif
#endif
#ifdef CRYPTO_BLOWFISH_SUBSET
#ifdef CRYPTO_BLOWFISH_SUBSET
#ifndef NO_B
LOWFISH
#ifndef NO_B
F
#include "bf/bf_cfb64.c"
#include "bf/bf_cfb64.c"
#include "bf/bf_ecb.c"
#include "bf/bf_ecb.c"
#ifndef BF_ASM
#ifndef BF_ASM
...
@@ -505,6 +505,7 @@
...
@@ -505,6 +505,7 @@
#endif
#endif
#endif
#endif
#ifndef NO_SHA
#ifdef CRYPTO_SHA1_SUBSET
#ifdef CRYPTO_SHA1_SUBSET
#ifndef NO_SHA1
#ifndef NO_SHA1
#include "sha/sha1_one.c"
#include "sha/sha1_one.c"
...
@@ -515,14 +516,15 @@
...
@@ -515,14 +516,15 @@
#endif
#endif
#ifdef CRYPTO_SHA_SUBSET
#ifdef CRYPTO_SHA_SUBSET
#ifndef NO_SHA
#ifndef NO_SHA
0
#include "evp/m_dss.c"
#include "evp/m_dss.c"
#include "sha/sha_dgst.c"
#include "sha/sha_dgst.c"
#include "sha/sha_one.c"
#include "sha/sha_one.c"
#include "evp/m_sha.c"
#include "evp/m_sha.c"
#endif
#endif
#endif
#endif
#endif
#ifdef CRYPTO_STACK_SUBSET
#ifdef CRYPTO_STACK_SUBSET
#include "stack/stack.c"
#include "stack/stack.c"
#endif
#endif
...
...
crypto/evp/c_all.c
浏览文件 @
b5929507
...
@@ -121,7 +121,7 @@ void SSLeay_add_all_ciphers(void)
...
@@ -121,7 +121,7 @@ void SSLeay_add_all_ciphers(void)
EVP_add_cipher_alias
(
SN_rc2_cbc
,
"rc2"
);
EVP_add_cipher_alias
(
SN_rc2_cbc
,
"rc2"
);
#endif
#endif
#ifndef NO_B
LOWFISH
#ifndef NO_B
F
EVP_add_cipher
(
EVP_bf_ecb
());
EVP_add_cipher
(
EVP_bf_ecb
());
EVP_add_cipher
(
EVP_bf_cfb
());
EVP_add_cipher
(
EVP_bf_cfb
());
EVP_add_cipher
(
EVP_bf_ofb
());
EVP_add_cipher
(
EVP_bf_ofb
());
...
@@ -169,7 +169,7 @@ void SSLeay_add_all_digests(void)
...
@@ -169,7 +169,7 @@ void SSLeay_add_all_digests(void)
EVP_add_digest
(
EVP_dss
());
EVP_add_digest
(
EVP_dss
());
#endif
#endif
#endif
#endif
#ifndef NO_SHA
1
#ifndef NO_SHA
EVP_add_digest
(
EVP_sha1
());
EVP_add_digest
(
EVP_sha1
());
EVP_add_digest_alias
(
SN_sha1
,
"ssl3-sha1"
);
EVP_add_digest_alias
(
SN_sha1
,
"ssl3-sha1"
);
EVP_add_digest_alias
(
SN_sha1WithRSAEncryption
,
SN_sha1WithRSA
);
EVP_add_digest_alias
(
SN_sha1WithRSAEncryption
,
SN_sha1WithRSA
);
...
@@ -183,7 +183,7 @@ void SSLeay_add_all_digests(void)
...
@@ -183,7 +183,7 @@ void SSLeay_add_all_digests(void)
#if !defined(NO_MDC2) && !defined(NO_DES)
#if !defined(NO_MDC2) && !defined(NO_DES)
EVP_add_digest
(
EVP_mdc2
());
EVP_add_digest
(
EVP_mdc2
());
#endif
#endif
#ifndef NO_R
MD160
#ifndef NO_R
IPEMD
EVP_add_digest
(
EVP_ripemd160
());
EVP_add_digest
(
EVP_ripemd160
());
EVP_add_digest_alias
(
SN_ripemd160
,
"ripemd"
);
EVP_add_digest_alias
(
SN_ripemd160
,
"ripemd"
);
EVP_add_digest_alias
(
SN_ripemd160
,
"rmd160"
);
EVP_add_digest_alias
(
SN_ripemd160
,
"rmd160"
);
...
...
crypto/evp/e_cbc_bf.c
浏览文件 @
b5929507
...
@@ -56,8 +56,7 @@
...
@@ -56,8 +56,7 @@
* [including the GNU Public Licence.]
* [including the GNU Public Licence.]
*/
*/
#ifndef NO_BLOWFISH
#ifndef NO_BF
#include <stdio.h>
#include <stdio.h>
#include "cryptlib.h"
#include "cryptlib.h"
#include <openssl/evp.h>
#include <openssl/evp.h>
...
...
crypto/evp/e_cfb_bf.c
浏览文件 @
b5929507
...
@@ -56,8 +56,7 @@
...
@@ -56,8 +56,7 @@
* [including the GNU Public Licence.]
* [including the GNU Public Licence.]
*/
*/
#ifndef NO_BLOWFISH
#ifndef NO_BF
#include <stdio.h>
#include <stdio.h>
#include "cryptlib.h"
#include "cryptlib.h"
#include <openssl/evp.h>
#include <openssl/evp.h>
...
...
crypto/evp/e_ecb_bf.c
浏览文件 @
b5929507
...
@@ -56,8 +56,7 @@
...
@@ -56,8 +56,7 @@
* [including the GNU Public Licence.]
* [including the GNU Public Licence.]
*/
*/
#ifndef NO_BLOWFISH
#ifndef NO_BF
#include <stdio.h>
#include <stdio.h>
#include "cryptlib.h"
#include "cryptlib.h"
#include <openssl/evp.h>
#include <openssl/evp.h>
...
...
crypto/evp/e_ofb_bf.c
浏览文件 @
b5929507
...
@@ -56,8 +56,7 @@
...
@@ -56,8 +56,7 @@
* [including the GNU Public Licence.]
* [including the GNU Public Licence.]
*/
*/
#ifndef NO_BLOWFISH
#ifndef NO_BF
#include <stdio.h>
#include <stdio.h>
#include "cryptlib.h"
#include "cryptlib.h"
#include <openssl/evp.h>
#include <openssl/evp.h>
...
...
util/mk1mf.pl
浏览文件 @
b5929507
...
@@ -214,9 +214,9 @@ $cflags.=" -DNO_MD2" if $no_md2;
...
@@ -214,9 +214,9 @@ $cflags.=" -DNO_MD2" if $no_md2;
$cflags
.=
"
-DNO_MD5
"
if
$no_md5
;
$cflags
.=
"
-DNO_MD5
"
if
$no_md5
;
$cflags
.=
"
-DNO_SHA
"
if
$no_sha
;
$cflags
.=
"
-DNO_SHA
"
if
$no_sha
;
$cflags
.=
"
-DNO_SHA1
"
if
$no_sha1
;
$cflags
.=
"
-DNO_SHA1
"
if
$no_sha1
;
$cflags
.=
"
-DNO_R
MD160
"
if
$no_rmd160
;
$cflags
.=
"
-DNO_R
IPEMD
"
if
$no_rmd160
;
$cflags
.=
"
-DNO_MDC2
"
if
$no_mdc2
;
$cflags
.=
"
-DNO_MDC2
"
if
$no_mdc2
;
$cflags
.=
"
-DNO_B
LOWFISH
"
if
$no_bf
;
$cflags
.=
"
-DNO_B
F
"
if
$no_bf
;
$cflags
.=
"
-DNO_CAST
"
if
$no_cast
;
$cflags
.=
"
-DNO_CAST
"
if
$no_cast
;
$cflags
.=
"
-DNO_DES
"
if
$no_des
;
$cflags
.=
"
-DNO_DES
"
if
$no_des
;
$cflags
.=
"
-DNO_RSA
"
if
$no_rsa
;
$cflags
.=
"
-DNO_RSA
"
if
$no_rsa
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录