Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
a51a9726
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看板
提交
a51a9726
编写于
6月 29, 2005
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Brought forward from 0.9.8 - 64 bit warning fixes and fussy compiler fixes.
上级
45d8574b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
9 deletion
+18
-9
apps/passwd.c
apps/passwd.c
+2
-1
crypto/bn/bn_nist.c
crypto/bn/bn_nist.c
+6
-0
crypto/pqueue/pq_compat.h
crypto/pqueue/pq_compat.h
+2
-0
ssl/ssltest.c
ssl/ssltest.c
+8
-8
未找到文件。
apps/passwd.c
浏览文件 @
a51a9726
...
@@ -474,7 +474,8 @@ static int do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p,
...
@@ -474,7 +474,8 @@ static int do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p,
if
((
strlen
(
passwd
)
>
pw_maxlen
))
if
((
strlen
(
passwd
)
>
pw_maxlen
))
{
{
if
(
!
quiet
)
if
(
!
quiet
)
BIO_printf
(
bio_err
,
"Warning: truncating password to %u characters
\n
"
,
pw_maxlen
);
/* XXX: really we should know how to print a size_t, not cast it */
BIO_printf
(
bio_err
,
"Warning: truncating password to %u characters
\n
"
,
(
unsigned
)
pw_maxlen
);
passwd
[
pw_maxlen
]
=
0
;
passwd
[
pw_maxlen
]
=
0
;
}
}
assert
(
strlen
(
passwd
)
<=
pw_maxlen
);
assert
(
strlen
(
passwd
)
<=
pw_maxlen
);
...
...
crypto/bn/bn_nist.c
浏览文件 @
a51a9726
...
@@ -172,6 +172,7 @@ const BIGNUM *BN_get0_nist_prime_521(void)
...
@@ -172,6 +172,7 @@ const BIGNUM *BN_get0_nist_prime_521(void)
}
}
/* some misc internal functions */
/* some misc internal functions */
#if BN_BITS2 != 64
static
BN_ULONG
_256_data
[
BN_NIST_256_TOP
*
6
];
static
BN_ULONG
_256_data
[
BN_NIST_256_TOP
*
6
];
static
int
_is_set_256_data
=
0
;
static
int
_is_set_256_data
=
0
;
static
void
_init_256_data
(
void
);
static
void
_init_256_data
(
void
);
...
@@ -179,6 +180,7 @@ static void _init_256_data(void);
...
@@ -179,6 +180,7 @@ static void _init_256_data(void);
static
BN_ULONG
_384_data
[
BN_NIST_384_TOP
*
8
];
static
BN_ULONG
_384_data
[
BN_NIST_384_TOP
*
8
];
static
int
_is_set_384_data
=
0
;
static
int
_is_set_384_data
=
0
;
static
void
_init_384_data
(
void
);
static
void
_init_384_data
(
void
);
#endif
#define BN_NIST_ADD_ONE(a) while (!(++(*(a)))) ++(a);
#define BN_NIST_ADD_ONE(a) while (!(++(*(a)))) ++(a);
...
@@ -405,6 +407,7 @@ int BN_nist_mod_224(BIGNUM *r, const BIGNUM *a, const BIGNUM *field,
...
@@ -405,6 +407,7 @@ int BN_nist_mod_224(BIGNUM *r, const BIGNUM *a, const BIGNUM *field,
#endif
#endif
}
}
#if BN_BITS2 != 64
static
void
_init_256_data
(
void
)
static
void
_init_256_data
(
void
)
{
{
int
i
;
int
i
;
...
@@ -422,6 +425,7 @@ static void _init_256_data(void)
...
@@ -422,6 +425,7 @@ static void _init_256_data(void)
}
}
_is_set_256_data
=
1
;
_is_set_256_data
=
1
;
}
}
#endif
#define nist_set_256(to, from, a1, a2, a3, a4, a5, a6, a7, a8) \
#define nist_set_256(to, from, a1, a2, a3, a4, a5, a6, a7, a8) \
{ \
{ \
...
@@ -555,6 +559,7 @@ int BN_nist_mod_256(BIGNUM *r, const BIGNUM *a, const BIGNUM *field,
...
@@ -555,6 +559,7 @@ int BN_nist_mod_256(BIGNUM *r, const BIGNUM *a, const BIGNUM *field,
#endif
#endif
}
}
#if BN_BITS2 != 64
static
void
_init_384_data
(
void
)
static
void
_init_384_data
(
void
)
{
{
int
i
;
int
i
;
...
@@ -572,6 +577,7 @@ static void _init_384_data(void)
...
@@ -572,6 +577,7 @@ static void _init_384_data(void)
}
}
_is_set_384_data
=
1
;
_is_set_384_data
=
1
;
}
}
#endif
#define nist_set_384(to,from,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12) \
#define nist_set_384(to,from,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12) \
{ \
{ \
...
...
crypto/pqueue/pq_compat.h
浏览文件 @
a51a9726
...
@@ -111,8 +111,10 @@
...
@@ -111,8 +111,10 @@
#if defined(SIXTY_FOUR_BIT) || defined(SIXTY_FOUR_BIT_LONG)
#if defined(SIXTY_FOUR_BIT) || defined(SIXTY_FOUR_BIT_LONG)
#define PQ_64BIT BN_ULONG
#define PQ_64BIT BN_ULONG
#define PQ_64BIT_PRINT "%ld"
#elif defined(THIRTY_TWO_BIT)
#elif defined(THIRTY_TWO_BIT)
#define PQ_64BIT BN_ULLONG
#define PQ_64BIT BN_ULLONG
#define PQ_64BIT_PRINT "%lld"
#endif
#endif
#define PQ_64BIT_CTX void
#define PQ_64BIT_CTX void
...
...
ssl/ssltest.c
浏览文件 @
a51a9726
...
@@ -1694,7 +1694,7 @@ static int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx)
...
@@ -1694,7 +1694,7 @@ static int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx)
fprintf
(
stderr
,
" Certificate proxy rights = %*.*s"
,
i
,
i
,
s
);
fprintf
(
stderr
,
" Certificate proxy rights = %*.*s"
,
i
,
i
,
s
);
while
(
i
--
>
0
)
while
(
i
--
>
0
)
{
{
char
c
=
*
s
++
;
int
c
=
*
s
++
;
if
(
isascii
(
c
)
&&
isalpha
(
c
))
if
(
isascii
(
c
)
&&
isalpha
(
c
))
{
{
if
(
islower
(
c
))
if
(
islower
(
c
))
...
@@ -1755,11 +1755,11 @@ static int process_proxy_cond_adders(unsigned int letters[26],
...
@@ -1755,11 +1755,11 @@ static int process_proxy_cond_adders(unsigned int letters[26],
static
int
process_proxy_cond_val
(
unsigned
int
letters
[
26
],
static
int
process_proxy_cond_val
(
unsigned
int
letters
[
26
],
const
char
*
cond
,
const
char
**
cond_end
,
int
*
pos
,
int
indent
)
const
char
*
cond
,
const
char
**
cond_end
,
int
*
pos
,
int
indent
)
{
{
char
c
;
int
c
;
int
ok
=
1
;
int
ok
=
1
;
int
negate
=
0
;
int
negate
=
0
;
while
(
isspace
(
*
cond
))
while
(
isspace
(
(
int
)
*
cond
))
{
{
cond
++
;
(
*
pos
)
++
;
cond
++
;
(
*
pos
)
++
;
}
}
...
@@ -1774,7 +1774,7 @@ static int process_proxy_cond_val(unsigned int letters[26],
...
@@ -1774,7 +1774,7 @@ static int process_proxy_cond_val(unsigned int letters[26],
{
{
negate
=
!
negate
;
negate
=
!
negate
;
cond
++
;
(
*
pos
)
++
;
cond
++
;
(
*
pos
)
++
;
while
(
isspace
(
*
cond
))
while
(
isspace
(
(
int
)
*
cond
))
{
{
cond
++
;
(
*
pos
)
++
;
cond
++
;
(
*
pos
)
++
;
}
}
...
@@ -1789,7 +1789,7 @@ static int process_proxy_cond_val(unsigned int letters[26],
...
@@ -1789,7 +1789,7 @@ static int process_proxy_cond_val(unsigned int letters[26],
cond
=
*
cond_end
;
cond
=
*
cond_end
;
if
(
ok
<
0
)
if
(
ok
<
0
)
goto
end
;
goto
end
;
while
(
isspace
(
*
cond
))
while
(
isspace
(
(
int
)
*
cond
))
{
{
cond
++
;
(
*
pos
)
++
;
cond
++
;
(
*
pos
)
++
;
}
}
...
@@ -1849,7 +1849,7 @@ static int process_proxy_cond_multipliers(unsigned int letters[26],
...
@@ -1849,7 +1849,7 @@ static int process_proxy_cond_multipliers(unsigned int letters[26],
while
(
ok
>=
0
)
while
(
ok
>=
0
)
{
{
while
(
isspace
(
*
cond
))
while
(
isspace
(
(
int
)
*
cond
))
{
{
cond
++
;
(
*
pos
)
++
;
cond
++
;
(
*
pos
)
++
;
}
}
...
@@ -1916,7 +1916,7 @@ static int process_proxy_cond_adders(unsigned int letters[26],
...
@@ -1916,7 +1916,7 @@ static int process_proxy_cond_adders(unsigned int letters[26],
while
(
ok
>=
0
)
while
(
ok
>=
0
)
{
{
while
(
isspace
(
*
cond
))
while
(
isspace
(
(
int
)
*
cond
))
{
{
cond
++
;
(
*
pos
)
++
;
cond
++
;
(
*
pos
)
++
;
}
}
...
@@ -1999,7 +1999,7 @@ static int MS_CALLBACK app_verify_callback(X509_STORE_CTX *ctx, void *arg)
...
@@ -1999,7 +1999,7 @@ static int MS_CALLBACK app_verify_callback(X509_STORE_CTX *ctx, void *arg)
letters
[
i
]
=
0
;
letters
[
i
]
=
0
;
for
(
sp
=
cb_arg
->
proxy_auth
;
*
sp
;
sp
++
)
for
(
sp
=
cb_arg
->
proxy_auth
;
*
sp
;
sp
++
)
{
{
char
c
=
*
sp
;
int
c
=
*
sp
;
if
(
isascii
(
c
)
&&
isalpha
(
c
))
if
(
isascii
(
c
)
&&
isalpha
(
c
))
{
{
if
(
islower
(
c
))
if
(
islower
(
c
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录