Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
12aefe78
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看板
提交
12aefe78
编写于
12月 24, 1999
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixes so NO_RSA works again.
上级
525f51f6
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
62 addition
and
5 deletion
+62
-5
apps/spkac.c
apps/spkac.c
+0
-1
crypto/asn1/x_pubkey.c
crypto/asn1/x_pubkey.c
+4
-1
crypto/evp/evp.h
crypto/evp/evp.h
+8
-2
crypto/pem/pem_all.c
crypto/pem/pem_all.c
+4
-0
crypto/x509/x509.h
crypto/x509/x509.h
+4
-0
util/mkdef.pl
util/mkdef.pl
+42
-1
未找到文件。
apps/spkac.c
浏览文件 @
12aefe78
...
...
@@ -64,7 +64,6 @@
#include "apps.h"
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/rsa.h>
#include <openssl/evp.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
...
...
crypto/asn1/x_pubkey.c
浏览文件 @
12aefe78
...
...
@@ -287,7 +287,7 @@ int i2d_PUBKEY(EVP_PKEY *a, unsigned char **pp)
/* The following are equivalents but which return RSA and DSA
* keys
*/
#ifndef NO_RSA
RSA
*
d2i_RSA_PUBKEY
(
RSA
**
a
,
unsigned
char
**
pp
,
long
length
)
{
...
...
@@ -323,7 +323,9 @@ int i2d_RSA_PUBKEY(RSA *a, unsigned char **pp)
EVP_PKEY_free
(
pktmp
);
return
ret
;
}
#endif
#ifndef NO_DSA
DSA
*
d2i_DSA_PUBKEY
(
DSA
**
a
,
unsigned
char
**
pp
,
long
length
)
{
...
...
@@ -359,3 +361,4 @@ int i2d_DSA_PUBKEY(DSA *a, unsigned char **pp)
EVP_PKEY_free
(
pktmp
);
return
ret
;
}
#endif
crypto/evp/evp.h
浏览文件 @
12aefe78
...
...
@@ -612,12 +612,18 @@ int EVP_PKEY_type(int type);
int
EVP_PKEY_bits
(
EVP_PKEY
*
pkey
);
int
EVP_PKEY_size
(
EVP_PKEY
*
pkey
);
int
EVP_PKEY_assign
(
EVP_PKEY
*
pkey
,
int
type
,
char
*
key
);
#ifndef NO_RSA
int
EVP_PKEY_rset_RSA
(
EVP_PKEY
*
pkey
,
RSA
*
key
);
int
EVP_PKEY_rset_DSA
(
EVP_PKEY
*
pkey
,
DSA
*
key
);
int
EVP_PKEY_rset_DH
(
EVP_PKEY
*
pkey
,
DH
*
key
);
RSA
*
EVP_PKEY_rget_RSA
(
EVP_PKEY
*
pkey
);
#endif
#ifndef NO_DSA
int
EVP_PKEY_rset_DSA
(
EVP_PKEY
*
pkey
,
DSA
*
key
);
DSA
*
EVP_PKEY_rget_DSA
(
EVP_PKEY
*
pkey
);
#endif
#ifndef NO_DH
int
EVP_PKEY_rset_DH
(
EVP_PKEY
*
pkey
,
DH
*
key
);
DH
*
EVP_PKEY_rget_DH
(
EVP_PKEY
*
pkey
);
#endif
EVP_PKEY
*
EVP_PKEY_new
(
void
);
void
EVP_PKEY_free
(
EVP_PKEY
*
pkey
);
EVP_PKEY
*
d2i_PublicKey
(
int
type
,
EVP_PKEY
**
a
,
unsigned
char
**
pp
,
...
...
crypto/pem/pem_all.c
浏览文件 @
12aefe78
...
...
@@ -65,8 +65,12 @@
#include <openssl/pkcs7.h>
#include <openssl/pem.h>
#ifndef NO_RSA
static
RSA
*
pkey_get_rsa
(
EVP_PKEY
*
key
,
RSA
**
rsa
);
#endif
#ifndef NO_DSA
static
DSA
*
pkey_get_dsa
(
EVP_PKEY
*
key
,
DSA
**
dsa
);
#endif
IMPLEMENT_PEM_rw
(
X509
,
X509
,
PEM_STRING_X509
,
X509
)
...
...
crypto/x509/x509.h
浏览文件 @
12aefe78
...
...
@@ -747,12 +747,16 @@ int X509_get_pubkey_parameters(EVP_PKEY *pkey,
int
i2d_PUBKEY
(
EVP_PKEY
*
a
,
unsigned
char
**
pp
);
EVP_PKEY
*
d2i_PUBKEY
(
EVP_PKEY
**
a
,
unsigned
char
**
pp
,
long
length
);
#ifndef NO_RSA
int
i2d_RSA_PUBKEY
(
RSA
*
a
,
unsigned
char
**
pp
);
RSA
*
d2i_RSA_PUBKEY
(
RSA
**
a
,
unsigned
char
**
pp
,
long
length
);
#endif
#ifndef NO_DSA
int
i2d_DSA_PUBKEY
(
DSA
*
a
,
unsigned
char
**
pp
);
DSA
*
d2i_DSA_PUBKEY
(
DSA
**
a
,
unsigned
char
**
pp
,
long
length
);
#endif
X509_SIG
*
X509_SIG_new
(
void
);
void
X509_SIG_free
(
X509_SIG
*
a
);
...
...
util/mkdef.pl
浏览文件 @
12aefe78
...
...
@@ -39,6 +39,7 @@ foreach (@ARGV, split(/ /, $options))
$do_crypto
=
1
if
$_
eq
"
libeay
";
$do_crypto
=
1
if
$_
eq
"
crypto
";
$do_update
=
1
if
$_
eq
"
update
";
$do_ctest
=
1
if
$_
eq
"
ctest
";
$rsaref
=
1
if
$_
eq
"
rsaref
";
if
(
/^no-rc2$/
)
{
$no_rc2
=
1
;
}
...
...
@@ -59,6 +60,7 @@ foreach (@ARGV, split(/ /, $options))
elsif
(
/^no-hmac$/
)
{
$no_hmac
=
1
;
}
}
if
(
!
$do_ssl
&&
!
$do_crypto
)
{
print
STDERR
"
usage: $0 ( ssl | crypto ) [ 16 | 32 | NT ] [rsaref]
\n
";
...
...
@@ -131,7 +133,26 @@ if($do_crypto == 1) {
open
(
OUT
,
"
>>
$crypto_num
");
&update_numbers
(
*OUT
,"
LIBEAY
",
*crypto_list
,
$max_crypto
,
@crypto_func
);
close
OUT
;
}
}
}
elsif
(
$do_ctest
)
{
print
<<"EOF";
/* Test file to check all DEF file symbols are present by trying
* to link to all of them. This is *not* intended to be run!
*/
int main()
{
EOF
&print_test_file
(
*STDOUT
,"
SSLEAY
",
*ssl_list
,
@ssl_func
)
if
$do_ssl
==
1
;
&print_test_file
(
*STDOUT
,"
LIBEAY
",
*crypto_list
,
@crypto_func
)
if
$do_crypto
==
1
;
print
"
}
\n
";
}
else
{
...
...
@@ -340,6 +361,26 @@ sub do_defs
return
(
@ret
);
}
sub
print_test_file
{
(
*OUT
,
my
$name
,
*nums
,
@functions
)
=
@_
;
my
$n
=
1
;
(
@e
)
=
grep
(
/^SSLeay/
,
@functions
);
(
@r
)
=
grep
(
!
/^SSLeay/
,
@functions
);
@functions
=
((
sort
@e
),(
sort
@r
));
foreach
$func
(
@functions
)
{
if
(
!
defined
(
$nums
{
$func
}))
{
printf
STDERR
"
$func
does not have a number assigned
\n
"
if
(
!
$do_update
);
}
else
{
$n
=
$nums
{
$func
};
print
OUT
"
\t
$func
();
\n
";
}
}
}
sub
print_def_file
{
(
*OUT
,
my
$name
,
*nums
,
@functions
)
=
@_
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录