Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
97d8e82c
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
97d8e82c
编写于
9月 10, 2000
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Marin Kraemer <Martin.Kraemer@MchP.Siemens.De> sent us patches to make
the OpenSSL commands x50 and req work better on a EBCDIC system.
上级
d7b9c76c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
29 addition
and
0 deletion
+29
-0
CHANGES
CHANGES
+4
-0
apps/req.c
apps/req.c
+7
-0
crypto/asn1/a_mbstr.c
crypto/asn1/a_mbstr.c
+7
-0
crypto/x509v3/v3_utl.c
crypto/x509v3/v3_utl.c
+11
-0
未找到文件。
CHANGES
浏览文件 @
97d8e82c
...
...
@@ -4,6 +4,10 @@
Changes between 0.9.5a and 0.9.6 [xx XXX 2000]
*) Add a few more EBCDIC conditionals that make `req' and `x509'
work better on such systems.
[Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>]
*) Add two demo programs for PKCS12_parse() and PKCS12_create().
Update PKCS12_parse() so it copies the friendlyName and the
keyid to the certificates aux info.
...
...
apps/req.c
浏览文件 @
97d8e82c
...
...
@@ -1099,7 +1099,11 @@ static int auto_info(X509_REQ *req, STACK_OF(CONF_VALUE) *dn_sk,
* multiple instances
*/
for
(
p
=
v
->
name
;
*
p
;
p
++
)
#ifndef CHARSET_EBCDIC
if
((
*
p
==
':'
)
||
(
*
p
==
','
)
||
(
*
p
==
'.'
))
{
#else
if
((
*
p
==
os_toascii
[
':'
])
||
(
*
p
==
os_toascii
[
','
])
||
(
*
p
==
os_toascii
[
'.'
]))
{
#endif
p
++
;
if
(
*
p
)
type
=
p
;
break
;
...
...
@@ -1215,6 +1219,9 @@ start:
return
(
0
);
}
buf
[
--
i
]
=
'\0'
;
#ifdef CHARSET_EBCDIC
ebcdic2ascii
(
buf
,
buf
,
i
);
#endif
if
(
!
req_check_len
(
i
,
min
,
max
))
goto
start
;
if
(
!
X509_REQ_add1_attr_by_NID
(
req
,
nid
,
MBSTRING_ASC
,
...
...
crypto/asn1/a_mbstr.c
浏览文件 @
97d8e82c
...
...
@@ -385,9 +385,16 @@ static int is_printable(unsigned long value)
/* Note: we can't use 'isalnum' because certain accented
* characters may count as alphanumeric in some environments.
*/
#ifndef CHARSET_EBCDIC
if
((
ch
>=
'a'
)
&&
(
ch
<=
'z'
))
return
1
;
if
((
ch
>=
'A'
)
&&
(
ch
<=
'Z'
))
return
1
;
if
((
ch
>=
'0'
)
&&
(
ch
<=
'9'
))
return
1
;
if
((
ch
==
' '
)
||
strchr
(
"'()+,-./:=?"
,
ch
))
return
1
;
#else
/*CHARSET_EBCDIC*/
if
((
ch
>=
os_toascii
[
'a'
])
&&
(
ch
<=
os_toascii
[
'z'
]))
return
1
;
if
((
ch
>=
os_toascii
[
'A'
])
&&
(
ch
<=
os_toascii
[
'Z'
]))
return
1
;
if
((
ch
>=
os_toascii
[
'0'
])
&&
(
ch
<=
os_toascii
[
'9'
]))
return
1
;
if
((
ch
==
os_toascii
[
' '
])
||
strchr
(
"'()+,-./:=?"
,
os_toebcdic
[
ch
]))
return
1
;
#endif
/*CHARSET_EBCDIC*/
return
0
;
}
crypto/x509v3/v3_utl.c
浏览文件 @
97d8e82c
...
...
@@ -331,6 +331,7 @@ static char *strip_spaces(char *name)
/* Given a buffer of length 'len' return a OPENSSL_malloc'ed string with its
* hex representation
* @@@ (Contents of buffer are always kept in ASCII, also on EBCDIC machines)
*/
char
*
hex_to_string
(
unsigned
char
*
buffer
,
long
len
)
...
...
@@ -351,6 +352,10 @@ char *hex_to_string(unsigned char *buffer, long len)
*
q
++
=
':'
;
}
q
[
-
1
]
=
0
;
#ifdef CHARSET_EBCDIC
ebcdic2ascii
(
tmp
,
tmp
,
q
-
tmp
-
1
);
#endif
return
tmp
;
}
...
...
@@ -369,8 +374,14 @@ unsigned char *string_to_hex(char *str, long *len)
if
(
!
(
hexbuf
=
OPENSSL_malloc
(
strlen
(
str
)
>>
1
)))
goto
err
;
for
(
p
=
(
unsigned
char
*
)
str
,
q
=
hexbuf
;
*
p
;)
{
ch
=
*
p
++
;
#ifdef CHARSET_EBCDIC
ch
=
os_toebcdic
[
ch
];
#endif
if
(
ch
==
':'
)
continue
;
cl
=
*
p
++
;
#ifdef CHARSET_EBCDIC
cl
=
os_toebcdic
[
cl
];
#endif
if
(
!
cl
)
{
X509V3err
(
X509V3_F_STRING_TO_HEX
,
X509V3_R_ODD_NUMBER_OF_DIGITS
);
OPENSSL_free
(
hexbuf
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录