Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
555d7525
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看板
提交
555d7525
编写于
11月 14, 2002
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
use new BIO_indent() function here as well
Submitted by: Nils Larsch
上级
eaad02a7
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
30 deletion
+11
-30
crypto/asn1/t_pkey.c
crypto/asn1/t_pkey.c
+11
-30
未找到文件。
crypto/asn1/t_pkey.c
浏览文件 @
555d7525
...
...
@@ -275,7 +275,6 @@ int EC_KEY_print_fp(FILE *fp, const EC_KEY *x, int off)
int
ECPKParameters_print
(
BIO
*
bp
,
const
EC_GROUP
*
x
,
int
off
)
{
char
str
[
128
];
unsigned
char
*
buffer
=
NULL
;
size_t
buf_len
=
0
,
i
;
int
ret
=
0
,
reason
=
ERR_R_BIO_LIB
;
...
...
@@ -301,14 +300,8 @@ int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off)
/* the curve parameter are given by an asn1 OID */
int
nid
;
if
(
off
)
{
if
(
off
>
128
)
off
=
128
;
memset
(
str
,
' '
,
off
);
if
(
BIO_write
(
bp
,
str
,
off
)
<=
0
)
goto
err
;
}
if
(
!
BIO_indent
(
bp
,
off
,
128
))
goto
err
;
nid
=
EC_GROUP_get_nid
(
x
);
if
(
nid
==
0
)
...
...
@@ -396,13 +389,10 @@ int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off)
reason
=
ERR_R_MALLOC_FAILURE
;
goto
err
;
}
if
(
off
)
{
if
(
off
>
128
)
off
=
128
;
memset
(
str
,
' '
,
off
);
if
(
BIO_write
(
bp
,
str
,
off
)
<=
0
)
goto
err
;
}
if
(
!
BIO_indent
(
bp
,
off
,
128
))
goto
err
;
/* print the 'short name' of the field type */
if
(
BIO_printf
(
bp
,
"Field Type: %s
\n
"
,
OBJ_nid2sn
(
tmp_nid
))
<=
0
)
...
...
@@ -415,13 +405,8 @@ int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off)
if
(
basis_type
==
0
)
goto
err
;
if
(
off
)
{
if
(
off
>
128
)
off
=
128
;
memset
(
str
,
' '
,
off
);
if
(
BIO_write
(
bp
,
str
,
off
)
<=
0
)
goto
err
;
}
if
(
!
BIO_indent
(
bp
,
off
,
128
))
goto
err
;
if
(
BIO_printf
(
bp
,
"Basis Type: %s
\n
"
,
OBJ_nid2sn
(
basis_type
))
<=
0
)
...
...
@@ -491,7 +476,6 @@ err:
int
EC_KEY_print
(
BIO
*
bp
,
const
EC_KEY
*
x
,
int
off
)
{
char
str
[
128
];
unsigned
char
*
buffer
=
NULL
;
size_t
buf_len
=
0
,
i
;
int
ret
=
0
,
reason
=
ERR_R_BIO_LIB
;
...
...
@@ -524,14 +508,11 @@ int EC_KEY_print(BIO *bp, const EC_KEY *x, int off)
reason
=
ERR_R_MALLOC_FAILURE
;
goto
err
;
}
if
(
off
)
{
if
(
off
>
128
)
off
=
128
;
memset
(
str
,
' '
,
off
);
}
if
(
x
->
priv_key
!=
NULL
)
{
if
(
off
&&
(
BIO_write
(
bp
,
str
,
off
)
<=
0
))
goto
err
;
if
(
!
BIO_indent
(
bp
,
off
,
128
))
goto
err
;
if
(
BIO_printf
(
bp
,
"Private-Key: (%d bit)
\n
"
,
BN_num_bits
(
x
->
priv_key
))
<=
0
)
goto
err
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录