Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
ee0508d4
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,发现更多精彩内容 >>
提交
ee0508d4
编写于
3月 29, 1999
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Include pkcs12 program as part of openssl. This completes most of the PKCS#12
integration.
上级
7c0f3d09
变更
25
展开全部
隐藏空白更改
内联
并排
Showing
25 changed file
with
758 addition
and
61 deletion
+758
-61
CHANGES
CHANGES
+4
-0
STATUS
STATUS
+2
-2
apps/Makefile.ssl
apps/Makefile.ssl
+2
-2
apps/nseq.c
apps/nseq.c
+0
-1
apps/pkcs12.c
apps/pkcs12.c
+715
-0
apps/progs.h
apps/progs.h
+3
-0
crypto/evp/evp_pbe.c
crypto/evp/evp_pbe.c
+5
-0
crypto/evp/names.c
crypto/evp/names.c
+2
-0
crypto/pkcs12/p12_add.c
crypto/pkcs12/p12_add.c
+1
-2
crypto/pkcs12/p12_attr.c
crypto/pkcs12/p12_attr.c
+1
-3
crypto/pkcs12/p12_bags.c
crypto/pkcs12/p12_bags.c
+2
-3
crypto/pkcs12/p12_crpt.c
crypto/pkcs12/p12_crpt.c
+1
-2
crypto/pkcs12/p12_crt.c
crypto/pkcs12/p12_crt.c
+1
-4
crypto/pkcs12/p12_decr.c
crypto/pkcs12/p12_decr.c
+1
-10
crypto/pkcs12/p12_init.c
crypto/pkcs12/p12_init.c
+1
-4
crypto/pkcs12/p12_key.c
crypto/pkcs12/p12_key.c
+1
-4
crypto/pkcs12/p12_kiss.c
crypto/pkcs12/p12_kiss.c
+1
-5
crypto/pkcs12/p12_lib.c
crypto/pkcs12/p12_lib.c
+2
-3
crypto/pkcs12/p12_mac.c
crypto/pkcs12/p12_mac.c
+2
-3
crypto/pkcs12/p12_mutl.c
crypto/pkcs12/p12_mutl.c
+3
-5
crypto/pkcs12/p12_sbag.c
crypto/pkcs12/p12_sbag.c
+2
-3
crypto/pkcs12/p12_utl.c
crypto/pkcs12/p12_utl.c
+1
-4
crypto/x509/x509.h
crypto/x509/x509.h
+2
-0
util/mkdef.pl
util/mkdef.pl
+1
-0
util/mkfiles.pl
util/mkfiles.pl
+2
-1
未找到文件。
CHANGES
浏览文件 @
ee0508d4
...
...
@@ -5,6 +5,10 @@
Changes between 0.9.2b and 0.9.3
*) Still more PKCS#12 integration. Add pkcs12 application to openssl
application. Various cleanups and fixes.
[Steve Henson]
*) More PKCS#12 integration. Add new pkcs12 directory with Makefile.ssl and
modify error routines to work internally. Add error codes and PBE init
to library startup routines.
...
...
STATUS
浏览文件 @
ee0508d4
OpenSSL STATUS Last modified at
______________ $Date: 1999/03/29
00:19:5
1 $
______________ $Date: 1999/03/29
17:50:1
1 $
DEVELOPMENT STATE
...
...
@@ -29,9 +29,9 @@
IN PROGRESS
o Steve is currently working on (in no particular order):
PKCS#12 code integration.
Proper (or at least usable) certificate chain verification.
Documentation on X509 V3 extension code.
PKCS#12 code cleanup and enhancement.
o Mark is currently working on:
Folding in any changes that are in the C2Net code base that were
...
...
apps/Makefile.ssl
浏览文件 @
ee0508d4
...
...
@@ -34,7 +34,7 @@ EXE= $(PROGRAM)
E_EXE
=
verify asn1pars req dgst dh enc gendh errstr ca crl
\
rsa dsa dsaparam
\
x509 genrsa gendsa s_server s_client speed
\
s_time version pkcs7 crl2pkcs7 sess_id ciphers nseq
s_time version pkcs7 crl2pkcs7 sess_id ciphers nseq
pkcs12
PROGS
=
$(PROGRAM)
.c
...
...
@@ -48,7 +48,7 @@ E_OBJ= verify.o asn1pars.o req.o dgst.o dh.o enc.o gendh.o errstr.o ca.o \
rsa.o dsa.o dsaparam.o
\
x509.o genrsa.o gendsa.o s_server.o s_client.o speed.o
\
s_time.o
$(A_OBJ)
$(S_OBJ)
version.o sess_id.o
\
ciphers.o nseq.o
ciphers.o nseq.o
pkcs12.o
# pem_mail.o
...
...
apps/nseq.c
浏览文件 @
ee0508d4
...
...
@@ -83,7 +83,6 @@ char **argv;
int
badarg
=
0
;
if
(
bio_err
==
NULL
)
bio_err
=
BIO_new_fp
(
stderr
,
BIO_NOCLOSE
);
ERR_load_crypto_strings
();
SSLeay_add_all_algorithms
();
args
=
argv
+
1
;
while
(
!
badarg
&&
*
args
&&
*
args
[
0
]
==
'-'
)
{
if
(
!
strcmp
(
*
args
,
"-toseq"
))
toseq
=
1
;
...
...
apps/pkcs12.c
0 → 100644
浏览文件 @
ee0508d4
此差异已折叠。
点击以展开。
apps/progs.h
浏览文件 @
ee0508d4
...
...
@@ -25,6 +25,7 @@ extern int crl2pkcs7_main(int argc,char *argv[]);
extern
int
sess_id_main
(
int
argc
,
char
*
argv
[]);
extern
int
ciphers_main
(
int
argc
,
char
*
argv
[]);
extern
int
nseq_main
(
int
argc
,
char
*
argv
[]);
extern
int
pkcs12_main
(
int
argc
,
char
*
argv
[]);
#else
extern
int
verify_main
();
extern
int
asn1parse_main
();
...
...
@@ -52,6 +53,7 @@ extern int crl2pkcs7_main();
extern
int
sess_id_main
();
extern
int
ciphers_main
();
extern
int
nseq_main
();
extern
int
pkcs12_main
();
#endif
#ifdef SSLEAY_SRC
...
...
@@ -115,6 +117,7 @@ FUNCTION functions[] = {
{
FUNC_TYPE_GENERAL
,
"ciphers"
,
ciphers_main
},
#endif
{
FUNC_TYPE_GENERAL
,
"nseq"
,
nseq_main
},
{
FUNC_TYPE_GENERAL
,
"pkcs12"
,
pkcs12_main
},
{
FUNC_TYPE_MD
,
"md2"
,
dgst_main
},
{
FUNC_TYPE_MD
,
"md5"
,
dgst_main
},
{
FUNC_TYPE_MD
,
"sha"
,
dgst_main
},
...
...
crypto/evp/evp_pbe.c
浏览文件 @
ee0508d4
...
...
@@ -174,3 +174,8 @@ EVP_PBE_KEYGEN *keygen;
sk_push
(
pbe_algs
,
(
char
*
)
pbe_tmp
);
return
1
;
}
void
EVP_PBE_cleanup
()
{
sk_pop_free
(
pbe_algs
,
FreeFunc
);
}
crypto/evp/names.c
浏览文件 @
ee0508d4
...
...
@@ -60,6 +60,7 @@
#include "cryptlib.h"
#include "evp.h"
#include "objects.h"
#include "x509.h"
int
EVP_add_cipher
(
c
)
EVP_CIPHER
*
c
;
...
...
@@ -117,4 +118,5 @@ void EVP_cleanup()
{
OBJ_NAME_cleanup
(
OBJ_NAME_TYPE_CIPHER_METH
);
OBJ_NAME_cleanup
(
OBJ_NAME_TYPE_MD_METH
);
EVP_PBE_cleanup
();
}
crypto/pkcs12/p12_add.c
浏览文件 @
ee0508d4
...
...
@@ -57,8 +57,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <err.h>
#include "cryptlib.h"
#include "pkcs12.h"
/* Pack an object into an OCTET STRING and turn into a safebag */
...
...
crypto/pkcs12/p12_attr.c
浏览文件 @
ee0508d4
...
...
@@ -57,9 +57,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <err.h>
#include "cryptlib.h"
#include "pkcs12.h"
/* Add a local keyid to a safebag */
...
...
crypto/pkcs12/p12_bags.c
浏览文件 @
ee0508d4
...
...
@@ -57,9 +57,8 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <asn1_mac.h>
#include <err.h>
#include "cryptlib.h"
#include "asn1_mac.h"
#include "pkcs12.h"
/*
...
...
crypto/pkcs12/p12_crpt.c
浏览文件 @
ee0508d4
...
...
@@ -57,8 +57,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <err.h>
#include "cryptlib.h"
#include "pkcs12.h"
/* PKCS#12 specific PBE functions */
...
...
crypto/pkcs12/p12_crt.c
浏览文件 @
ee0508d4
...
...
@@ -57,10 +57,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pem.h>
#include <err.h>
#include "cryptlib.h"
#include "pkcs12.h"
PKCS12
*
PKCS12_create
(
pass
,
name
,
pkey
,
cert
,
ca
,
nid_key
,
nid_cert
,
iter
,
...
...
crypto/pkcs12/p12_decr.c
浏览文件 @
ee0508d4
...
...
@@ -57,16 +57,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <objects.h>
#include <pkcs7.h>
#include <err.h>
#include <crypto.h>
#include <sha.h>
#include <stack.h>
#include <evp.h>
#include <string.h>
#include "hmac.h"
#include "cryptlib.h"
#include "pkcs12.h"
/* Define this to dump decrypted output to files called DERnnn */
...
...
crypto/pkcs12/p12_init.c
浏览文件 @
ee0508d4
...
...
@@ -57,10 +57,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <err.h>
#include <rand.h>
#include "cryptlib.h"
#include "pkcs12.h"
/* Initialise a PKCS12 structure to take data */
...
...
crypto/pkcs12/p12_key.c
浏览文件 @
ee0508d4
...
...
@@ -57,10 +57,7 @@
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <err.h>
#include <bn.h>
#include "cryptlib.h"
#include "pkcs12.h"
...
...
crypto/pkcs12/p12_kiss.c
浏览文件 @
ee0508d4
...
...
@@ -57,11 +57,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pem.h>
#include <err.h>
#include <x509.h>
#include "cryptlib.h"
#include "pkcs12.h"
/* Simplified PKCS#12 routines */
...
...
crypto/pkcs12/p12_lib.c
浏览文件 @
ee0508d4
...
...
@@ -57,9 +57,8 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <asn1_mac.h>
#include <err.h>
#include "cryptlib.h"
#include "asn1_mac.h"
#include "pkcs12.h"
/*
...
...
crypto/pkcs12/p12_mac.c
浏览文件 @
ee0508d4
...
...
@@ -57,9 +57,8 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <asn1_mac.h>
#include <err.h>
#include "cryptlib.h"
#include "asn1_mac.h"
#include "pkcs12.h"
/*
*ASN1err(ASN1_F_PKCS12_MAC_DATA_NEW,ASN1_R_DECODE_ERROR)
...
...
crypto/pkcs12/p12_mutl.c
浏览文件 @
ee0508d4
...
...
@@ -57,11 +57,9 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <err.h>
#include <hmac.h>
#include <rand.h>
#include "cryptlib.h"
#include "hmac.h"
#include "rand.h"
#include "pkcs12.h"
/* Generate a MAC */
...
...
crypto/pkcs12/p12_sbag.c
浏览文件 @
ee0508d4
...
...
@@ -57,9 +57,8 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <asn1_mac.h>
#include <err.h>
#include "cryptlib.h"
#include "asn1_mac.h"
#include "pkcs12.h"
/*
...
...
crypto/pkcs12/p12_utl.c
浏览文件 @
ee0508d4
...
...
@@ -57,10 +57,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <bio.h>
#include <err.h>
#include "cryptlib.h"
#include "pkcs12.h"
/* Cheap and nasty Unicode stuff */
...
...
crypto/x509/x509.h
浏览文件 @
ee0508d4
...
...
@@ -883,6 +883,7 @@ int EVP_PBE_ALGOR_CipherInit(X509_ALGOR *algor, unsigned char *pass,
int
passlen
,
EVP_CIPHER_CTX
*
ctx
,
int
en_de
);
int
EVP_PBE_alg_add
(
int
nid
,
EVP_CIPHER
*
cipher
,
EVP_MD
*
md
,
EVP_PBE_KEYGEN
*
keygen
);
void
EVP_PBE_cleanup
(
void
);
#else
...
...
@@ -1200,6 +1201,7 @@ PKCS8_PRIV_KEY_INFO *PKCS8_set_broken();
int
EVP_PBE_ALGOR_CipherInit
();
int
EVP_PBE_alg_add
();
X509_ALGOR
*
PKCS5_pbe_set
();
void
EVP_PBE_cleanup
();
#endif
...
...
util/mkdef.pl
浏览文件 @
ee0508d4
...
...
@@ -73,6 +73,7 @@ $crypto.=" crypto/asn1/asn1.h";
$crypto
.=
"
crypto/asn1/asn1_mac.h
";
$crypto
.=
"
crypto/err/err.h
";
$crypto
.=
"
crypto/pkcs7/pkcs7.h
";
$crypto
.=
"
crypto/pkcs12/pkcs12.h
";
$crypto
.=
"
crypto/x509/x509.h
";
$crypto
.=
"
crypto/x509/x509_vfy.h
";
$crypto
.=
"
crypto/x509v3/x509v3.h
";
...
...
util/mkfiles.pl
浏览文件 @
ee0508d4
...
...
@@ -7,6 +7,7 @@
# List of directories to process
my
@dirs
=
(
"
.
",
"
crypto
",
"
crypto/md2
",
"
crypto/md5
",
...
...
@@ -40,6 +41,7 @@ my @dirs = (
"
crypto/conf
",
"
crypto/txt_db
",
"
crypto/pkcs7
",
"
crypto/pkcs12
",
"
crypto/comp
",
"
ssl
",
"
rsaref
",
...
...
@@ -48,7 +50,6 @@ my @dirs = (
"
tools
"
);
&files_dir
("
.
",
"
Makefile.org
");
foreach
(
@dirs
)
{
&files_dir
(
$_
,
"
Makefile.ssl
");
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录