Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
f73e07cf
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
10 个月 前同步成功
通知
8
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看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f73e07cf
编写于
4月 12, 1999
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add type-safe STACKs and SETs.
上级
a36a1a51
变更
48
展开全部
隐藏空白更改
内联
并排
Showing
48 changed file
with
1147 addition
and
873 deletion
+1147
-873
CHANGES
CHANGES
+10
-0
apps/Makefile.ssl
apps/Makefile.ssl
+96
-83
apps/ciphers.c
apps/ciphers.c
+3
-3
apps/crl2p7.c
apps/crl2p7.c
+5
-5
apps/pkcs7.c
apps/pkcs7.c
+3
-3
apps/s_client.c
apps/s_client.c
+12
-11
apps/s_server.c
apps/s_server.c
+3
-3
crypto/asn1/Makefile.ssl
crypto/asn1/Makefile.ssl
+198
-186
crypto/asn1/asn1.h
crypto/asn1/asn1.h
+27
-0
crypto/asn1/asn1_mac.h
crypto/asn1/asn1_mac.h
+28
-0
crypto/asn1/p7_s_e.c
crypto/asn1/p7_s_e.c
+4
-4
crypto/asn1/p7_signd.c
crypto/asn1/p7_signd.c
+4
-4
crypto/dh/Makefile.ssl
crypto/dh/Makefile.ssl
+1
-1
crypto/dsa/Makefile.ssl
crypto/dsa/Makefile.ssl
+7
-6
crypto/err/Makefile.ssl
crypto/err/Makefile.ssl
+3
-3
crypto/evp/Makefile.ssl
crypto/evp/Makefile.ssl
+65
-63
crypto/pem/Makefile.ssl
crypto/pem/Makefile.ssl
+19
-17
crypto/pkcs12/Makefile.ssl
crypto/pkcs12/Makefile.ssl
+54
-44
crypto/pkcs7/Makefile.ssl
crypto/pkcs7/Makefile.ssl
+11
-9
crypto/pkcs7/pk7_doit.c
crypto/pkcs7/pk7_doit.c
+2
-1
crypto/pkcs7/pk7_lib.c
crypto/pkcs7/pk7_lib.c
+3
-3
crypto/pkcs7/pkcs7.h
crypto/pkcs7/pkcs7.h
+2
-2
crypto/rsa/Makefile.ssl
crypto/rsa/Makefile.ssl
+8
-6
crypto/stack/Makefile.ssl
crypto/stack/Makefile.ssl
+1
-1
crypto/stack/safestack.h
crypto/stack/safestack.h
+115
-0
crypto/x509/Makefile.ssl
crypto/x509/Makefile.ssl
+60
-59
crypto/x509/x509.h
crypto/x509/x509.h
+9
-3
crypto/x509/x509_cmp.c
crypto/x509/x509_cmp.c
+6
-6
crypto/x509/x509_lu.c
crypto/x509/x509_lu.c
+1
-1
crypto/x509/x509_vfy.c
crypto/x509/x509_vfy.c
+9
-6
crypto/x509/x509_vfy.h
crypto/x509/x509_vfy.h
+3
-3
crypto/x509v3/Makefile.ssl
crypto/x509v3/Makefile.ssl
+58
-50
ssl/Makefile.ssl
ssl/Makefile.ssl
+105
-99
ssl/s23_srvr.c
ssl/s23_srvr.c
+3
-3
ssl/s2_clnt.c
ssl/s2_clnt.c
+11
-11
ssl/s2_srvr.c
ssl/s2_srvr.c
+9
-9
ssl/s3_both.c
ssl/s3_both.c
+2
-2
ssl/s3_clnt.c
ssl/s3_clnt.c
+14
-14
ssl/s3_lib.c
ssl/s3_lib.c
+11
-10
ssl/s3_srvr.c
ssl/s3_srvr.c
+23
-23
ssl/ssl.h
ssl/ssl.h
+22
-16
ssl/ssl3.h
ssl/ssl3.h
+1
-1
ssl/ssl_cert.c
ssl/ssl_cert.c
+23
-22
ssl/ssl_ciph.c
ssl/ssl_ciph.c
+21
-20
ssl/ssl_lib.c
ssl/ssl_lib.c
+48
-40
ssl/ssl_locl.h
ssl/ssl_locl.h
+14
-10
ssl/ssl_sess.c
ssl/ssl_sess.c
+1
-1
test/Makefile.ssl
test/Makefile.ssl
+9
-6
未找到文件。
CHANGES
浏览文件 @
f73e07cf
...
...
@@ -5,6 +5,16 @@
Changes between 0.9.2b and 0.9.3
*) Introduce type-safe ASN.1 SETs.
[Ben Laurie]
*) Introduce type-safe STACKs. This will almost certainly break lots of code
that links with OpenSSL (well at least cause lots of warnings), but fear
not: the conversion is trivial, and it eliminates loads of evil casts. A
few STACKed things have been converted already. Feel free to convert more.
In the fullness of time, I'll do away with the STACK type altogether.
[Ben Laurie]
*) Add `openssl ca -revoke <certfile>' facility which revokes a certificate
specified in <certfile> by updating the entry in the index.txt file.
This way one no longer has to edit the index.txt file manually for
...
...
apps/Makefile.ssl
浏览文件 @
f73e07cf
此差异已折叠。
点击以展开。
apps/ciphers.c
浏览文件 @
f73e07cf
...
...
@@ -89,7 +89,7 @@ char **argv;
SSL
*
ssl
=
NULL
;
char
*
ciphers
=
NULL
;
SSL_METHOD
*
meth
=
NULL
;
STACK
*
sk
;
STACK
_OF
(
SSL_CIPHER
)
*
sk
;
char
buf
[
512
];
BIO
*
STDout
=
NULL
;
...
...
@@ -167,10 +167,10 @@ char **argv;
{
sk
=
SSL_get_ciphers
(
ssl
);
for
(
i
=
0
;
i
<
sk_num
(
sk
);
i
++
)
for
(
i
=
0
;
i
<
sk_
SSL_CIPHER_
num
(
sk
);
i
++
)
{
BIO_puts
(
STDout
,
SSL_CIPHER_description
(
(
SSL_CIPHER
*
)
sk
_value
(
sk
,
i
),
sk_SSL_CIPHER
_value
(
sk
,
i
),
buf
,
512
));
}
}
...
...
apps/crl2p7.c
浏览文件 @
f73e07cf
...
...
@@ -73,7 +73,7 @@
#include "objects.h"
#ifndef NOPROTO
static
int
add_certs_from_file
(
STACK
*
stack
,
char
*
certfile
);
static
int
add_certs_from_file
(
STACK
_OF
(
X509
)
*
stack
,
char
*
certfile
);
#else
static
int
add_certs_from_file
();
#endif
...
...
@@ -100,7 +100,7 @@ char **argv;
X509_CRL
*
crl
=
NULL
;
STACK
*
certflst
=
NULL
;
STACK
*
crl_stack
=
NULL
;
STACK
*
cert_stack
=
NULL
;
STACK
_OF
(
X509
)
*
cert_stack
=
NULL
;
int
ret
=
1
,
nocrl
=
0
;
apps_startup
();
...
...
@@ -228,7 +228,7 @@ bad:
crl
=
NULL
;
/* now part of p7 for Freeing */
}
if
((
cert_stack
=
sk_new
(
NULL
))
==
NULL
)
goto
end
;
if
((
cert_stack
=
sk_
X509_
new
(
NULL
))
==
NULL
)
goto
end
;
p7s
->
cert
=
cert_stack
;
if
(
certflst
)
for
(
i
=
0
;
i
<
sk_num
(
certflst
);
i
++
)
{
...
...
@@ -289,7 +289,7 @@ end:
*----------------------------------------------------------------------
*/
static
int
add_certs_from_file
(
stack
,
certfile
)
STACK
*
stack
;
STACK
_OF
(
X509
)
*
stack
;
char
*
certfile
;
{
struct
stat
st
;
...
...
@@ -325,7 +325,7 @@ char *certfile;
xi
=
(
X509_INFO
*
)
sk_shift
(
sk
);
if
(
xi
->
x509
!=
NULL
)
{
sk_
push
(
stack
,(
char
*
)
xi
->
x509
);
sk_
X509_push
(
stack
,
xi
->
x509
);
xi
->
x509
=
NULL
;
count
++
;
}
...
...
apps/pkcs7.c
浏览文件 @
f73e07cf
...
...
@@ -223,7 +223,7 @@ bad:
if
(
print_certs
)
{
STACK
*
certs
=
NULL
;
STACK
_OF
(
X509
)
*
certs
=
NULL
;
STACK
*
crls
=
NULL
;
i
=
OBJ_obj2nid
(
p7
->
type
);
...
...
@@ -245,9 +245,9 @@ bad:
{
X509
*
x
;
for
(
i
=
0
;
i
<
sk_num
(
certs
);
i
++
)
for
(
i
=
0
;
i
<
sk_
X509_
num
(
certs
);
i
++
)
{
x
=
(
X509
*
)
sk
_value
(
certs
,
i
);
x
=
sk_X509
_value
(
certs
,
i
);
X509_NAME_oneline
(
X509_get_subject_name
(
x
),
buf
,
256
);
...
...
apps/s_client.c
浏览文件 @
f73e07cf
...
...
@@ -666,7 +666,8 @@ int full;
char
*
p
;
static
char
*
space
=
" "
;
char
buf
[
BUFSIZ
];
STACK
*
sk
;
STACK_OF
(
X509
)
*
sk
;
STACK_OF
(
X509_NAME
)
*
sk2
;
SSL_CIPHER
*
c
;
X509_NAME
*
xn
;
int
j
,
i
;
...
...
@@ -677,16 +678,16 @@ int full;
if
(
sk
!=
NULL
)
{
BIO_printf
(
bio
,
"---
\n
Certificate chain
\n
"
);
for
(
i
=
0
;
i
<
sk_num
(
sk
);
i
++
)
for
(
i
=
0
;
i
<
sk_
X509_
num
(
sk
);
i
++
)
{
X509_NAME_oneline
(
X509_get_subject_name
(
(
X509
*
)
sk_value
(
sk
,
i
)),
buf
,
BUFSIZ
);
X509_NAME_oneline
(
X509_get_subject_name
(
sk_
X509_
value
(
sk
,
i
)),
buf
,
BUFSIZ
);
BIO_printf
(
bio
,
"%2d s:%s
\n
"
,
i
,
buf
);
X509_NAME_oneline
(
X509_get_issuer_name
(
(
X509
*
)
sk_value
(
sk
,
i
)),
buf
,
BUFSIZ
);
X509_NAME_oneline
(
X509_get_issuer_name
(
sk_
X509_
value
(
sk
,
i
)),
buf
,
BUFSIZ
);
BIO_printf
(
bio
,
" i:%s
\n
"
,
buf
);
if
(
c_showcerts
)
PEM_write_bio_X509
(
bio
,
(
X509
*
)
sk
_value
(
sk
,
i
));
PEM_write_bio_X509
(
bio
,
sk_X509
_value
(
sk
,
i
));
}
}
...
...
@@ -707,13 +708,13 @@ int full;
else
BIO_printf
(
bio
,
"no peer certificate available
\n
"
);
sk
=
SSL_get_client_CA_list
(
s
);
if
((
sk
!=
NULL
)
&&
(
sk_
num
(
sk
)
>
0
))
sk
2
=
SSL_get_client_CA_list
(
s
);
if
((
sk
!=
NULL
)
&&
(
sk_
X509_NAME_num
(
sk2
)
>
0
))
{
BIO_printf
(
bio
,
"---
\n
Acceptable client certificate CA names
\n
"
);
for
(
i
=
0
;
i
<
sk_
num
(
sk
);
i
++
)
for
(
i
=
0
;
i
<
sk_
X509_NAME_num
(
sk2
);
i
++
)
{
xn
=
(
X509_NAME
*
)
sk_value
(
sk
,
i
);
xn
=
sk_X509_NAME_value
(
sk2
,
i
);
X509_NAME_oneline
(
xn
,
buf
,
sizeof
(
buf
));
BIO_write
(
bio
,
buf
,
strlen
(
buf
));
BIO_write
(
bio
,
"
\n
"
,
1
);
...
...
apps/s_server.c
浏览文件 @
f73e07cf
...
...
@@ -998,7 +998,7 @@ char *context;
{
char
*
p
;
X509
*
peer
;
STACK
*
sk
;
STACK
_OF
(
SSL_CIPHER
)
*
sk
;
static
char
*
space
=
" "
;
BIO_puts
(
io
,
"HTTP/1.0 200 ok
\r\n
Content-type: text/html
\r\n\r\n
"
);
...
...
@@ -1017,10 +1017,10 @@ char *context;
* be done */
BIO_printf
(
io
,
"Ciphers supported in s_server binary
\n
"
);
sk
=
SSL_get_ciphers
(
con
);
j
=
sk_num
(
sk
);
j
=
sk_
SSL_CIPHER_
num
(
sk
);
for
(
i
=
0
;
i
<
j
;
i
++
)
{
c
=
(
SSL_CIPHER
*
)
sk
_value
(
sk
,
i
);
c
=
sk_SSL_CIPHER
_value
(
sk
,
i
);
BIO_printf
(
io
,
"%-11s:%-25s"
,
SSL_CIPHER_get_version
(
c
),
SSL_CIPHER_get_name
(
c
));
...
...
crypto/asn1/Makefile.ssl
浏览文件 @
f73e07cf
此差异已折叠。
点击以展开。
crypto/asn1/asn1.h
浏览文件 @
f73e07cf
...
...
@@ -485,6 +485,33 @@ STACK * d2i_ASN1_SET(STACK **a, unsigned char **pp, long length,
char
*
(
*
func
)(),
void
(
*
free_func
)(),
int
ex_tag
,
int
ex_class
);
#define DECLARE_ASN1_SET_OF(type) \
int i2d_ASN1_SET_OF_##type(STACK_OF(type) *a,unsigned char **pp, \
int (*func)(type *,unsigned char **), int ex_tag, \
int ex_class, int is_set); \
STACK_OF(type) *d2i_ASN1_SET_OF_##type(STACK_OF(type) **a,unsigned char **pp, \
long length, \
type *(*func)(type **, \
unsigned char **,long), \
void (*free_func)(type *), \
int ex_tag,int ex_class);
#define IMPLEMENT_ASN1_SET_OF(type) \
int i2d_ASN1_SET_OF_##type(STACK_OF(type) *a,unsigned char **pp, \
int (*func)(type *,unsigned char **), int ex_tag, \
int ex_class, int is_set) \
{ return i2d_ASN1_SET((STACK *)a,pp,func,ex_tag,ex_class,is_set); } \
STACK_OF(type) *d2i_ASN1_SET_OF_##type(STACK_OF(type) **a,unsigned char **pp, \
long length, \
type *(*func)(type **, \
unsigned char **,long), \
void (*free_func)(type *), \
int ex_tag,int ex_class) \
{ return (STACK_OF(type) *)d2i_ASN1_SET((STACK **)a,pp,length, \
(char *(*)())func, \
(void (*)())free_func, \
ex_tag,ex_class); }
#ifdef HEADER_BIO_H
int
i2a_ASN1_INTEGER
(
BIO
*
bp
,
ASN1_INTEGER
*
a
);
int
a2i_ASN1_INTEGER
(
BIO
*
bp
,
ASN1_INTEGER
*
bs
,
char
*
buf
,
int
size
);
...
...
crypto/asn1/asn1_mac.h
浏览文件 @
f73e07cf
...
...
@@ -180,6 +180,15 @@ err:\
tag,V_ASN1_CONTEXT_SPECIFIC); \
}
#define M_ASN1_D2I_get_IMP_set_opt_type(type,b,func,free_func,tag) \
if ((c.slen != 0) && \
(M_ASN1_next == \
(V_ASN1_CONTEXT_SPECIFIC|V_ASN1_CONSTRUCTED|(tag))))\
{ \
M_ASN1_D2I_get_imp_set_type(type,b,func,free_func,\
tag,V_ASN1_CONTEXT_SPECIFIC); \
}
#define M_ASN1_D2I_get_seq(r,func,free_func) \
M_ASN1_D2I_get_imp_set(r,func,free_func,\
V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL);
...
...
@@ -200,6 +209,13 @@ err:\
{ c.line=__LINE__; goto err; } \
c.slen-=(c.p-c.q);
#define M_ASN1_D2I_get_imp_set_type(type,r,func,free_func,a,b) \
c.q=c.p; \
if (d2i_ASN1_SET_OF_##type(&(r),&c.p,c.slen,func,free_func,a,b) \
== NULL) \
{ c.line=__LINE__; goto err; } \
c.slen-=(c.p-c.q);
#define M_ASN1_D2I_get_set_strings(r,func,a,b) \
c.q=c.p; \
if (d2i_ASN1_STRING_SET(&(r),&c.p,c.slen,a,b) == NULL) \
...
...
@@ -314,6 +330,12 @@ err:\
ret+=i2d_ASN1_SET(a,NULL,f,x,V_ASN1_CONTEXT_SPECIFIC, \
IS_SEQUENCE);
#define M_ASN1_I2D_len_IMP_SEQUENCE_opt_type(type,a,f,x) \
if ((a != NULL) && (sk_##type##_num(a) != 0)) \
ret+=i2d_ASN1_SET_OF_##type(a,NULL,f,x, \
V_ASN1_CONTEXT_SPECIFIC, \
IS_SEQUENCE);
#define M_ASN1_I2D_len_EXP_opt(a,f,mtag,v) \
if (a != NULL)\
{ \
...
...
@@ -371,6 +393,12 @@ err:\
{ i2d_ASN1_SET(a,&p,f,x,V_ASN1_CONTEXT_SPECIFIC, \
IS_SEQUENCE); }
#define M_ASN1_I2D_put_IMP_SEQUENCE_opt_type(type,a,f,x) \
if ((a != NULL) && (sk_##type##_num(a) != 0)) \
{ i2d_ASN1_SET_OF_##type(a,&p,f,x, \
V_ASN1_CONTEXT_SPECIFIC, \
IS_SEQUENCE); }
#define M_ASN1_I2D_put_EXP_opt(a,f,tag,v) \
if (a != NULL) \
{ \
...
...
crypto/asn1/p7_s_e.c
浏览文件 @
f73e07cf
...
...
@@ -76,7 +76,7 @@ unsigned char **pp;
M_ASN1_I2D_len_SET
(
a
->
recipientinfo
,
i2d_PKCS7_RECIP_INFO
);
M_ASN1_I2D_len_SET
(
a
->
md_algs
,
i2d_X509_ALGOR
);
M_ASN1_I2D_len
(
a
->
enc_data
,
i2d_PKCS7_ENC_CONTENT
);
M_ASN1_I2D_len_IMP_SEQUENCE_opt
(
a
->
cert
,
i2d_X509
,
0
);
M_ASN1_I2D_len_IMP_SEQUENCE_opt
_type
(
X509
,
a
->
cert
,
i2d_X509
,
0
);
M_ASN1_I2D_len_IMP_SET_opt
(
a
->
crl
,
i2d_X509_CRL
,
1
);
M_ASN1_I2D_len_SET
(
a
->
signer_info
,
i2d_PKCS7_SIGNER_INFO
);
...
...
@@ -86,7 +86,7 @@ unsigned char **pp;
M_ASN1_I2D_put_SET
(
a
->
recipientinfo
,
i2d_PKCS7_RECIP_INFO
);
M_ASN1_I2D_put_SET
(
a
->
md_algs
,
i2d_X509_ALGOR
);
M_ASN1_I2D_put
(
a
->
enc_data
,
i2d_PKCS7_ENC_CONTENT
);
M_ASN1_I2D_put_IMP_SEQUENCE_opt
(
a
->
cert
,
i2d_X509
,
0
);
M_ASN1_I2D_put_IMP_SEQUENCE_opt
_type
(
X509
,
a
->
cert
,
i2d_X509
,
0
);
M_ASN1_I2D_put_IMP_SET_opt
(
a
->
crl
,
i2d_X509_CRL
,
1
);
M_ASN1_I2D_put_SET
(
a
->
signer_info
,
i2d_PKCS7_SIGNER_INFO
);
...
...
@@ -107,7 +107,7 @@ long length;
PKCS7_RECIP_INFO_free
);
M_ASN1_D2I_get_set
(
ret
->
md_algs
,
d2i_X509_ALGOR
,
X509_ALGOR_free
);
M_ASN1_D2I_get
(
ret
->
enc_data
,
d2i_PKCS7_ENC_CONTENT
);
M_ASN1_D2I_get_IMP_set_opt
(
ret
->
cert
,
d2i_X509
,
X509_free
,
0
);
M_ASN1_D2I_get_IMP_set_opt
_type
(
X509
,
ret
->
cert
,
d2i_X509
,
X509_free
,
0
);
M_ASN1_D2I_get_IMP_set_opt
(
ret
->
crl
,
d2i_X509_CRL
,
X509_CRL_free
,
1
);
M_ASN1_D2I_get_set
(
ret
->
signer_info
,
d2i_PKCS7_SIGNER_INFO
,
PKCS7_SIGNER_INFO_free
);
...
...
@@ -141,7 +141,7 @@ PKCS7_SIGN_ENVELOPE *a;
sk_pop_free
(
a
->
recipientinfo
,
PKCS7_RECIP_INFO_free
);
sk_pop_free
(
a
->
md_algs
,
X509_ALGOR_free
);
PKCS7_ENC_CONTENT_free
(
a
->
enc_data
);
sk_pop_free
(
a
->
cert
,
X509_free
);
sk_
X509_
pop_free
(
a
->
cert
,
X509_free
);
sk_pop_free
(
a
->
crl
,
X509_CRL_free
);
sk_pop_free
(
a
->
signer_info
,
PKCS7_SIGNER_INFO_free
);
Free
((
char
*
)
a
);
...
...
crypto/asn1/p7_signd.c
浏览文件 @
f73e07cf
...
...
@@ -75,7 +75,7 @@ unsigned char **pp;
M_ASN1_I2D_len
(
a
->
version
,
i2d_ASN1_INTEGER
);
M_ASN1_I2D_len_SET
(
a
->
md_algs
,
i2d_X509_ALGOR
);
M_ASN1_I2D_len
(
a
->
contents
,
i2d_PKCS7
);
M_ASN1_I2D_len_IMP_SEQUENCE_opt
(
a
->
cert
,
i2d_X509
,
0
);
M_ASN1_I2D_len_IMP_SEQUENCE_opt
_type
(
X509
,
a
->
cert
,
i2d_X509
,
0
);
M_ASN1_I2D_len_IMP_SET_opt
(
a
->
crl
,
i2d_X509_CRL
,
1
);
M_ASN1_I2D_len_SET
(
a
->
signer_info
,
i2d_PKCS7_SIGNER_INFO
);
...
...
@@ -84,7 +84,7 @@ unsigned char **pp;
M_ASN1_I2D_put
(
a
->
version
,
i2d_ASN1_INTEGER
);
M_ASN1_I2D_put_SET
(
a
->
md_algs
,
i2d_X509_ALGOR
);
M_ASN1_I2D_put
(
a
->
contents
,
i2d_PKCS7
);
M_ASN1_I2D_put_IMP_SEQUENCE_opt
(
a
->
cert
,
i2d_X509
,
0
);
M_ASN1_I2D_put_IMP_SEQUENCE_opt
_type
(
X509
,
a
->
cert
,
i2d_X509
,
0
);
M_ASN1_I2D_put_IMP_SET_opt
(
a
->
crl
,
i2d_X509_CRL
,
1
);
M_ASN1_I2D_put_SET
(
a
->
signer_info
,
i2d_PKCS7_SIGNER_INFO
);
...
...
@@ -103,7 +103,7 @@ long length;
M_ASN1_D2I_get
(
ret
->
version
,
d2i_ASN1_INTEGER
);
M_ASN1_D2I_get_set
(
ret
->
md_algs
,
d2i_X509_ALGOR
,
X509_ALGOR_free
);
M_ASN1_D2I_get
(
ret
->
contents
,
d2i_PKCS7
);
M_ASN1_D2I_get_IMP_set_opt
(
ret
->
cert
,
d2i_X509
,
X509_free
,
0
);
M_ASN1_D2I_get_IMP_set_opt
_type
(
X509
,
ret
->
cert
,
d2i_X509
,
X509_free
,
0
);
M_ASN1_D2I_get_IMP_set_opt
(
ret
->
crl
,
d2i_X509_CRL
,
X509_CRL_free
,
1
);
M_ASN1_D2I_get_set
(
ret
->
signer_info
,
d2i_PKCS7_SIGNER_INFO
,
PKCS7_SIGNER_INFO_free
);
...
...
@@ -134,7 +134,7 @@ PKCS7_SIGNED *a;
ASN1_INTEGER_free
(
a
->
version
);
sk_pop_free
(
a
->
md_algs
,
X509_ALGOR_free
);
PKCS7_free
(
a
->
contents
);
sk_pop_free
(
a
->
cert
,
X509_free
);
sk_
X509_
pop_free
(
a
->
cert
,
X509_free
);
sk_pop_free
(
a
->
crl
,
X509_CRL_free
);
sk_pop_free
(
a
->
signer_info
,
PKCS7_SIGNER_INFO_free
);
Free
((
char
*
)
a
);
...
...
crypto/dh/Makefile.ssl
浏览文件 @
f73e07cf
...
...
@@ -87,7 +87,7 @@ $(ERRC).c: $(ERR).err
dh_check.o
:
../../include/bio.h ../../include/bn.h ../../include/buffer.h
dh_check.o
:
../../include/e_os.h ../../include/err.h ../../include/stack.h
dh_check.o
:
../cryptlib.h ../crypto.h ../opensslv.h dh.h
dh_err.o
:
../../include/err.h dh.h
dh_err.o
:
../../include/
bn.h ../../include/
err.h dh.h
dh_gen.o
:
../../include/bio.h ../../include/bn.h ../../include/buffer.h
dh_gen.o
:
../../include/e_os.h ../../include/err.h ../../include/stack.h
dh_gen.o
:
../cryptlib.h ../crypto.h ../opensslv.h dh.h
...
...
crypto/dsa/Makefile.ssl
浏览文件 @
f73e07cf
...
...
@@ -91,9 +91,10 @@ dsa_asn1.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
dsa_asn1.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
dsa_asn1.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
dsa_asn1.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
dsa_asn1.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
dsa_asn1.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
dsa_asn1.o
:
../cryptlib.h ../crypto.h ../opensslv.h dsa.h
dsa_asn1.o
:
../../include/ripemd.h ../../include/rsa.h
dsa_asn1.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
dsa_asn1.o
:
../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
dsa_asn1.o
:
../crypto.h ../opensslv.h dsa.h
dsa_err.o
:
../../include/bn.h ../../include/err.h dsa.h
dsa_gen.o
:
../../include/bio.h ../../include/bn.h ../../include/buffer.h
dsa_gen.o
:
../../include/e_os.h ../../include/err.h ../../include/rand.h
...
...
@@ -118,6 +119,6 @@ dsa_vrf.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h
dsa_vrf.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
dsa_vrf.o
:
../../include/rand.h ../../include/rc2.h ../../include/rc4.h
dsa_vrf.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
dsa_vrf.o
:
../../include/s
ha.h ../../include/stack.h ../../include/x509
.h
dsa_vrf.o
:
../../include/x509
_vfy.h ../cryptlib.h ../crypto.h ../opensslv
.h
dsa_vrf.o
:
dsa.h
dsa_vrf.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
dsa_vrf.o
:
../../include/x509
.h ../../include/x509_vfy.h ../cryptlib
.h
dsa_vrf.o
:
../crypto.h ../opensslv.h
dsa.h
crypto/err/Makefile.ssl
浏览文件 @
f73e07cf
...
...
@@ -89,9 +89,9 @@ err_all.o: ../../include/lhash.h ../../include/md2.h ../../include/md5.h
err_all.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pem2.h
err_all.o
:
../../include/pkcs12.h ../../include/pkcs7.h ../../include/rc2.h
err_all.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
err_all.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
err_all.o
:
../../include/
x509.h ../../include/x509_vfy.h ../../include/x509v3
.h
err_all.o
:
../crypto.h ../opensslv.h err.h
err_all.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
err_all.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
err_all.o
:
../
../include/x509v3.h ../
crypto.h ../opensslv.h err.h
err_prn.o
:
../../include/bio.h ../../include/buffer.h ../../include/e_os.h
err_prn.o
:
../../include/lhash.h ../../include/stack.h ../cryptlib.h
err_prn.o
:
../crypto.h ../opensslv.h err.h
crypto/evp/Makefile.ssl
浏览文件 @
f73e07cf
...
...
@@ -154,9 +154,9 @@ c_all.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
c_all.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
c_all.o
:
../../include/objects.h ../../include/pkcs12.h ../../include/pkcs7.h
c_all.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
c_all.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
ha
.h
c_all.o
:
../../include/s
tack.h ../../include/x509.h ../../include/x509_vfy
.h
c_all.o
:
../cryptlib.h ../crypto.h ../opensslv.h evp.h
c_all.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
afestack
.h
c_all.o
:
../../include/s
ha.h ../../include/stack.h ../../include/x509
.h
c_all.o
:
../
../include/x509_vfy.h ../
cryptlib.h ../crypto.h ../opensslv.h evp.h
digest.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
digest.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
digest.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -478,9 +478,9 @@ evp_key.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
evp_key.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
evp_key.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
evp_key.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
evp_key.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
evp_key.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
evp_key.o
:
../crypto.h ../opensslv.h evp.h
evp_key.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
evp_key.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
evp_key.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
evp_lib.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
evp_lib.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
evp_lib.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -497,9 +497,9 @@ evp_pbe.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
evp_pbe.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
evp_pbe.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
evp_pbe.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
evp_pbe.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
evp_pbe.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
evp_pbe.o
:
../crypto.h ../opensslv.h evp.h
evp_pbe.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
evp_pbe.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
evp_pbe.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
evp_pkey.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
evp_pkey.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
evp_pkey.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -507,9 +507,10 @@ evp_pkey.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
evp_pkey.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
evp_pkey.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rand.h
evp_pkey.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
evp_pkey.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
evp_pkey.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
evp_pkey.o
:
../cryptlib.h ../crypto.h ../opensslv.h evp.h
evp_pkey.o
:
../../include/ripemd.h ../../include/rsa.h
evp_pkey.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
evp_pkey.o
:
../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
evp_pkey.o
:
../crypto.h ../opensslv.h evp.h
m_dss.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
m_dss.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
m_dss.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -517,9 +518,9 @@ m_dss.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
m_dss.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
m_dss.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
m_dss.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
m_dss.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
m_dss.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
m_dss.o
:
../crypto.h ../opensslv.h evp.h
m_dss.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
m_dss.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
m_dss.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
m_dss1.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
m_dss1.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
m_dss1.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -527,9 +528,9 @@ m_dss1.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
m_dss1.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
m_dss1.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
m_dss1.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
m_dss1.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
m_dss1.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
m_dss1.o
:
../crypto.h ../opensslv.h evp.h
m_dss1.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
m_dss1.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
m_dss1.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
m_md2.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
m_md2.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
m_md2.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -537,9 +538,9 @@ m_md2.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
m_md2.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
m_md2.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
m_md2.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
m_md2.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
m_md2.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
m_md2.o
:
../crypto.h ../opensslv.h evp.h
m_md2.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
m_md2.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
m_md2.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
m_md5.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
m_md5.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
m_md5.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -547,9 +548,9 @@ m_md5.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
m_md5.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
m_md5.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
m_md5.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
m_md5.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
m_md5.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
m_md5.o
:
../crypto.h ../opensslv.h evp.h
m_md5.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
m_md5.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
m_md5.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
m_mdc2.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
m_mdc2.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
m_mdc2.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -557,9 +558,9 @@ m_mdc2.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
m_mdc2.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
m_mdc2.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
m_mdc2.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
m_mdc2.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
m_mdc2.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
m_mdc2.o
:
../crypto.h ../opensslv.h evp.h
m_mdc2.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
m_mdc2.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
m_mdc2.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
m_null.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
m_null.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
m_null.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -567,9 +568,9 @@ m_null.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
m_null.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
m_null.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
m_null.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
m_null.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
m_null.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
m_null.o
:
../crypto.h ../opensslv.h evp.h
m_null.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
m_null.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
m_null.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
m_ripemd.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
m_ripemd.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
m_ripemd.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -577,9 +578,9 @@ m_ripemd.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
m_ripemd.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
m_ripemd.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
m_ripemd.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
m_ripemd.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
m_ripemd.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
m_ripemd.o
:
../crypto.h ../opensslv.h evp.h
m_ripemd.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
m_ripemd.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
m_ripemd.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
m_sha.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
m_sha.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
m_sha.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -587,9 +588,9 @@ m_sha.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
m_sha.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
m_sha.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
m_sha.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
m_sha.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
m_sha.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
m_sha.o
:
../crypto.h ../opensslv.h evp.h
m_sha.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
m_sha.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
m_sha.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
m_sha1.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
m_sha1.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
m_sha1.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -597,9 +598,9 @@ m_sha1.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
m_sha1.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
m_sha1.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
m_sha1.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
m_sha1.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
m_sha1.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
m_sha1.o
:
../crypto.h ../opensslv.h evp.h
m_sha1.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
m_sha1.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
m_sha1.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
names.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
names.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
names.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -607,9 +608,9 @@ names.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
names.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
names.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
names.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
names.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
names.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
names.o
:
../crypto.h ../opensslv.h evp.h
names.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
names.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
names.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
p_dec.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p_dec.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p_dec.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -617,9 +618,9 @@ p_dec.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
p_dec.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
p_dec.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rand.h
p_dec.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
p_dec.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
ha
.h
p_dec.o
:
../../include/s
tack.h ../../include/x509.h ../../include/x509_vfy
.h
p_dec.o
:
../cryptlib.h ../crypto.h ../opensslv.h evp.h
p_dec.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
afestack
.h
p_dec.o
:
../../include/s
ha.h ../../include/stack.h ../../include/x509
.h
p_dec.o
:
../
../include/x509_vfy.h ../
cryptlib.h ../crypto.h ../opensslv.h evp.h
p_enc.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p_enc.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p_enc.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -627,9 +628,9 @@ p_enc.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
p_enc.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
p_enc.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rand.h
p_enc.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
p_enc.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
ha
.h
p_enc.o
:
../../include/s
tack.h ../../include/x509.h ../../include/x509_vfy
.h
p_enc.o
:
../cryptlib.h ../crypto.h ../opensslv.h evp.h
p_enc.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
afestack
.h
p_enc.o
:
../../include/s
ha.h ../../include/stack.h ../../include/x509
.h
p_enc.o
:
../
../include/x509_vfy.h ../
cryptlib.h ../crypto.h ../opensslv.h evp.h
p_lib.o
:
../../include/asn1.h ../../include/asn1_mac.h ../../include/bio.h
p_lib.o
:
../../include/blowfish.h ../../include/bn.h ../../include/buffer.h
p_lib.o
:
../../include/cast.h ../../include/des.h ../../include/dh.h
...
...
@@ -637,9 +638,9 @@ p_lib.o: ../../include/dsa.h ../../include/e_os.h ../../include/err.h
p_lib.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
p_lib.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
p_lib.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
p_lib.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
ha
.h
p_lib.o
:
../../include/s
tack.h ../../include/x509.h ../../include/x509_vfy
.h
p_lib.o
:
../cryptlib.h ../crypto.h ../opensslv.h evp.h
p_lib.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
afestack
.h
p_lib.o
:
../../include/s
ha.h ../../include/stack.h ../../include/x509
.h
p_lib.o
:
../
../include/x509_vfy.h ../
cryptlib.h ../crypto.h ../opensslv.h evp.h
p_open.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p_open.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p_open.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -647,9 +648,9 @@ p_open.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
p_open.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
p_open.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
p_open.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
p_open.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
p_open.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
p_open.o
:
../crypto.h ../opensslv.h evp.h
p_open.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
p_open.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
p_open.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
p_seal.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p_seal.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p_seal.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -657,9 +658,10 @@ p_seal.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
p_seal.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
p_seal.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rand.h
p_seal.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
p_seal.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
p_seal.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
p_seal.o
:
../cryptlib.h ../crypto.h ../opensslv.h evp.h
p_seal.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/safestack.h
p_seal.o
:
../../include/sha.h ../../include/stack.h ../../include/x509.h
p_seal.o
:
../../include/x509_vfy.h ../cryptlib.h ../crypto.h ../opensslv.h
p_seal.o
:
evp.h
p_sign.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p_sign.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p_sign.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -667,9 +669,9 @@ p_sign.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
p_sign.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
p_sign.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
p_sign.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
p_sign.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
p_sign.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
p_sign.o
:
../crypto.h ../opensslv.h evp.h
p_sign.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
p_sign.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
p_sign.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
p_verify.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p_verify.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p_verify.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -677,6 +679,6 @@ p_verify.o: ../../include/e_os.h ../../include/err.h ../../include/idea.h
p_verify.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
p_verify.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
p_verify.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
p_verify.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
p_verify.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
p_verify.o
:
../crypto.h ../opensslv.h evp.h
p_verify.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
p_verify.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
p_verify.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h evp.h
crypto/pem/Makefile.ssl
浏览文件 @
f73e07cf
...
...
@@ -112,9 +112,9 @@ pem_all.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
pem_all.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
pem_all.o
:
../../include/opensslv.h ../../include/pkcs7.h ../../include/rc2.h
pem_all.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
pem_all.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
pem_all.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib.h pem
.h
pem_all.o
:
pem2.h
pem_all.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
pem_all.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
pem_all.o
:
../cryptlib.h pem.h
pem2.h
pem_err.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
pem_err.o
:
../../include/bn.h ../../include/cast.h ../../include/crypto.h
pem_err.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -123,8 +123,8 @@ pem_err.o: ../../include/md2.h ../../include/md5.h ../../include/mdc2.h
pem_err.o
:
../../include/objects.h ../../include/opensslv.h
pem_err.o
:
../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
pem_err.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
pem_err.o
:
../../include/s
ha.h ../../include/stack.h ../../include/x509
.h
pem_err.o
:
../../include/x509_vfy.h pem.h pem2.h
pem_err.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
pem_err.o
:
../../include/x509
.h ../../include/x509
_vfy.h pem.h pem2.h
pem_info.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
pem_info.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
pem_info.o
:
../../include/crypto.h ../../include/des.h ../../include/dh.h
...
...
@@ -133,9 +133,9 @@ pem_info.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
pem_info.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
pem_info.o
:
../../include/opensslv.h ../../include/pkcs7.h ../../include/rc2.h
pem_info.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
pem_info.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
pem_info.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib.h pem
.h
pem_info.o
:
pem2.h
pem_info.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
pem_info.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
pem_info.o
:
../cryptlib.h pem.h
pem2.h
pem_lib.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
pem_lib.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
pem_lib.o
:
../../include/crypto.h ../../include/des.h ../../include/dh.h
...
...
@@ -144,9 +144,9 @@ pem_lib.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
pem_lib.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
pem_lib.o
:
../../include/opensslv.h ../../include/pkcs7.h ../../include/rand.h
pem_lib.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
pem_lib.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
ha
.h
pem_lib.o
:
../../include/s
tack.h ../../include/x509.h ../../include/x509_vfy
.h
pem_lib.o
:
../cryptlib.h pem.h pem2.h
pem_lib.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
afestack
.h
pem_lib.o
:
../../include/s
ha.h ../../include/stack.h ../../include/x509
.h
pem_lib.o
:
../
../include/x509_vfy.h ../
cryptlib.h pem.h pem2.h
pem_seal.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
pem_seal.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
pem_seal.o
:
../../include/crypto.h ../../include/des.h ../../include/dh.h
...
...
@@ -155,9 +155,10 @@ pem_seal.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
pem_seal.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
pem_seal.o
:
../../include/opensslv.h ../../include/pkcs7.h ../../include/rand.h
pem_seal.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
pem_seal.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
pem_seal.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
pem_seal.o
:
../cryptlib.h pem.h pem2.h
pem_seal.o
:
../../include/ripemd.h ../../include/rsa.h
pem_seal.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
pem_seal.o
:
../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h pem.h
pem_seal.o
:
pem2.h
pem_sign.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
pem_sign.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
pem_sign.o
:
../../include/crypto.h ../../include/des.h ../../include/dh.h
...
...
@@ -166,6 +167,7 @@ pem_sign.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
pem_sign.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
pem_sign.o
:
../../include/opensslv.h ../../include/pkcs7.h ../../include/rand.h
pem_sign.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
pem_sign.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
pem_sign.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
pem_sign.o
:
../cryptlib.h pem.h pem2.h
pem_sign.o
:
../../include/ripemd.h ../../include/rsa.h
pem_sign.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
pem_sign.o
:
../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h pem.h
pem_sign.o
:
pem2.h
crypto/pkcs12/Makefile.ssl
浏览文件 @
f73e07cf
...
...
@@ -97,9 +97,10 @@ p12_add.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
p12_add.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
p12_add.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
p12_add.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
p12_add.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
p12_add.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
p12_add.o
:
../cryptlib.h ../crypto.h ../opensslv.h pkcs12.h
p12_add.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/safestack.h
p12_add.o
:
../../include/sha.h ../../include/stack.h ../../include/x509.h
p12_add.o
:
../../include/x509_vfy.h ../cryptlib.h ../crypto.h ../opensslv.h
p12_add.o
:
pkcs12.h
p12_attr.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p12_attr.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p12_attr.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -107,9 +108,10 @@ p12_attr.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
p12_attr.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
p12_attr.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
p12_attr.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
p12_attr.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
p12_attr.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
p12_attr.o
:
../cryptlib.h ../crypto.h ../opensslv.h pkcs12.h
p12_attr.o
:
../../include/ripemd.h ../../include/rsa.h
p12_attr.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
p12_attr.o
:
../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
p12_attr.o
:
../crypto.h ../opensslv.h pkcs12.h
p12_bags.o
:
../../include/asn1.h ../../include/asn1_mac.h ../../include/bio.h
p12_bags.o
:
../../include/blowfish.h ../../include/bn.h ../../include/buffer.h
p12_bags.o
:
../../include/cast.h ../../include/des.h ../../include/dh.h
...
...
@@ -118,9 +120,9 @@ p12_bags.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
p12_bags.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
p12_bags.o
:
../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
p12_bags.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
p12_bags.o
:
../../include/s
ha.h ../../include/stack.h ../../include/x509
.h
p12_bags.o
:
../../include/x509
_vfy.h ../cryptlib.h ../crypto.h ../opensslv
.h
p12_bags.o
:
pkcs12.h
p12_bags.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
p12_bags.o
:
../../include/x509
.h ../../include/x509_vfy.h ../cryptlib
.h
p12_bags.o
:
../crypto.h ../opensslv.h
pkcs12.h
p12_crpt.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p12_crpt.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p12_crpt.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -128,9 +130,10 @@ p12_crpt.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
p12_crpt.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
p12_crpt.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
p12_crpt.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
p12_crpt.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
p12_crpt.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
p12_crpt.o
:
../cryptlib.h ../crypto.h ../opensslv.h pkcs12.h
p12_crpt.o
:
../../include/ripemd.h ../../include/rsa.h
p12_crpt.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
p12_crpt.o
:
../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
p12_crpt.o
:
../crypto.h ../opensslv.h pkcs12.h
p12_crt.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p12_crt.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p12_crt.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -138,9 +141,10 @@ p12_crt.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
p12_crt.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
p12_crt.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
p12_crt.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
p12_crt.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
p12_crt.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
p12_crt.o
:
../cryptlib.h ../crypto.h ../opensslv.h pkcs12.h
p12_crt.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/safestack.h
p12_crt.o
:
../../include/sha.h ../../include/stack.h ../../include/x509.h
p12_crt.o
:
../../include/x509_vfy.h ../cryptlib.h ../crypto.h ../opensslv.h
p12_crt.o
:
pkcs12.h
p12_decr.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p12_decr.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p12_decr.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -148,9 +152,10 @@ p12_decr.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
p12_decr.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
p12_decr.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
p12_decr.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
p12_decr.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
p12_decr.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
p12_decr.o
:
../cryptlib.h ../crypto.h ../opensslv.h pkcs12.h
p12_decr.o
:
../../include/ripemd.h ../../include/rsa.h
p12_decr.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
p12_decr.o
:
../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
p12_decr.o
:
../crypto.h ../opensslv.h pkcs12.h
p12_init.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p12_init.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p12_init.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -158,9 +163,10 @@ p12_init.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
p12_init.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
p12_init.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
p12_init.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
p12_init.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
p12_init.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
p12_init.o
:
../cryptlib.h ../crypto.h ../opensslv.h pkcs12.h
p12_init.o
:
../../include/ripemd.h ../../include/rsa.h
p12_init.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
p12_init.o
:
../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
p12_init.o
:
../crypto.h ../opensslv.h pkcs12.h
p12_key.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p12_key.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p12_key.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -168,9 +174,10 @@ p12_key.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
p12_key.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
p12_key.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
p12_key.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
p12_key.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
p12_key.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
p12_key.o
:
../cryptlib.h ../crypto.h ../opensslv.h pkcs12.h
p12_key.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/safestack.h
p12_key.o
:
../../include/sha.h ../../include/stack.h ../../include/x509.h
p12_key.o
:
../../include/x509_vfy.h ../cryptlib.h ../crypto.h ../opensslv.h
p12_key.o
:
pkcs12.h
p12_kiss.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p12_kiss.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p12_kiss.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -178,9 +185,10 @@ p12_kiss.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
p12_kiss.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
p12_kiss.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
p12_kiss.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
p12_kiss.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
p12_kiss.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
p12_kiss.o
:
../cryptlib.h ../crypto.h ../opensslv.h pkcs12.h
p12_kiss.o
:
../../include/ripemd.h ../../include/rsa.h
p12_kiss.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
p12_kiss.o
:
../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
p12_kiss.o
:
../crypto.h ../opensslv.h pkcs12.h
p12_lib.o
:
../../include/asn1.h ../../include/asn1_mac.h ../../include/bio.h
p12_lib.o
:
../../include/blowfish.h ../../include/bn.h ../../include/buffer.h
p12_lib.o
:
../../include/cast.h ../../include/des.h ../../include/dh.h
...
...
@@ -189,9 +197,9 @@ p12_lib.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
p12_lib.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
p12_lib.o
:
../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
p12_lib.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
p12_lib.o
:
../../include/s
ha.h ../../include/stack.h ../../include/x509
.h
p12_lib.o
:
../../include/x509
_vfy.h ../cryptlib.h ../crypto.h ../opensslv
.h
p12_lib.o
:
pkcs12.h
p12_lib.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
p12_lib.o
:
../../include/x509
.h ../../include/x509_vfy.h ../cryptlib
.h
p12_lib.o
:
../crypto.h ../opensslv.h
pkcs12.h
p12_mac.o
:
../../include/asn1.h ../../include/asn1_mac.h ../../include/bio.h
p12_mac.o
:
../../include/blowfish.h ../../include/bn.h ../../include/buffer.h
p12_mac.o
:
../../include/cast.h ../../include/des.h ../../include/dh.h
...
...
@@ -200,9 +208,9 @@ p12_mac.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
p12_mac.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
p12_mac.o
:
../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
p12_mac.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
p12_mac.o
:
../../include/s
ha.h ../../include/stack.h ../../include/x509
.h
p12_mac.o
:
../../include/x509
_vfy.h ../cryptlib.h ../crypto.h ../opensslv
.h
p12_mac.o
:
pkcs12.h
p12_mac.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
p12_mac.o
:
../../include/x509
.h ../../include/x509_vfy.h ../cryptlib
.h
p12_mac.o
:
../crypto.h ../opensslv.h
pkcs12.h
p12_mutl.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p12_mutl.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p12_mutl.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -211,9 +219,9 @@ p12_mutl.o: ../../include/hmac.h ../../include/idea.h ../../include/md2.h
p12_mutl.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
p12_mutl.o
:
../../include/pkcs7.h ../../include/rand.h ../../include/rc2.h
p12_mutl.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
p12_mutl.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
p12_mutl.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
p12_mutl.o
:
../crypto.h ../opensslv.h pkcs12.h
p12_mutl.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
p12_mutl.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
p12_mutl.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h pkcs12.h
p12_sbag.o
:
../../include/asn1.h ../../include/asn1_mac.h ../../include/bio.h
p12_sbag.o
:
../../include/blowfish.h ../../include/bn.h ../../include/buffer.h
p12_sbag.o
:
../../include/cast.h ../../include/des.h ../../include/dh.h
...
...
@@ -222,9 +230,9 @@ p12_sbag.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
p12_sbag.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
p12_sbag.o
:
../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
p12_sbag.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
p12_sbag.o
:
../../include/s
ha.h ../../include/stack.h ../../include/x509
.h
p12_sbag.o
:
../../include/x509
_vfy.h ../cryptlib.h ../crypto.h ../opensslv
.h
p12_sbag.o
:
pkcs12.h
p12_sbag.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
p12_sbag.o
:
../../include/x509
.h ../../include/x509_vfy.h ../cryptlib
.h
p12_sbag.o
:
../crypto.h ../opensslv.h
pkcs12.h
p12_utl.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
p12_utl.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
p12_utl.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -232,9 +240,10 @@ p12_utl.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
p12_utl.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
p12_utl.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
p12_utl.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
p12_utl.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
p12_utl.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
p12_utl.o
:
../cryptlib.h ../crypto.h ../opensslv.h pkcs12.h
p12_utl.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/safestack.h
p12_utl.o
:
../../include/sha.h ../../include/stack.h ../../include/x509.h
p12_utl.o
:
../../include/x509_vfy.h ../cryptlib.h ../crypto.h ../opensslv.h
p12_utl.o
:
pkcs12.h
pk12err.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
pk12err.o
:
../../include/bn.h ../../include/cast.h ../../include/des.h
pk12err.o
:
../../include/dh.h ../../include/dsa.h ../../include/err.h
...
...
@@ -242,5 +251,6 @@ pk12err.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
pk12err.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
pk12err.o
:
../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
pk12err.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
pk12err.o
:
../../include/sha.h ../../include/stack.h ../../include/x509.h
pk12err.o
:
../../include/x509_vfy.h ../crypto.h ../opensslv.h pkcs12.h
pk12err.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
pk12err.o
:
../../include/x509.h ../../include/x509_vfy.h ../crypto.h
pk12err.o
:
../opensslv.h pkcs12.h
crypto/pkcs7/Makefile.ssl
浏览文件 @
f73e07cf
...
...
@@ -93,9 +93,10 @@ pk7_doit.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
pk7_doit.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
pk7_doit.o
:
../../include/mdc2.h ../../include/objects.h ../../include/rand.h
pk7_doit.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
pk7_doit.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
pk7_doit.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
pk7_doit.o
:
../cryptlib.h ../crypto.h ../opensslv.h pkcs7.h
pk7_doit.o
:
../../include/ripemd.h ../../include/rsa.h
pk7_doit.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
pk7_doit.o
:
../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
pk7_doit.o
:
../crypto.h ../opensslv.h pkcs7.h
pk7_lib.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
pk7_lib.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
pk7_lib.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -103,15 +104,16 @@ pk7_lib.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
pk7_lib.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
pk7_lib.o
:
../../include/mdc2.h ../../include/objects.h ../../include/rc2.h
pk7_lib.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
pk7_lib.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
pk7_lib.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
pk7_lib.o
:
../crypto.h ../opensslv.h pkcs7.h
pk7_lib.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
pk7_lib.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
pk7_lib.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h pkcs7.h
pkcs7err.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
pkcs7err.o
:
../../include/bn.h ../../include/cast.h ../../include/des.h
pkcs7err.o
:
../../include/dh.h ../../include/dsa.h ../../include/err.h
pkcs7err.o
:
../../include/evp.h ../../include/idea.h ../../include/md2.h
pkcs7err.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
pkcs7err.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
pkcs7err.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
pkcs7err.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
pkcs7err.o
:
../crypto.h ../opensslv.h pkcs7.h
pkcs7err.o
:
../../include/ripemd.h ../../include/rsa.h
pkcs7err.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
pkcs7err.o
:
../../include/x509.h ../../include/x509_vfy.h ../crypto.h
pkcs7err.o
:
../opensslv.h pkcs7.h
crypto/pkcs7/pk7_doit.c
浏览文件 @
f73e07cf
...
...
@@ -650,7 +650,8 @@ PKCS7_SIGNER_INFO *si;
PKCS7_ISSUER_AND_SERIAL
*
ias
;
int
ret
=
0
,
i
;
int
md_type
;
STACK
*
sk
,
*
cert
;
STACK
*
sk
;
STACK_OF
(
X509
)
*
cert
;
BIO
*
btmp
;
X509
*
x509
;
EVP_PKEY
*
pkey
;
...
...
crypto/pkcs7/pk7_lib.c
浏览文件 @
f73e07cf
...
...
@@ -250,7 +250,7 @@ PKCS7 *p7;
X509
*
x509
;
{
int
i
;
STACK
**
sk
;
STACK
_OF
(
X509
)
**
sk
;
i
=
OBJ_obj2nid
(
p7
->
type
);
switch
(
i
)
...
...
@@ -267,9 +267,9 @@ X509 *x509;
}
if
(
*
sk
==
NULL
)
*
sk
=
sk_new_null
();
*
sk
=
sk_
X509_
new_null
();
CRYPTO_add
(
&
x509
->
references
,
1
,
CRYPTO_LOCK_X509
);
sk_
push
(
*
sk
,(
char
*
)
x509
);
sk_
X509_push
(
*
sk
,
x509
);
return
(
1
);
}
...
...
crypto/pkcs7/pkcs7.h
浏览文件 @
f73e07cf
...
...
@@ -106,7 +106,7 @@ typedef struct pkcs7_signed_st
{
ASN1_INTEGER
*
version
;
/* version 1 */
STACK
/* X509_ALGOR's */
*
md_algs
;
/* md used */
STACK
/* X509 */
*
cert
;
/* [ 0 ] */
STACK
_OF
(
X509
)
*
cert
;
/* [ 0 ] */
STACK
/* X509_CRL */
*
crl
;
/* [ 1 ] */
STACK
/* PKCS7_SIGNER_INFO */
*
signer_info
;
...
...
@@ -133,7 +133,7 @@ typedef struct pkcs7_signedandenveloped_st
{
ASN1_INTEGER
*
version
;
/* version 1 */
STACK
/* X509_ALGOR's */
*
md_algs
;
/* md used */
STACK
/* X509 */
*
cert
;
/* [ 0 ] */
STACK
_OF
(
X509
)
*
cert
;
/* [ 0 ] */
STACK
/* X509_CRL */
*
crl
;
/* [ 1 ] */
STACK
/* PKCS7_SIGNER_INFO */
*
signer_info
;
...
...
crypto/rsa/Makefile.ssl
浏览文件 @
f73e07cf
...
...
@@ -114,9 +114,10 @@ rsa_saos.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
rsa_saos.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
rsa_saos.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
rsa_saos.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
rsa_saos.o
:
../../include/ripemd.h ../../include/sha.h ../../include/stack.h
rsa_saos.o
:
../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
rsa_saos.o
:
../crypto.h ../opensslv.h rsa.h
rsa_saos.o
:
../../include/ripemd.h ../../include/safestack.h
rsa_saos.o
:
../../include/sha.h ../../include/stack.h ../../include/x509.h
rsa_saos.o
:
../../include/x509_vfy.h ../cryptlib.h ../crypto.h ../opensslv.h
rsa_saos.o
:
rsa.h
rsa_sign.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
rsa_sign.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
rsa_sign.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -124,9 +125,10 @@ rsa_sign.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
rsa_sign.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
rsa_sign.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
rsa_sign.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
rsa_sign.o
:
../../include/ripemd.h ../../include/sha.h ../../include/stack.h
rsa_sign.o
:
../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
rsa_sign.o
:
../crypto.h ../opensslv.h rsa.h
rsa_sign.o
:
../../include/ripemd.h ../../include/safestack.h
rsa_sign.o
:
../../include/sha.h ../../include/stack.h ../../include/x509.h
rsa_sign.o
:
../../include/x509_vfy.h ../cryptlib.h ../crypto.h ../opensslv.h
rsa_sign.o
:
rsa.h
rsa_ssl.o
:
../../include/bio.h ../../include/bn.h ../../include/buffer.h
rsa_ssl.o
:
../../include/e_os.h ../../include/err.h ../../include/rand.h
rsa_ssl.o
:
../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h rsa.h
crypto/stack/Makefile.ssl
浏览文件 @
f73e07cf
...
...
@@ -25,7 +25,7 @@ LIBOBJ=stack.o
SRC
=
$(LIBSRC)
EXHEADER
=
stack.h
EXHEADER
=
stack.h
safestack.h
HEADER
=
$(EXHEADER)
ALL
=
$(GENERAL)
$(SRC)
$(HEADER)
...
...
crypto/stack/safestack.h
0 → 100644
浏览文件 @
f73e07cf
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
*
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* openssl-core@openssl.org.
*
* 5. Products derived from this software may not be called "OpenSSL"
* nor may "OpenSSL" appear in their names without prior written
* permission of the OpenSSL Project.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
*
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* ====================================================================
*
* This product includes cryptographic software written by Eric Young
* (eay@cryptsoft.com). This product includes software written by Tim
* Hudson (tjh@cryptsoft.com).
*
*/
#ifndef HEADER_SAFESTACK_H
#define HEADER_SAFESTACK_H
#include "stack.h"
#define STACK_OF(type) STACK_##type
#define DECLARE_STACK_OF(type) \
typedef struct stack_st_##type \
{ \
STACK stack; \
} STACK_OF(type); \
STACK_OF(type) *sk_##type##_new(int (*cmp)(type **,type **)); \
STACK_OF(type) *sk_##type##_new_null(void); \
void sk_##type##_free(STACK_OF(type) *sk); \
int sk_##type##_num(STACK_OF(type) *sk); \
type *sk_##type##_value(STACK_OF(type) *sk,int n); \
type *sk_##type##_set(STACK_OF(type) *sk,int n,type *v); \
void sk_##type##_zero(STACK_OF(type) *sk); \
int sk_##type##_push(STACK_OF(type) *sk,type *v); \
int sk_##type##_find(STACK_OF(type) *sk,type *v); \
void sk_##type##_delete(STACK_OF(type) *sk,int n); \
void sk_##type##_delete_ptr(STACK_OF(type) *sk,type *v); \
void sk_##type##_set_cmp_func(STACK_OF(type) *sk,int (*cmp)(type **,type **)); \
STACK_OF(type) *sk_##type##_dup(STACK_OF(type) *sk); \
void sk_##type##_pop_free(STACK_OF(type) *sk,void (*func)(type *)); \
type *sk_##type##_shift(STACK_OF(type) *sk);
#define IMPLEMENT_STACK_OF(type) \
STACK_OF(type) *sk_##type##_new(int (*cmp)(type **,type **)) \
{ return (STACK_OF(type) *)sk_new(cmp); } \
STACK_OF(type) *sk_##type##_new_null() \
{ return (STACK_OF(type) *)sk_new_null(); } \
void sk_##type##_free(STACK_OF(type) *sk) \
{ sk_free((STACK *)sk); } \
int sk_##type##_num(STACK_OF(type) *sk) \
{ return sk_num((STACK *)sk); } \
type *sk_##type##_value(STACK_OF(type) *sk,int n) \
{ return (type *)sk_value((STACK *)sk,n); } \
type *sk_##type##_set(STACK_OF(type) *sk,int n,type *v) \
{ return (type *)(sk_value((STACK *)sk,n)=(char *)v); } \
void sk_##type##_zero(STACK_OF(type) *sk) \
{ sk_zero((STACK *)sk); } \
int sk_##type##_push(STACK_OF(type) *sk,type *v) \
{ return sk_push((STACK *)sk,(char *)v); } \
int sk_##type##_find(STACK_OF(type) *sk,type *v) \
{ return sk_find((STACK *)sk,(char *)v); } \
void sk_##type##_delete(STACK_OF(type) *sk,int n) \
{ sk_delete((STACK *)sk,n); } \
void sk_##type##_delete_ptr(STACK_OF(type) *sk,type *v) \
{ sk_delete_ptr((STACK *)sk,(char *)v); } \
void sk_##type##_set_cmp_func(STACK_OF(type) *sk,int (*cmp)(type **,type **)) \
{ sk_set_cmp_func((STACK *)sk,cmp); } \
STACK_OF(type) *sk_##type##_dup(STACK_OF(type) *sk) \
{ return (STACK_OF(type) *)sk_dup((STACK *)sk); } \
void sk_##type##_pop_free(STACK_OF(type) *sk,void (*func)(type *)) \
{ sk_pop_free((STACK *)sk,func); } \
type *sk_##type##_shift(STACK_OF(type) *sk) \
{ return (type *)sk_shift((STACK *)sk); }
#endif
/* ndef HEADER_SAFESTACK_H */
crypto/x509/Makefile.ssl
浏览文件 @
f73e07cf
...
...
@@ -104,8 +104,8 @@ by_dir.o: ../../include/idea.h ../../include/lhash.h ../../include/md2.h
by_dir.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
by_dir.o
:
../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
by_dir.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
by_dir.o
:
../../include/s
ha.h ../../include/stack.h ../cryptlib.h ../crypto
.h
by_dir.o
:
../opensslv.h x509.h x509_vfy.h
by_dir.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
by_dir.o
:
../
cryptlib.h ../crypto.h ../
opensslv.h x509.h x509_vfy.h
by_file.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
by_file.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
by_file.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -114,9 +114,9 @@ by_file.o: ../../include/idea.h ../../include/lhash.h ../../include/md2.h
by_file.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
by_file.o
:
../../include/pem.h ../../include/pem2.h ../../include/pkcs7.h
by_file.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
by_file.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
ha
.h
by_file.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv.h x509
.h
by_file.o
:
x509_vfy.h
by_file.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
afestack
.h
by_file.o
:
../../include/s
ha.h ../../include/stack.h ../cryptlib.h ../crypto
.h
by_file.o
:
../opensslv.h x509.h
x509_vfy.h
v3_net.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
v3_net.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
v3_net.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -124,9 +124,9 @@ v3_net.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
v3_net.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
v3_net.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
v3_net.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
v3_net.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
ha
.h
v3_net.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv.h x509
.h
v3_net.o
:
x509_vfy.h
v3_net.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
afestack
.h
v3_net.o
:
../../include/s
ha.h ../../include/stack.h ../cryptlib.h ../crypto
.h
v3_net.o
:
../opensslv.h x509.h
x509_vfy.h
v3_x509.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
v3_x509.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
v3_x509.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -134,9 +134,9 @@ v3_x509.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
v3_x509.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
v3_x509.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
v3_x509.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
v3_x509.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
ha
.h
v3_x509.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv.h x509
.h
v3_x509.o
:
x509_vfy.h
v3_x509.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
afestack
.h
v3_x509.o
:
../../include/s
ha.h ../../include/stack.h ../cryptlib.h ../crypto
.h
v3_x509.o
:
../opensslv.h x509.h
x509_vfy.h
x509_cmp.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509_cmp.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509_cmp.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -144,9 +144,9 @@ x509_cmp.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
x509_cmp.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
x509_cmp.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
x509_cmp.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
x509_cmp.o
:
../../include/ripemd.h ../../include/rsa.h
../../include/sha.h
x509_cmp.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv
.h
x509_cmp.o
:
x509.h x509_vfy.h
x509_cmp.o
:
../../include/ripemd.h ../../include/rsa.h
x509_cmp.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
x509_cmp.o
:
../cryptlib.h ../crypto.h ../opensslv.h
x509.h x509_vfy.h
x509_d2.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509_d2.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509_d2.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -154,9 +154,9 @@ x509_d2.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
x509_d2.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
x509_d2.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
x509_d2.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
x509_d2.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
ha
.h
x509_d2.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv.h x509
.h
x509_d2.o
:
x509_vfy.h
x509_d2.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
afestack
.h
x509_d2.o
:
../../include/s
ha.h ../../include/stack.h ../cryptlib.h ../crypto
.h
x509_d2.o
:
../opensslv.h x509.h
x509_vfy.h
x509_def.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509_def.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509_def.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -164,9 +164,9 @@ x509_def.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
x509_def.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
x509_def.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
x509_def.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
x509_def.o
:
../../include/ripemd.h ../../include/rsa.h
../../include/sha.h
x509_def.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv
.h
x509_def.o
:
x509.h x509_vfy.h
x509_def.o
:
../../include/ripemd.h ../../include/rsa.h
x509_def.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
x509_def.o
:
../cryptlib.h ../crypto.h ../opensslv.h
x509.h x509_vfy.h
x509_err.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509_err.o
:
../../include/bn.h ../../include/cast.h ../../include/des.h
x509_err.o
:
../../include/dh.h ../../include/dsa.h ../../include/err.h
...
...
@@ -174,8 +174,8 @@ x509_err.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
x509_err.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
x509_err.o
:
../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
x509_err.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
x509_err.o
:
../../include/s
ha.h ../../include/stack.h ../crypto.h ../opensslv
.h
x509_err.o
:
x509.h x509_vfy.h
x509_err.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
x509_err.o
:
../crypto.h ../opensslv.h
x509.h x509_vfy.h
x509_ext.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509_ext.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509_ext.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -183,9 +183,9 @@ x509_ext.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
x509_ext.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
x509_ext.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
x509_ext.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
x509_ext.o
:
../../include/ripemd.h ../../include/rsa.h
../../include/sha.h
x509_ext.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv
.h
x509_ext.o
:
x509.h x509_vfy.h
x509_ext.o
:
../../include/ripemd.h ../../include/rsa.h
x509_ext.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
x509_ext.o
:
../cryptlib.h ../crypto.h ../opensslv.h
x509.h x509_vfy.h
x509_lu.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509_lu.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509_lu.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -194,8 +194,8 @@ x509_lu.o: ../../include/idea.h ../../include/lhash.h ../../include/md2.h
x509_lu.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
x509_lu.o
:
../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
x509_lu.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
x509_lu.o
:
../../include/s
ha.h ../../include/stack.h ../cryptlib.h ../crypto
.h
x509_lu.o
:
../opensslv.h x509.h x509_vfy.h
x509_lu.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
x509_lu.o
:
../
cryptlib.h ../crypto.h ../
opensslv.h x509.h x509_vfy.h
x509_obj.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509_obj.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509_obj.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -204,8 +204,8 @@ x509_obj.o: ../../include/idea.h ../../include/lhash.h ../../include/md2.h
x509_obj.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
x509_obj.o
:
../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
x509_obj.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
x509_obj.o
:
../../include/s
ha.h ../../include/stack.h ../cryptlib.h ../crypto
.h
x509_obj.o
:
../opensslv.h x509.h x509_vfy.h
x509_obj.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
x509_obj.o
:
../
cryptlib.h ../crypto.h ../
opensslv.h x509.h x509_vfy.h
x509_r2x.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509_r2x.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509_r2x.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -213,9 +213,9 @@ x509_r2x.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
x509_r2x.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
x509_r2x.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
x509_r2x.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
x509_r2x.o
:
../../include/ripemd.h ../../include/rsa.h
../../include/sha.h
x509_r2x.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv
.h
x509_r2x.o
:
x509.h x509_vfy.h
x509_r2x.o
:
../../include/ripemd.h ../../include/rsa.h
x509_r2x.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
x509_r2x.o
:
../cryptlib.h ../crypto.h ../opensslv.h
x509.h x509_vfy.h
x509_req.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509_req.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509_req.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -224,8 +224,9 @@ x509_req.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h
x509_req.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pem.h
x509_req.o
:
../../include/pem2.h ../../include/pkcs7.h ../../include/rc2.h
x509_req.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
x509_req.o
:
../../include/rsa.h ../../include/sha.h ../../include/stack.h
x509_req.o
:
../cryptlib.h ../crypto.h ../opensslv.h x509.h x509_vfy.h
x509_req.o
:
../../include/rsa.h ../../include/safestack.h ../../include/sha.h
x509_req.o
:
../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h
x509_req.o
:
x509.h x509_vfy.h
x509_set.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509_set.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509_set.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -233,9 +234,9 @@ x509_set.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
x509_set.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
x509_set.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
x509_set.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
x509_set.o
:
../../include/ripemd.h ../../include/rsa.h
../../include/sha.h
x509_set.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv
.h
x509_set.o
:
x509.h x509_vfy.h
x509_set.o
:
../../include/ripemd.h ../../include/rsa.h
x509_set.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
x509_set.o
:
../cryptlib.h ../crypto.h ../opensslv.h
x509.h x509_vfy.h
x509_txt.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509_txt.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509_txt.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -244,8 +245,8 @@ x509_txt.o: ../../include/idea.h ../../include/lhash.h ../../include/md2.h
x509_txt.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
x509_txt.o
:
../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
x509_txt.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
x509_txt.o
:
../../include/s
ha.h ../../include/stack.h ../cryptlib.h ../crypto
.h
x509_txt.o
:
../opensslv.h x509.h x509_vfy.h
x509_txt.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
x509_txt.o
:
../
cryptlib.h ../crypto.h ../
opensslv.h x509.h x509_vfy.h
x509_v3.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509_v3.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509_v3.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -253,9 +254,9 @@ x509_v3.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
x509_v3.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
x509_v3.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
x509_v3.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
x509_v3.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
ha
.h
x509_v3.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv.h x509
.h
x509_v3.o
:
x509_vfy.h
x509_v3.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
afestack
.h
x509_v3.o
:
../../include/s
ha.h ../../include/stack.h ../cryptlib.h ../crypto
.h
x509_v3.o
:
../opensslv.h x509.h
x509_vfy.h
x509_vfy.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509_vfy.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509_vfy.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -264,8 +265,8 @@ x509_vfy.o: ../../include/idea.h ../../include/lhash.h ../../include/md2.h
x509_vfy.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
x509_vfy.o
:
../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
x509_vfy.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
x509_vfy.o
:
../../include/s
ha.h ../../include/stack.h ../cryptlib.h ../crypto
.h
x509_vfy.o
:
../opensslv.h x509.h x509_vfy.h
x509_vfy.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
x509_vfy.o
:
../
cryptlib.h ../crypto.h ../
opensslv.h x509.h x509_vfy.h
x509name.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509name.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509name.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -273,9 +274,9 @@ x509name.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
x509name.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
x509name.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
x509name.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
x509name.o
:
../../include/ripemd.h ../../include/rsa.h
../../include/sha.h
x509name.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv
.h
x509name.o
:
x509.h x509_vfy.h
x509name.o
:
../../include/ripemd.h ../../include/rsa.h
x509name.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
x509name.o
:
../cryptlib.h ../crypto.h ../opensslv.h
x509.h x509_vfy.h
x509pack.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509pack.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509pack.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -283,9 +284,9 @@ x509pack.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
x509pack.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
x509pack.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
x509pack.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
x509pack.o
:
../../include/ripemd.h ../../include/rsa.h
../../include/sha.h
x509pack.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv
.h
x509pack.o
:
x509.h x509_vfy.h
x509pack.o
:
../../include/ripemd.h ../../include/rsa.h
x509pack.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
x509pack.o
:
../cryptlib.h ../crypto.h ../opensslv.h
x509.h x509_vfy.h
x509rset.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509rset.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509rset.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -293,9 +294,9 @@ x509rset.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
x509rset.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
x509rset.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
x509rset.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
x509rset.o
:
../../include/ripemd.h ../../include/rsa.h
../../include/sha.h
x509rset.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv
.h
x509rset.o
:
x509.h x509_vfy.h
x509rset.o
:
../../include/ripemd.h ../../include/rsa.h
x509rset.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
x509rset.o
:
../cryptlib.h ../crypto.h ../opensslv.h
x509.h x509_vfy.h
x509type.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x509type.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x509type.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -303,9 +304,9 @@ x509type.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
x509type.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
x509type.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
x509type.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
x509type.o
:
../../include/ripemd.h ../../include/rsa.h
../../include/sha.h
x509type.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv
.h
x509type.o
:
x509.h x509_vfy.h
x509type.o
:
../../include/ripemd.h ../../include/rsa.h
x509type.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
x509type.o
:
../cryptlib.h ../crypto.h ../opensslv.h
x509.h x509_vfy.h
x_all.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
x_all.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
x_all.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -313,6 +314,6 @@ x_all.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
x_all.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
x_all.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
x_all.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
x_all.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
ha
.h
x_all.o
:
../../include/s
tack.h ../cryptlib.h ../crypto.h ../opensslv.h x509
.h
x_all.o
:
x509_vfy.h
x_all.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/s
afestack
.h
x_all.o
:
../../include/s
ha.h ../../include/stack.h ../cryptlib.h ../crypto
.h
x_all.o
:
../opensslv.h x509.h
x509_vfy.h
crypto/x509/x509.h
浏览文件 @
f73e07cf
...
...
@@ -66,6 +66,7 @@ extern "C" {
#include "stack.h"
#include "asn1.h"
#include "safestack.h"
#ifndef NO_RSA
#include "rsa.h"
...
...
@@ -155,6 +156,8 @@ typedef struct X509_name_st
unsigned
long
hash
;
/* Keep the hash around for lookups */
}
X509_NAME
;
DECLARE_STACK_OF
(
X509_NAME
)
#define X509_EX_V_NETSCAPE_HACK 0x8000
#define X509_EX_V_INIT 0x0001
typedef
struct
X509_extension_st
...
...
@@ -228,6 +231,9 @@ typedef struct x509_st
char
*
name
;
}
X509
;
DECLARE_STACK_OF
(
X509
)
DECLARE_ASN1_SET_OF
(
X509
)
typedef
struct
X509_revoked_st
{
ASN1_INTEGER
*
serialNumber
;
...
...
@@ -870,9 +876,9 @@ ASN1_STRING * X509v3_unpack_string(ASN1_STRING **ex,int type,
int
X509_verify_cert
(
X509_STORE_CTX
*
ctx
);
/* lookup a cert from a X509 STACK */
X509
*
X509_find_by_issuer_and_serial
(
STACK
*
sk
,
X509_NAME
*
name
,
ASN1_INTEGER
*
serial
);
X509
*
X509_find_by_subject
(
STACK
*
sk
,
X509_NAME
*
name
);
X509
*
X509_find_by_issuer_and_serial
(
STACK
_OF
(
X509
)
*
sk
,
X509_NAME
*
name
,
ASN1_INTEGER
*
serial
);
X509
*
X509_find_by_subject
(
STACK
_OF
(
X509
)
*
sk
,
X509_NAME
*
name
);
int
i2d_PBEPARAM
(
PBEPARAM
*
a
,
unsigned
char
**
pp
);
PBEPARAM
*
PBEPARAM_new
(
void
);
...
...
crypto/x509/x509_cmp.c
浏览文件 @
f73e07cf
...
...
@@ -218,7 +218,7 @@ X509_NAME *x;
/* Search a stack of X509 for a match */
X509
*
X509_find_by_issuer_and_serial
(
sk
,
name
,
serial
)
STACK
*
sk
;
STACK
_OF
(
X509
)
*
sk
;
X509_NAME
*
name
;
ASN1_INTEGER
*
serial
;
{
...
...
@@ -230,9 +230,9 @@ ASN1_INTEGER *serial;
cinf
.
serialNumber
=
serial
;
cinf
.
issuer
=
name
;
for
(
i
=
0
;
i
<
sk_num
(
sk
);
i
++
)
for
(
i
=
0
;
i
<
sk_
X509_
num
(
sk
);
i
++
)
{
x509
=
(
X509
*
)
sk
_value
(
sk
,
i
);
x509
=
sk_X509
_value
(
sk
,
i
);
if
(
X509_issuer_and_serial_cmp
(
x509
,
&
x
)
==
0
)
return
(
x509
);
}
...
...
@@ -240,15 +240,15 @@ ASN1_INTEGER *serial;
}
X509
*
X509_find_by_subject
(
sk
,
name
)
STACK
*
sk
;
STACK
_OF
(
X509
)
*
sk
;
X509_NAME
*
name
;
{
X509
*
x509
;
int
i
;
for
(
i
=
0
;
i
<
sk_num
(
sk
);
i
++
)
for
(
i
=
0
;
i
<
sk_
X509_
num
(
sk
);
i
++
)
{
x509
=
(
X509
*
)
sk
_value
(
sk
,
i
);
x509
=
sk_X509
_value
(
sk
,
i
);
if
(
X509_NAME_cmp
(
X509_get_subject_name
(
x509
),
name
)
==
0
)
return
(
x509
);
}
...
...
crypto/x509/x509_lu.c
浏览文件 @
f73e07cf
...
...
@@ -421,7 +421,7 @@ void X509_STORE_CTX_init(ctx,store,x509,chain)
X509_STORE_CTX
*
ctx
;
X509_STORE
*
store
;
X509
*
x509
;
STACK
*
chain
;
STACK
_OF
(
X509
)
*
chain
;
{
ctx
->
ctx
=
store
;
ctx
->
current_method
=
0
;
...
...
crypto/x509/x509_vfy.c
浏览文件 @
f73e07cf
...
...
@@ -112,7 +112,7 @@ X509_STORE_CTX *ctx;
int
depth
,
i
,
ok
=
0
;
int
num
;
int
(
*
cb
)();
STACK
*
sktmp
=
NULL
;
STACK
_OF
(
X509
)
*
sktmp
=
NULL
;
if
(
ctx
->
cert
==
NULL
)
{
...
...
@@ -138,7 +138,8 @@ X509_STORE_CTX *ctx;
}
/* We use a temporary so we can chop and hack at it */
if
((
ctx
->
untrusted
!=
NULL
)
&&
(
sktmp
=
sk_dup
(
ctx
->
untrusted
))
==
NULL
)
if
(
ctx
->
untrusted
!=
NULL
&&
(
sktmp
=
sk_X509_dup
(
ctx
->
untrusted
))
==
NULL
)
{
X509err
(
X509_F_X509_VERIFY_CERT
,
ERR_R_MALLOC_FAILURE
);
goto
end
;
...
...
@@ -171,7 +172,7 @@ X509_STORE_CTX *ctx;
goto
end
;
}
CRYPTO_add
(
&
xtmp
->
references
,
1
,
CRYPTO_LOCK_X509
);
sk_
delete_ptr
(
sktmp
,(
char
*
)
xtmp
);
sk_
X509_delete_ptr
(
sktmp
,
xtmp
);
ctx
->
last_untrusted
++
;
x
=
xtmp
;
num
++
;
...
...
@@ -290,7 +291,7 @@ X509_STORE_CTX *ctx;
end:
X509_get_pubkey_parameters
(
NULL
,
ctx
->
chain
);
}
if
(
sktmp
!=
NULL
)
sk_free
(
sktmp
);
if
(
sktmp
!=
NULL
)
sk_
X509_
free
(
sktmp
);
if
(
chain_ss
!=
NULL
)
X509_free
(
chain_ss
);
return
(
ok
);
}
...
...
@@ -659,9 +660,11 @@ X509 *x;
void
X509_STORE_CTX_set_chain
(
ctx
,
sk
)
X509_STORE_CTX
*
ctx
;
STACK
*
sk
;
STACK
_OF
(
X509
)
*
sk
;
{
ctx
->
untrusted
=
sk
;
}
IMPLEMENT_STACK_OF
(
X509
)
IMPLEMENT_ASN1_SET_OF
(
X509
)
IMPLEMENT_STACK_OF
(
X509_NAME
)
crypto/x509/x509_vfy.h
浏览文件 @
f73e07cf
...
...
@@ -192,7 +192,7 @@ struct x509_store_state_st
/* The following are set by the caller */
X509
*
cert
;
/* The cert to check */
STACK
*
untrusted
;
/* chain of X509s - untrusted - passed in */
STACK
_OF
(
X509
)
*
untrusted
;
/* chain of X509s - untrusted - passed in */
/* The following is built up */
int
depth
;
/* how far to go looking up certs */
...
...
@@ -262,7 +262,7 @@ X509_STORE *X509_STORE_new(void );
void
X509_STORE_free
(
X509_STORE
*
v
);
void
X509_STORE_CTX_init
(
X509_STORE_CTX
*
ctx
,
X509_STORE
*
store
,
X509
*
x509
,
STACK
*
chain
);
X509
*
x509
,
STACK_OF
(
X509
)
*
chain
);
void
X509_STORE_CTX_cleanup
(
X509_STORE_CTX
*
ctx
);
X509_LOOKUP
*
X509_STORE_add_lookup
(
X509_STORE
*
v
,
X509_LOOKUP_METHOD
*
m
);
...
...
@@ -317,7 +317,7 @@ int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx);
X509
*
X509_STORE_CTX_get_current_cert
(
X509_STORE_CTX
*
ctx
);
STACK
*
X509_STORE_CTX_get_chain
(
X509_STORE_CTX
*
ctx
);
void
X509_STORE_CTX_set_cert
(
X509_STORE_CTX
*
c
,
X509
*
x
);
void
X509_STORE_CTX_set_chain
(
X509_STORE_CTX
*
c
,
STACK
/* X509 */
*
sk
);
void
X509_STORE_CTX_set_chain
(
X509_STORE_CTX
*
c
,
STACK
_OF
(
X509
)
*
sk
);
#else
...
...
crypto/x509v3/Makefile.ssl
浏览文件 @
f73e07cf
...
...
@@ -96,9 +96,10 @@ v3_akey.o: ../../include/err.h ../../include/evp.h ../../include/idea.h
v3_akey.o
:
../../include/lhash.h ../../include/md2.h ../../include/md5.h
v3_akey.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
v3_akey.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
v3_akey.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
v3_akey.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
v3_akey.o
:
../cryptlib.h ../crypto.h ../opensslv.h x509v3.h
v3_akey.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/safestack.h
v3_akey.o
:
../../include/sha.h ../../include/stack.h ../../include/x509.h
v3_akey.o
:
../../include/x509_vfy.h ../cryptlib.h ../crypto.h ../opensslv.h
v3_akey.o
:
x509v3.h
v3_alt.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
v3_alt.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
v3_alt.o
:
../../include/conf.h ../../include/des.h ../../include/dh.h
...
...
@@ -107,9 +108,9 @@ v3_alt.o: ../../include/evp.h ../../include/idea.h ../../include/lhash.h
v3_alt.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
v3_alt.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
v3_alt.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
v3_alt.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
v3_alt.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
v3_alt.o
:
../crypto.h ../opensslv.h x509v3.h
v3_alt.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
v3_alt.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
v3_alt.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h x509v3.h
v3_bcons.o
:
../../include/asn1.h ../../include/asn1_mac.h ../../include/bio.h
v3_bcons.o
:
../../include/blowfish.h ../../include/bn.h ../../include/buffer.h
v3_bcons.o
:
../../include/cast.h ../../include/conf.h ../../include/des.h
...
...
@@ -118,9 +119,10 @@ v3_bcons.o: ../../include/err.h ../../include/evp.h ../../include/idea.h
v3_bcons.o
:
../../include/lhash.h ../../include/md2.h ../../include/md5.h
v3_bcons.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
v3_bcons.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
v3_bcons.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
v3_bcons.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
v3_bcons.o
:
../cryptlib.h ../crypto.h ../opensslv.h x509v3.h
v3_bcons.o
:
../../include/ripemd.h ../../include/rsa.h
v3_bcons.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
v3_bcons.o
:
../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
v3_bcons.o
:
../crypto.h ../opensslv.h x509v3.h
v3_bitst.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
v3_bitst.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
v3_bitst.o
:
../../include/conf.h ../../include/des.h ../../include/dh.h
...
...
@@ -129,9 +131,9 @@ v3_bitst.o: ../../include/evp.h ../../include/idea.h ../../include/lhash.h
v3_bitst.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
v3_bitst.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
v3_bitst.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
v3_bitst.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
v3_bitst.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
v3_bitst.o
:
../crypto.h ../opensslv.h x509v3.h
v3_bitst.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
v3_bitst.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
v3_bitst.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h x509v3.h
v3_conf.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
v3_conf.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
v3_conf.o
:
../../include/conf.h ../../include/des.h ../../include/dh.h
...
...
@@ -140,9 +142,9 @@ v3_conf.o: ../../include/evp.h ../../include/idea.h ../../include/lhash.h
v3_conf.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
v3_conf.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
v3_conf.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
v3_conf.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
v3_conf.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
v3_conf.o
:
../crypto.h ../opensslv.h x509v3.h
v3_conf.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
v3_conf.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
v3_conf.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h x509v3.h
v3_enum.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
v3_enum.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
v3_enum.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -150,9 +152,10 @@ v3_enum.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
v3_enum.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
v3_enum.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
v3_enum.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
v3_enum.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
v3_enum.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
v3_enum.o
:
../cryptlib.h ../crypto.h ../opensslv.h x509v3.h
v3_enum.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/safestack.h
v3_enum.o
:
../../include/sha.h ../../include/stack.h ../../include/x509.h
v3_enum.o
:
../../include/x509_vfy.h ../cryptlib.h ../crypto.h ../opensslv.h
v3_enum.o
:
x509v3.h
v3_extku.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
v3_extku.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
v3_extku.o
:
../../include/conf.h ../../include/des.h ../../include/dh.h
...
...
@@ -161,9 +164,9 @@ v3_extku.o: ../../include/evp.h ../../include/idea.h ../../include/lhash.h
v3_extku.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
v3_extku.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
v3_extku.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
v3_extku.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
v3_extku.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
v3_extku.o
:
../crypto.h ../opensslv.h x509v3.h
v3_extku.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
v3_extku.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
v3_extku.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h x509v3.h
v3_genn.o
:
../../include/asn1.h ../../include/asn1_mac.h ../../include/bio.h
v3_genn.o
:
../../include/blowfish.h ../../include/bn.h ../../include/buffer.h
v3_genn.o
:
../../include/cast.h ../../include/conf.h ../../include/des.h
...
...
@@ -172,9 +175,10 @@ v3_genn.o: ../../include/err.h ../../include/evp.h ../../include/idea.h
v3_genn.o
:
../../include/lhash.h ../../include/md2.h ../../include/md5.h
v3_genn.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
v3_genn.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
v3_genn.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
v3_genn.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
v3_genn.o
:
../cryptlib.h ../crypto.h ../opensslv.h x509v3.h
v3_genn.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/safestack.h
v3_genn.o
:
../../include/sha.h ../../include/stack.h ../../include/x509.h
v3_genn.o
:
../../include/x509_vfy.h ../cryptlib.h ../crypto.h ../opensslv.h
v3_genn.o
:
x509v3.h
v3_ia5.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
v3_ia5.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
v3_ia5.o
:
../../include/conf.h ../../include/des.h ../../include/dh.h
...
...
@@ -183,9 +187,9 @@ v3_ia5.o: ../../include/evp.h ../../include/idea.h ../../include/lhash.h
v3_ia5.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
v3_ia5.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
v3_ia5.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
v3_ia5.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
v3_ia5.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
v3_ia5.o
:
../crypto.h ../opensslv.h x509v3.h
v3_ia5.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
v3_ia5.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
v3_ia5.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h x509v3.h
v3_int.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
v3_int.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
v3_int.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -193,9 +197,10 @@ v3_int.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
v3_int.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
v3_int.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
v3_int.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
v3_int.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
v3_int.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
v3_int.o
:
../cryptlib.h ../crypto.h ../opensslv.h x509v3.h
v3_int.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/safestack.h
v3_int.o
:
../../include/sha.h ../../include/stack.h ../../include/x509.h
v3_int.o
:
../../include/x509_vfy.h ../cryptlib.h ../crypto.h ../opensslv.h
v3_int.o
:
x509v3.h
v3_lib.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
v3_lib.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
v3_lib.o
:
../../include/conf.h ../../include/des.h ../../include/dh.h
...
...
@@ -204,9 +209,9 @@ v3_lib.o: ../../include/evp.h ../../include/idea.h ../../include/lhash.h
v3_lib.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
v3_lib.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
v3_lib.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
v3_lib.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
v3_lib.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
v3_lib.o
:
../crypto.h ../opensslv.h x509v3.h
v3_lib.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
v3_lib.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
v3_lib.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h x509v3.h
v3_pku.o
:
../../include/asn1.h ../../include/asn1_mac.h ../../include/bio.h
v3_pku.o
:
../../include/blowfish.h ../../include/bn.h ../../include/buffer.h
v3_pku.o
:
../../include/cast.h ../../include/des.h ../../include/dh.h
...
...
@@ -215,9 +220,9 @@ v3_pku.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
v3_pku.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
v3_pku.o
:
../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
v3_pku.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
v3_pku.o
:
../../include/s
ha.h ../../include/stack.h ../../include/x509
.h
v3_pku.o
:
../../include/x509
_vfy.h ../cryptlib.h ../crypto.h ../opensslv
.h
v3_pku.o
:
x509v3.h
v3_pku.o
:
../../include/s
afestack.h ../../include/sha.h ../../include/stack
.h
v3_pku.o
:
../../include/x509
.h ../../include/x509_vfy.h ../cryptlib
.h
v3_pku.o
:
../crypto.h ../opensslv.h
x509v3.h
v3_prn.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
v3_prn.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
v3_prn.o
:
../../include/conf.h ../../include/des.h ../../include/dh.h
...
...
@@ -226,9 +231,9 @@ v3_prn.o: ../../include/evp.h ../../include/idea.h ../../include/lhash.h
v3_prn.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
v3_prn.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
v3_prn.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
v3_prn.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
v3_prn.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
v3_prn.o
:
../crypto.h ../opensslv.h x509v3.h
v3_prn.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
v3_prn.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
v3_prn.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h x509v3.h
v3_skey.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
v3_skey.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
v3_skey.o
:
../../include/des.h ../../include/dh.h ../../include/dsa.h
...
...
@@ -236,9 +241,10 @@ v3_skey.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
v3_skey.o
:
../../include/idea.h ../../include/md2.h ../../include/md5.h
v3_skey.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
v3_skey.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
v3_skey.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
v3_skey.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
v3_skey.o
:
../cryptlib.h ../crypto.h ../opensslv.h x509v3.h
v3_skey.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/safestack.h
v3_skey.o
:
../../include/sha.h ../../include/stack.h ../../include/x509.h
v3_skey.o
:
../../include/x509_vfy.h ../cryptlib.h ../crypto.h ../opensslv.h
v3_skey.o
:
x509v3.h
v3_sxnet.o
:
../../include/asn1.h ../../include/asn1_mac.h ../../include/bio.h
v3_sxnet.o
:
../../include/blowfish.h ../../include/bn.h ../../include/buffer.h
v3_sxnet.o
:
../../include/cast.h ../../include/conf.h ../../include/des.h
...
...
@@ -247,9 +253,10 @@ v3_sxnet.o: ../../include/err.h ../../include/evp.h ../../include/idea.h
v3_sxnet.o
:
../../include/lhash.h ../../include/md2.h ../../include/md5.h
v3_sxnet.o
:
../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
v3_sxnet.o
:
../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
v3_sxnet.o
:
../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
v3_sxnet.o
:
../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
v3_sxnet.o
:
../cryptlib.h ../crypto.h ../opensslv.h x509v3.h
v3_sxnet.o
:
../../include/ripemd.h ../../include/rsa.h
v3_sxnet.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
v3_sxnet.o
:
../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
v3_sxnet.o
:
../crypto.h ../opensslv.h x509v3.h
v3_utl.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
v3_utl.o
:
../../include/bn.h ../../include/buffer.h ../../include/cast.h
v3_utl.o
:
../../include/conf.h ../../include/des.h ../../include/dh.h
...
...
@@ -258,9 +265,9 @@ v3_utl.o: ../../include/evp.h ../../include/idea.h ../../include/lhash.h
v3_utl.o
:
../../include/md2.h ../../include/md5.h ../../include/mdc2.h
v3_utl.o
:
../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
v3_utl.o
:
../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
v3_utl.o
:
../../include/rsa.h ../../include/s
ha.h ../../include/stack
.h
v3_utl.o
:
../../include/
x509.h ../../include/x509_vfy.h ../cryptlib
.h
v3_utl.o
:
../crypto.h ../opensslv.h x509v3.h
v3_utl.o
:
../../include/rsa.h ../../include/s
afestack.h ../../include/sha
.h
v3_utl.o
:
../../include/
stack.h ../../include/x509.h ../../include/x509_vfy
.h
v3_utl.o
:
../crypt
lib.h ../crypt
o.h ../opensslv.h x509v3.h
v3err.o
:
../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
v3err.o
:
../../include/bn.h ../../include/cast.h ../../include/des.h
v3err.o
:
../../include/dh.h ../../include/dsa.h ../../include/err.h
...
...
@@ -268,5 +275,6 @@ v3err.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
v3err.o
:
../../include/md5.h ../../include/mdc2.h ../../include/objects.h
v3err.o
:
../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
v3err.o
:
../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
v3err.o
:
../../include/sha.h ../../include/stack.h ../../include/x509.h
v3err.o
:
../../include/x509_vfy.h ../crypto.h ../opensslv.h x509v3.h
v3err.o
:
../../include/safestack.h ../../include/sha.h ../../include/stack.h
v3err.o
:
../../include/x509.h ../../include/x509_vfy.h ../crypto.h
v3err.o
:
../opensslv.h x509v3.h
ssl/Makefile.ssl
浏览文件 @
f73e07cf
此差异已折叠。
点击以展开。
ssl/s23_srvr.c
浏览文件 @
f73e07cf
...
...
@@ -256,7 +256,7 @@ SSL *s;
if
(
s
->
options
&
SSL_OP_NON_EXPORT_FIRST
)
{
STACK
*
sk
;
STACK
_OF
(
SSL_CIPHER
)
*
sk
;
SSL_CIPHER
*
c
;
int
ne2
,
ne3
;
...
...
@@ -287,9 +287,9 @@ SSL *s;
if
(
sk
!=
NULL
)
{
ne2
=
ne3
=
0
;
for
(
j
=
0
;
j
<
sk_num
(
sk
);
j
++
)
for
(
j
=
0
;
j
<
sk_
SSL_CIPHER_
num
(
sk
);
j
++
)
{
c
=
(
SSL_CIPHER
*
)
sk
_value
(
sk
,
j
);
c
=
sk_SSL_CIPHER
_value
(
sk
,
j
);
if
(
!
SSL_C_IS_EXPORT
(
c
))
{
if
((
c
->
id
>>
24L
)
==
2L
)
...
...
ssl/s2_clnt.c
浏览文件 @
f73e07cf
...
...
@@ -302,7 +302,7 @@ SSL *s;
unsigned
char
*
buf
;
unsigned
char
*
p
;
int
i
,
j
;
STACK
*
sk
=
NULL
,
*
cl
;
STACK
_OF
(
SSL_CIPHER
)
*
sk
=
NULL
,
*
cl
;
buf
=
(
unsigned
char
*
)
s
->
init_buf
->
data
;
p
=
buf
;
...
...
@@ -411,7 +411,7 @@ SSL *s;
/* load the ciphers */
sk
=
ssl_bytes_to_cipher_list
(
s
,
p
,
s
->
s2
->
tmp
.
csl
,
&
s
->
session
->
ciphers
);
&
s
->
session
->
ciphers
);
p
+=
s
->
s2
->
tmp
.
csl
;
if
(
sk
==
NULL
)
{
...
...
@@ -420,7 +420,7 @@ SSL *s;
return
(
-
1
);
}
sk_set_cmp_func
(
sk
,
ssl_cipher_ptr_id_cmp
);
sk_
SSL_CIPHER_
set_cmp_func
(
sk
,
ssl_cipher_ptr_id_cmp
);
/* get the array of ciphers we will accept */
cl
=
ssl_get_ciphers_by_id
(
s
);
...
...
@@ -430,19 +430,20 @@ SSL *s;
* will check against the list we origionally sent and
* for performance reasons we should not bother to match
* the two lists up just to check. */
for
(
i
=
0
;
i
<
sk_num
(
cl
);
i
++
)
for
(
i
=
0
;
i
<
sk_
SSL_CIPHER_
num
(
cl
);
i
++
)
{
if
(
sk_find
(
sk
,
sk_value
(
cl
,
i
))
>=
0
)
if
(
sk_SSL_CIPHER_find
(
sk
,
sk_SSL_CIPHER_value
(
cl
,
i
))
>=
0
)
break
;
}
if
(
i
>=
sk_num
(
cl
))
if
(
i
>=
sk_
SSL_CIPHER_
num
(
cl
))
{
ssl2_return_error
(
s
,
SSL2_PE_NO_CIPHER
);
SSLerr
(
SSL_F_GET_SERVER_HELLO
,
SSL_R_NO_CIPHER_MATCH
);
return
(
-
1
);
}
s
->
session
->
cipher
=
(
SSL_CIPHER
*
)
sk
_value
(
cl
,
i
);
s
->
session
->
cipher
=
sk_SSL_CIPHER
_value
(
cl
,
i
);
}
if
((
s
->
session
!=
NULL
)
&&
(
s
->
session
->
peer
!=
NULL
))
...
...
@@ -894,7 +895,7 @@ int type;
int
len
;
unsigned
char
*
data
;
{
STACK
*
sk
=
NULL
;
STACK
_OF
(
X509
)
*
sk
=
NULL
;
EVP_PKEY
*
pkey
=
NULL
;
CERT
*
c
=
NULL
;
int
i
;
...
...
@@ -908,8 +909,7 @@ unsigned char *data;
goto
err
;
}
if
(((
sk
=
sk_new_null
())
==
NULL
)
||
(
!
sk_push
(
sk
,(
char
*
)
x509
)))
if
((
sk
=
sk_X509_new_null
())
==
NULL
||
!
sk_X509_push
(
sk
,
x509
))
{
SSLerr
(
SSL_F_SSL2_SET_CERTIFICATE
,
ERR_R_MALLOC_FAILURE
);
goto
err
;
...
...
@@ -957,7 +957,7 @@ unsigned char *data;
goto
err
;
ret
=
1
;
err:
sk_free
(
sk
);
sk_
X509_
free
(
sk
);
X509_free
(
x509
);
EVP_PKEY_free
(
pkey
);
return
(
ret
);
...
...
ssl/s2_srvr.c
浏览文件 @
f73e07cf
...
...
@@ -465,8 +465,8 @@ SSL *s;
{
int
i
,
n
;
unsigned
char
*
p
;
STACK
*
cs
;
/* a stack of SSL_CIPHERS */
STACK
*
cl
;
/* the ones we want to use */
STACK
_OF
(
SSL_CIPHER
)
*
cs
;
/* a stack of SSL_CIPHERS */
STACK
_OF
(
SSL_CIPHER
)
*
cl
;
/* the ones we want to use */
int
z
;
/* This is a bit of a hack to check for the correct packet
...
...
@@ -574,11 +574,11 @@ SSL *s;
cl
=
ssl_get_ciphers_by_id
(
s
);
for
(
z
=
0
;
z
<
sk_num
(
cs
);
z
++
)
for
(
z
=
0
;
z
<
sk_
SSL_CIPHER_
num
(
cs
);
z
++
)
{
if
(
sk_
find
(
cl
,
sk
_value
(
cs
,
z
))
<
0
)
if
(
sk_
SSL_CIPHER_find
(
cl
,
sk_SSL_CIPHER
_value
(
cs
,
z
))
<
0
)
{
sk_delete
(
cs
,
z
);
sk_
SSL_CIPHER_
delete
(
cs
,
z
);
z
--
;
}
}
...
...
@@ -608,7 +608,7 @@ SSL *s;
{
unsigned
char
*
p
,
*
d
;
int
n
,
hit
;
STACK
*
sk
;
STACK
_OF
(
SSL_CIPHER
)
*
sk
;
p
=
(
unsigned
char
*
)
s
->
init_buf
->
data
;
if
(
s
->
state
==
SSL2_ST_SEND_SERVER_HELLO_A
)
...
...
@@ -787,7 +787,7 @@ SSL *s;
unsigned
char
*
ccd
;
int
i
,
j
,
ctype
,
ret
=
-
1
;
X509
*
x509
=
NULL
;
STACK
*
sk
=
NULL
;
STACK
_OF
(
X509
)
*
sk
=
NULL
;
ccd
=
s
->
s2
->
tmp
.
ccl
;
if
(
s
->
state
==
SSL2_ST_SEND_REQUEST_CERTIFICATE_A
)
...
...
@@ -876,7 +876,7 @@ SSL *s;
goto
msg_end
;
}
if
(((
sk
=
sk_
new_null
())
==
NULL
)
||
(
!
sk_push
(
sk
,(
char
*
)
x509
)))
if
(((
sk
=
sk_
X509_new_null
())
==
NULL
)
||
(
!
sk_X509_push
(
sk
,
x509
)))
{
SSLerr
(
SSL_F_REQUEST_CERTIFICATE
,
ERR_R_MALLOC_FAILURE
);
goto
msg_end
;
...
...
@@ -933,7 +933,7 @@ msg_end:
ssl2_return_error
(
s
,
SSL2_PE_BAD_CERTIFICATE
);
}
end:
sk_free
(
sk
);
sk_
X509_
free
(
sk
);
X509_free
(
x509
);
return
(
ret
);
}
...
...
ssl/s3_both.c
浏览文件 @
f73e07cf
...
...
@@ -245,9 +245,9 @@ X509 *x;
/* Thawte special :-) */
if
(
s
->
ctx
->
extra_certs
!=
NULL
)
for
(
i
=
0
;
i
<
sk_num
(
s
->
ctx
->
extra_certs
);
i
++
)
for
(
i
=
0
;
i
<
sk_
X509_
num
(
s
->
ctx
->
extra_certs
);
i
++
)
{
x
=
(
X509
*
)
sk
_value
(
s
->
ctx
->
extra_certs
,
i
);
x
=
sk_X509
_value
(
s
->
ctx
->
extra_certs
,
i
);
n
=
i2d_X509
(
x
,
NULL
);
if
(
!
BUF_MEM_grow
(
buf
,(
int
)(
n
+
l
+
3
)))
{
...
...
ssl/s3_clnt.c
浏览文件 @
f73e07cf
...
...
@@ -531,11 +531,11 @@ SSL *s;
if
(
s
->
ctx
->
comp_methods
==
NULL
)
j
=
0
;
else
j
=
sk_num
(
s
->
ctx
->
comp_methods
);
j
=
sk_
SSL_COMP_
num
(
s
->
ctx
->
comp_methods
);
*
(
p
++
)
=
1
+
j
;
for
(
i
=
0
;
i
<
j
;
i
++
)
{
comp
=
(
SSL_COMP
*
)
sk
_value
(
s
->
ctx
->
comp_methods
,
i
);
comp
=
sk_SSL_COMP
_value
(
s
->
ctx
->
comp_methods
,
i
);
*
(
p
++
)
=
comp
->
id
;
}
*
(
p
++
)
=
0
;
/* Add the NULL method */
...
...
@@ -560,7 +560,7 @@ err:
static
int
ssl3_get_server_hello
(
s
)
SSL
*
s
;
{
STACK
*
sk
;
STACK
_OF
(
SSL_CIPHER
)
*
sk
;
SSL_CIPHER
*
c
;
unsigned
char
*
p
,
*
d
;
int
i
,
al
,
ok
;
...
...
@@ -645,7 +645,7 @@ SSL *s;
p
+=
ssl_put_cipher_by_char
(
s
,
NULL
,
NULL
);
sk
=
ssl_get_ciphers_by_id
(
s
);
i
=
sk_
find
(
sk
,(
char
*
)
c
);
i
=
sk_
SSL_CIPHER_find
(
sk
,
c
);
if
(
i
<
0
)
{
/* we did not say we would use this cipher */
...
...
@@ -707,7 +707,7 @@ SSL *s;
unsigned
long
n
,
nc
,
llen
,
l
;
X509
*
x
=
NULL
;
unsigned
char
*
p
,
*
d
,
*
q
;
STACK
*
sk
=
NULL
;
STACK
_OF
(
X509
)
*
sk
=
NULL
;
CERT
*
c
;
EVP_PKEY
*
pkey
=
NULL
;
...
...
@@ -738,7 +738,7 @@ SSL *s;
}
d
=
p
=
(
unsigned
char
*
)
s
->
init_buf
->
data
;
if
((
sk
=
sk_new_null
())
==
NULL
)
if
((
sk
=
sk_
X509_
new_null
())
==
NULL
)
{
SSLerr
(
SSL_F_SSL3_GET_SERVER_CERTIFICATE
,
ERR_R_MALLOC_FAILURE
);
goto
err
;
...
...
@@ -775,7 +775,7 @@ SSL *s;
SSLerr
(
SSL_F_SSL3_GET_SERVER_CERTIFICATE
,
SSL_R_CERT_LENGTH_MISMATCH
);
goto
f_err
;
}
if
(
!
sk_
push
(
sk
,(
char
*
)
x
))
if
(
!
sk_
X509_push
(
sk
,
x
))
{
SSLerr
(
SSL_F_SSL3_GET_SERVER_CERTIFICATE
,
ERR_R_MALLOC_FAILURE
);
goto
err
;
...
...
@@ -800,7 +800,7 @@ SSL *s;
s
->
session
->
cert
=
c
;
c
->
cert_chain
=
sk
;
x
=
(
X509
*
)
sk
_value
(
sk
,
0
);
x
=
sk_X509
_value
(
sk
,
0
);
sk
=
NULL
;
pkey
=
X509_get_pubkey
(
x
);
...
...
@@ -845,7 +845,7 @@ f_err:
err:
EVP_PKEY_free
(
pkey
);
X509_free
(
x
);
sk_pop_free
(
sk
,
X509_free
);
sk_
X509_
pop_free
(
sk
,
X509_free
);
return
(
ret
);
}
...
...
@@ -1151,7 +1151,7 @@ SSL *s;
unsigned
int
llen
,
ctype_num
,
i
;
X509_NAME
*
xn
=
NULL
;
unsigned
char
*
p
,
*
d
,
*
q
;
STACK
*
ca_sk
=
NULL
;
STACK
_OF
(
X509_NAME
)
*
ca_sk
=
NULL
;
n
=
ssl3_get_message
(
s
,
SSL3_ST_CR_CERT_REQ_A
,
...
...
@@ -1195,7 +1195,7 @@ SSL *s;
d
=
p
=
(
unsigned
char
*
)
s
->
init_buf
->
data
;
if
((
ca_sk
=
sk_new
(
ca_dn_cmp
))
==
NULL
)
if
((
ca_sk
=
sk_
X509_NAME_
new
(
ca_dn_cmp
))
==
NULL
)
{
SSLerr
(
SSL_F_SSL3_GET_CERTIFICATE_REQUEST
,
ERR_R_MALLOC_FAILURE
);
goto
err
;
...
...
@@ -1260,7 +1260,7 @@ fclose(out);
SSLerr
(
SSL_F_SSL3_GET_CERTIFICATE_REQUEST
,
SSL_R_CA_DN_LENGTH_MISMATCH
);
goto
err
;
}
if
(
!
sk_
push
(
ca_sk
,(
char
*
)
xn
))
if
(
!
sk_
X509_NAME_push
(
ca_sk
,
xn
))
{
SSLerr
(
SSL_F_SSL3_GET_CERTIFICATE_REQUEST
,
ERR_R_MALLOC_FAILURE
);
goto
err
;
...
...
@@ -1280,13 +1280,13 @@ cont:
s
->
s3
->
tmp
.
cert_req
=
1
;
s
->
s3
->
tmp
.
ctype_num
=
ctype_num
;
if
(
s
->
s3
->
tmp
.
ca_names
!=
NULL
)
sk_pop_free
(
s
->
s3
->
tmp
.
ca_names
,
X509_NAME_free
);
sk_
X509_NAME_
pop_free
(
s
->
s3
->
tmp
.
ca_names
,
X509_NAME_free
);
s
->
s3
->
tmp
.
ca_names
=
ca_sk
;
ca_sk
=
NULL
;
ret
=
1
;
err:
if
(
ca_sk
!=
NULL
)
sk_pop_free
(
ca_sk
,
X509_NAME_free
);
if
(
ca_sk
!=
NULL
)
sk_
X509_NAME_
pop_free
(
ca_sk
,
X509_NAME_free
);
return
(
ret
);
}
...
...
ssl/s3_lib.c
浏览文件 @
f73e07cf
...
...
@@ -502,7 +502,7 @@ SSL *s;
DH_free
(
s
->
s3
->
tmp
.
dh
);
#endif
if
(
s
->
s3
->
tmp
.
ca_names
!=
NULL
)
sk_pop_free
(
s
->
s3
->
tmp
.
ca_names
,
X509_NAME_free
);
sk_
X509_NAME_
pop_free
(
s
->
s3
->
tmp
.
ca_names
,
X509_NAME_free
);
memset
(
s
->
s3
,
0
,
sizeof
(
SSL3_CTX
));
Free
(
s
->
s3
);
s
->
s3
=
NULL
;
...
...
@@ -515,7 +515,7 @@ SSL *s;
ssl3_cleanup_key_block
(
s
);
if
(
s
->
s3
->
tmp
.
ca_names
!=
NULL
)
sk_pop_free
(
s
->
s3
->
tmp
.
ca_names
,
X509_NAME_free
);
sk_
X509_NAME_
pop_free
(
s
->
s3
->
tmp
.
ca_names
,
X509_NAME_free
);
if
(
s
->
s3
->
rrec
.
comp
!=
NULL
)
{
...
...
@@ -750,10 +750,10 @@ char *parg;
case
SSL_CTRL_EXTRA_CHAIN_CERT
:
if
(
ctx
->
extra_certs
==
NULL
)
{
if
((
ctx
->
extra_certs
=
sk_new_null
())
==
NULL
)
if
((
ctx
->
extra_certs
=
sk_
X509_
new_null
())
==
NULL
)
return
(
0
);
}
sk_
push
(
ctx
->
extra_certs
,(
char
*
)
parg
);
sk_
X509_push
(
ctx
->
extra_certs
,(
X509
*
)
parg
);
break
;
default:
...
...
@@ -832,7 +832,8 @@ int i;
SSL_CIPHER
*
ssl3_choose_cipher
(
s
,
have
,
pref
)
SSL
*
s
;
STACK
*
have
,
*
pref
;
STACK_OF
(
SSL_CIPHER
)
*
have
;
STACK_OF
(
SSL_CIPHER
)
*
pref
;
{
SSL_CIPHER
*
c
,
*
ret
=
NULL
;
int
i
,
j
,
ok
;
...
...
@@ -845,7 +846,7 @@ STACK *have,*pref;
else
cert
=
s
->
ctx
->
default_cert
;
sk_set_cmp_func
(
pref
,
ssl_cipher_ptr_id_cmp
);
sk_
SSL_CIPHER_
set_cmp_func
(
pref
,
ssl_cipher_ptr_id_cmp
);
#ifdef CIPHER_DEBUG
printf
(
"Have:
\n
"
);
...
...
@@ -856,9 +857,9 @@ STACK *have,*pref;
}
#endif
for
(
i
=
0
;
i
<
sk_num
(
have
);
i
++
)
for
(
i
=
0
;
i
<
sk_
SSL_CIPHER_
num
(
have
);
i
++
)
{
c
=
(
SSL_CIPHER
*
)
sk
_value
(
have
,
i
);
c
=
sk_SSL_CIPHER
_value
(
have
,
i
);
ssl_set_cert_masks
(
cert
,
s
->
ctx
->
default_cert
,
c
);
mask
=
cert
->
mask
;
...
...
@@ -884,10 +885,10 @@ STACK *have,*pref;
if
(
!
ok
)
continue
;
j
=
sk_
find
(
pref
,(
char
*
)
c
);
j
=
sk_
SSL_CIPHER_find
(
pref
,
c
);
if
(
j
>=
0
)
{
ret
=
(
SSL_CIPHER
*
)
sk
_value
(
pref
,
j
);
ret
=
sk_SSL_CIPHER
_value
(
pref
,
j
);
break
;
}
}
...
...
ssl/s3_srvr.c
浏览文件 @
f73e07cf
...
...
@@ -555,7 +555,7 @@ SSL *s;
unsigned
char
*
p
,
*
d
,
*
q
;
SSL_CIPHER
*
c
;
SSL_COMP
*
comp
=
NULL
;
STACK
*
ciphers
=
NULL
;
STACK
_OF
(
SSL_CIPHER
)
*
ciphers
=
NULL
;
/* We do this so that we will respond with our native type.
* If we are TLSv1 and we get SSLv3, we will respond with TLSv1,
...
...
@@ -643,9 +643,9 @@ SSL *s;
#ifdef CIPHER_DEBUG
printf
(
"client sent %d ciphers
\n
"
,
sk_num
(
ciphers
));
#endif
for
(
i
=
0
;
i
<
sk_num
(
ciphers
);
i
++
)
for
(
i
=
0
;
i
<
sk_
SSL_CIPHER_
num
(
ciphers
);
i
++
)
{
c
=
(
SSL_CIPHER
*
)
sk
_value
(
ciphers
,
i
);
c
=
sk_SSL_CIPHER
_value
(
ciphers
,
i
);
#ifdef CIPHER_DEBUG
printf
(
"client [%2d of %2d]:%s
\n
"
,
i
,
sk_num
(
ciphers
),
SSL_CIPHER_get_name
(
c
));
...
...
@@ -658,11 +658,11 @@ SSL *s;
}
if
(
j
==
0
)
{
if
((
s
->
options
&
SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG
)
&&
(
sk_num
(
ciphers
)
==
1
))
if
((
s
->
options
&
SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG
)
&&
(
sk_
SSL_CIPHER_
num
(
ciphers
)
==
1
))
{
/* Very bad for multi-threading.... */
s
->
session
->
cipher
=
(
SSL_CIPHER
*
)
sk_value
(
ciphers
,
0
);
s
->
session
->
cipher
=
sk_SSL_CIPHER_value
(
ciphers
,
0
);
}
else
{
...
...
@@ -700,10 +700,10 @@ SSL *s;
{
/* See if we have a match */
int
m
,
nn
,
o
,
v
,
done
=
0
;
nn
=
sk_num
(
s
->
ctx
->
comp_methods
);
nn
=
sk_
SSL_COMP_
num
(
s
->
ctx
->
comp_methods
);
for
(
m
=
0
;
m
<
nn
;
m
++
)
{
comp
=
(
SSL_COMP
*
)
sk
_value
(
s
->
ctx
->
comp_methods
,
m
);
comp
=
sk_SSL_COMP
_value
(
s
->
ctx
->
comp_methods
,
m
);
v
=
comp
->
id
;
for
(
o
=
0
;
o
<
i
;
o
++
)
{
...
...
@@ -741,7 +741,7 @@ SSL *s;
{
s
->
session
->
compress_meth
=
(
comp
==
NULL
)
?
0
:
comp
->
id
;
if
(
s
->
session
->
ciphers
!=
NULL
)
sk_free
(
s
->
session
->
ciphers
);
sk_
SSL_CIPHER_
free
(
s
->
session
->
ciphers
);
s
->
session
->
ciphers
=
ciphers
;
if
(
ciphers
==
NULL
)
{
...
...
@@ -751,7 +751,7 @@ SSL *s;
}
ciphers
=
NULL
;
c
=
ssl3_choose_cipher
(
s
,
s
->
session
->
ciphers
,
ssl_get_ciphers_by_id
(
s
));
ssl_get_ciphers_by_id
(
s
));
if
(
c
==
NULL
)
{
...
...
@@ -765,16 +765,16 @@ SSL *s;
{
/* Session-id reuse */
#ifdef REUSE_CIPHER_BUG
STACK
*
sk
;
STACK
_OF
(
SSL_CIPHER
)
*
sk
;
SSL_CIPHER
*
nc
=
NULL
;
SSL_CIPHER
*
ec
=
NULL
;
if
(
s
->
options
&
SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG
)
{
sk
=
s
->
session
->
ciphers
;
for
(
i
=
0
;
i
<
sk_num
(
sk
);
i
++
)
for
(
i
=
0
;
i
<
sk_
SSL_CIPHER_
num
(
sk
);
i
++
)
{
c
=
(
SSL_CIPHER
*
)
sk
_value
(
sk
,
i
);
c
=
sk_SSL_CIPHER
_value
(
sk
,
i
);
if
(
c
->
algorithms
&
SSL_eNULL
)
nc
=
c
;
if
(
SSL_C_IS_EXPORT
(
c
))
...
...
@@ -810,7 +810,7 @@ f_err:
ssl3_send_alert
(
s
,
SSL3_AL_FATAL
,
al
);
}
err:
if
(
ciphers
!=
NULL
)
sk_free
(
ciphers
);
if
(
ciphers
!=
NULL
)
sk_
SSL_CIPHER_
free
(
ciphers
);
return
(
ret
);
}
...
...
@@ -1136,7 +1136,7 @@ SSL *s;
{
unsigned
char
*
p
,
*
d
;
int
i
,
j
,
nl
,
off
,
n
;
STACK
*
sk
=
NULL
;
STACK
_OF
(
X509_NAME
)
*
sk
=
NULL
;
X509_NAME
*
name
;
BUF_MEM
*
buf
;
...
...
@@ -1161,9 +1161,9 @@ SSL *s;
nl
=
0
;
if
(
sk
!=
NULL
)
{
for
(
i
=
0
;
i
<
sk_num
(
sk
);
i
++
)
for
(
i
=
0
;
i
<
sk_
X509_NAME_
num
(
sk
);
i
++
)
{
name
=
(
X509_NAME
*
)
sk
_value
(
sk
,
i
);
name
=
sk_X509_NAME
_value
(
sk
,
i
);
j
=
i2d_X509_NAME
(
name
,
NULL
);
if
(
!
BUF_MEM_grow
(
buf
,
4
+
n
+
j
+
2
))
{
...
...
@@ -1562,7 +1562,7 @@ SSL *s;
X509
*
x
=
NULL
;
unsigned
long
l
,
nc
,
llen
,
n
;
unsigned
char
*
p
,
*
d
,
*
q
;
STACK
*
sk
=
NULL
;
STACK
_OF
(
X509
)
*
sk
=
NULL
;
n
=
ssl3_get_message
(
s
,
SSL3_ST_SR_CERT_A
,
...
...
@@ -1605,7 +1605,7 @@ SSL *s;
}
d
=
p
=
(
unsigned
char
*
)
s
->
init_buf
->
data
;
if
((
sk
=
sk_new_null
())
==
NULL
)
if
((
sk
=
sk_
X509_
new_null
())
==
NULL
)
{
SSLerr
(
SSL_F_SSL3_GET_CLIENT_CERTIFICATE
,
ERR_R_MALLOC_FAILURE
);
goto
err
;
...
...
@@ -1641,7 +1641,7 @@ SSL *s;
SSLerr
(
SSL_F_SSL3_GET_CLIENT_CERTIFICATE
,
SSL_R_CERT_LENGTH_MISMATCH
);
goto
f_err
;
}
if
(
!
sk_
push
(
sk
,(
char
*
)
x
))
if
(
!
sk_
X509_push
(
sk
,
x
))
{
SSLerr
(
SSL_F_SSL3_GET_CLIENT_CERTIFICATE
,
ERR_R_MALLOC_FAILURE
);
goto
err
;
...
...
@@ -1650,7 +1650,7 @@ SSL *s;
nc
+=
l
+
3
;
}
if
(
sk_num
(
sk
)
<=
0
)
if
(
sk_
X509_
num
(
sk
)
<=
0
)
{
/* TLS does not mind 0 certs returned */
if
(
s
->
version
==
SSL3_VERSION
)
...
...
@@ -1682,7 +1682,7 @@ SSL *s;
/* This should not be needed */
if
(
s
->
session
->
peer
!=
NULL
)
X509_free
(
s
->
session
->
peer
);
s
->
session
->
peer
=
(
X509
*
)
sk
_shift
(
sk
);
s
->
session
->
peer
=
sk_X509
_shift
(
sk
);
s
->
session
->
cert
->
cert_chain
=
sk
;
sk
=
NULL
;
...
...
@@ -1694,7 +1694,7 @@ f_err:
}
err:
if
(
x
!=
NULL
)
X509_free
(
x
);
if
(
sk
!=
NULL
)
sk_pop_free
(
sk
,
X509_free
);
if
(
sk
!=
NULL
)
sk_
X509_
pop_free
(
sk
,
X509_free
);
return
(
ret
);
}
...
...
ssl/ssl.h
浏览文件 @
f73e07cf
...
...
@@ -63,6 +63,8 @@
extern
"C"
{
#endif
#include "safestack.h"
/* SSLeay version number for ASN.1 encoding of the session information */
/* Version 0 - initial version
* Version 1 - added the optional peer certificate
...
...
@@ -167,6 +169,8 @@ typedef struct ssl_cipher_st
unsigned
long
mask
;
/* used for matching */
}
SSL_CIPHER
;
DECLARE_STACK_OF
(
SSL_CIPHER
)
typedef
struct
ssl_st
SSL
;
typedef
struct
ssl_ctx_st
SSL_CTX
;
...
...
@@ -254,7 +258,7 @@ typedef struct ssl_session_st
* needs to be used to load
* the 'cipher' structure */
STACK
/* SSL_CIPHER */
*
ciphers
;
/* shared ciphers? */
STACK
_OF
(
SSL_CIPHER
)
*
ciphers
;
/* shared ciphers? */
CRYPTO_EX_DATA
ex_data
;
/* application specific data */
...
...
@@ -314,14 +318,16 @@ typedef struct ssl_comp_st
#endif
}
SSL_COMP
;
DECLARE_STACK_OF
(
SSL_COMP
)
struct
ssl_ctx_st
{
SSL_METHOD
*
method
;
unsigned
long
options
;
STACK
/* SSL_CIPHER */
*
cipher_list
;
STACK
_OF
(
SSL_CIPHER
)
*
cipher_list
;
/* same as above but sorted for lookup */
STACK
/* SSL_CIPHER */
*
cipher_list_by_id
;
STACK
_OF
(
SSL_CIPHER
)
*
cipher_list_by_id
;
struct
x509_store_st
/* X509_STORE */
*
cert_store
;
struct
lhash_st
/* LHASH */
*
sessions
;
/* a set of SSL_SESSION's */
...
...
@@ -404,7 +410,7 @@ struct ssl_ctx_st
/**/
int
(
*
client_cert_cb
)(
/* SSL *ssl, X509 **x509, EVP_PKEY **pkey */
);
/* what we put in client requests */
STACK
*
client_CA
;
STACK
_OF
(
X509_NAME
)
*
client_CA
;
/**/
int
quiet_shutdown
;
...
...
@@ -414,8 +420,8 @@ struct ssl_ctx_st
EVP_MD
*
md5
;
/* For SSLv3/TLSv1 'ssl3-md5' */
EVP_MD
*
sha1
;
/* For SSLv3/TLSv1 'ssl3->sha1' */
STACK
*
extra_certs
;
STACK
*
comp_methods
;
/* stack of SSL_COMP, SSLv3/TLSv1 */
STACK
_OF
(
X509
)
*
extra_certs
;
STACK
_OF
(
SSL_COMP
)
*
comp_methods
;
/* stack of SSL_COMP, SSLv3/TLSv1 */
};
#define SSL_SESS_CACHE_OFF 0x0000
...
...
@@ -533,8 +539,8 @@ struct ssl_st
int
hit
;
/* reusing a previous session */
/* crypto */
STACK
/* SSL_CIPHER */
*
cipher_list
;
STACK
/* SSL_CIPHER */
*
cipher_list_by_id
;
STACK
_OF
(
SSL_CIPHER
)
*
cipher_list
;
STACK
_OF
(
SSL_CIPHER
)
*
cipher_list_by_id
;
/* These are the ones being used, the ones is SSL_SESSION are
* the ones to be 'copied' into these ones */
...
...
@@ -588,7 +594,7 @@ struct ssl_st
CRYPTO_EX_DATA
ex_data
;
/* for server side, keep the list of CA_dn we can use */
STACK
/* X509_NAME */
*
client_CA
;
STACK
_OF
(
X509_NAME
)
*
client_CA
;
int
references
;
unsigned
long
options
;
...
...
@@ -868,7 +874,7 @@ int SSL_use_certificate_file(SSL *ssl, char *file, int type);
int
SSL_CTX_use_RSAPrivateKey_file
(
SSL_CTX
*
ctx
,
char
*
file
,
int
type
);
int
SSL_CTX_use_PrivateKey_file
(
SSL_CTX
*
ctx
,
char
*
file
,
int
type
);
int
SSL_CTX_use_certificate_file
(
SSL_CTX
*
ctx
,
char
*
file
,
int
type
);
STACK
*
SSL_load_client_CA_file
(
char
*
file
);
STACK
_OF
(
X509_NAME
)
*
SSL_load_client_CA_file
(
const
char
*
file
);
int
SSL_add_file_cert_subjects_to_stack
(
STACK
*
stackCAs
,
const
char
*
file
);
int
SSL_add_dir_cert_subjects_to_stack
(
STACK
*
stackCAs
,
...
...
@@ -907,7 +913,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a,unsigned char **pp,long length);
X509
*
SSL_get_peer_certificate
(
SSL
*
s
);
#endif
STACK
*
SSL_get_peer_cert_chain
(
SSL
*
s
);
STACK
_OF
(
X509
)
*
SSL_get_peer_cert_chain
(
SSL
*
s
);
int
SSL_CTX_get_verify_mode
(
SSL_CTX
*
ctx
);
int
(
*
SSL_CTX_get_verify_callback
(
SSL_CTX
*
ctx
))(
int
,
X509_STORE_CTX
*
);
...
...
@@ -961,7 +967,7 @@ SSL_METHOD *TLSv1_method(void); /* TLSv1.0 */
SSL_METHOD
*
TLSv1_server_method
(
void
);
/* TLSv1.0 */
SSL_METHOD
*
TLSv1_client_method
(
void
);
/* TLSv1.0 */
STACK
*
SSL_get_ciphers
(
SSL
*
s
);
STACK
_OF
(
SSL_CIPHER
)
*
SSL_get_ciphers
(
SSL
*
s
);
int
SSL_do_handshake
(
SSL
*
s
);
int
SSL_renegotiate
(
SSL
*
s
);
...
...
@@ -974,10 +980,10 @@ char *SSL_alert_type_string(int value);
char
*
SSL_alert_desc_string_long
(
int
value
);
char
*
SSL_alert_desc_string
(
int
value
);
void
SSL_set_client_CA_list
(
SSL
*
s
,
STACK
*
list
);
void
SSL_CTX_set_client_CA_list
(
SSL_CTX
*
ctx
,
STACK
*
list
);
STACK
*
SSL_get_client_CA_list
(
SSL
*
s
);
STACK
*
SSL_CTX_get_client_CA_list
(
SSL_CTX
*
s
);
void
SSL_set_client_CA_list
(
SSL
*
s
,
STACK
_OF
(
X509_NAME
)
*
list
);
void
SSL_CTX_set_client_CA_list
(
SSL_CTX
*
ctx
,
STACK
_OF
(
X509_NAME
)
*
list
);
STACK
_OF
(
X509_NAME
)
*
SSL_get_client_CA_list
(
SSL
*
s
);
STACK
_OF
(
X509_NAME
)
*
SSL_CTX_get_client_CA_list
(
SSL_CTX
*
s
);
int
SSL_add_client_CA
(
SSL
*
ssl
,
X509
*
x
);
int
SSL_CTX_add_client_CA
(
SSL_CTX
*
ctx
,
X509
*
x
);
...
...
ssl/ssl3.h
浏览文件 @
f73e07cf
...
...
@@ -331,7 +331,7 @@ typedef struct ssl3_ctx_st
int
cert_req
;
int
ctype_num
;
char
ctype
[
SSL3_CT_NUMBER
];
STACK
*
ca_names
;
STACK
_OF
(
X509_NAME
)
*
ca_names
;
int
use_rsa_tmp
;
...
...
ssl/ssl_cert.c
浏览文件 @
f73e07cf
...
...
@@ -143,7 +143,7 @@ void ssl_cert_free(CERT *c)
#endif
}
if
(
c
->
cert_chain
!=
NULL
)
sk_pop_free
(
c
->
cert_chain
,
X509_free
);
sk_
X509_
pop_free
(
c
->
cert_chain
,
X509_free
);
Free
(
c
);
}
...
...
@@ -174,16 +174,16 @@ int ssl_set_cert_type(CERT *c,int type)
return
(
1
);
}
int
ssl_verify_cert_chain
(
SSL
*
s
,
STACK
*
sk
)
int
ssl_verify_cert_chain
(
SSL
*
s
,
STACK
_OF
(
X509
)
*
sk
)
{
X509
*
x
;
int
i
;
X509_STORE_CTX
ctx
;
if
((
sk
==
NULL
)
||
(
sk_num
(
sk
)
==
0
))
if
((
sk
==
NULL
)
||
(
sk_
X509_
num
(
sk
)
==
0
))
return
(
0
);
x
=
(
X509
*
)
sk
_value
(
sk
,
0
);
x
=
sk_X509
_value
(
sk
,
0
);
X509_STORE_CTX_init
(
&
ctx
,
s
->
ctx
->
cert_store
,
x
,
sk
);
X509_STORE_CTX_set_ex_data
(
&
ctx
,
SSL_get_ex_data_X509_STORE_CTX_idx
(),
(
char
*
)
s
);
...
...
@@ -207,10 +207,11 @@ int ssl_verify_cert_chain(SSL *s,STACK *sk)
return
(
i
);
}
static
void
set_client_CA_list
(
STACK
**
ca_list
,
STACK
*
list
)
static
void
set_client_CA_list
(
STACK_OF
(
X509_NAME
)
**
ca_list
,
STACK_OF
(
X509_NAME
)
*
list
)
{
if
(
*
ca_list
!=
NULL
)
sk_pop_free
(
*
ca_list
,
X509_NAME_free
);
sk_
X509_NAME_
pop_free
(
*
ca_list
,
X509_NAME_free
);
*
ca_list
=
list
;
}
...
...
@@ -234,22 +235,22 @@ STACK *SSL_dup_CA_list(STACK *sk)
return
(
ret
);
}
void
SSL_set_client_CA_list
(
SSL
*
s
,
STACK
*
list
)
void
SSL_set_client_CA_list
(
SSL
*
s
,
STACK
_OF
(
X509_NAME
)
*
list
)
{
set_client_CA_list
(
&
(
s
->
client_CA
),
list
);
}
void
SSL_CTX_set_client_CA_list
(
SSL_CTX
*
ctx
,
STACK
*
list
)
void
SSL_CTX_set_client_CA_list
(
SSL_CTX
*
ctx
,
STACK
_OF
(
X509_NAME
)
*
list
)
{
set_client_CA_list
(
&
(
ctx
->
client_CA
),
list
);
}
STACK
*
SSL_CTX_get_client_CA_list
(
SSL_CTX
*
ctx
)
STACK
_OF
(
X509_NAME
)
*
SSL_CTX_get_client_CA_list
(
SSL_CTX
*
ctx
)
{
return
(
ctx
->
client_CA
);
}
STACK
*
SSL_get_client_CA_list
(
SSL
*
s
)
STACK
_OF
(
X509_NAME
)
*
SSL_get_client_CA_list
(
SSL
*
s
)
{
if
(
s
->
type
==
SSL_ST_CONNECT
)
{
/* we are in the client */
...
...
@@ -268,18 +269,18 @@ STACK *SSL_get_client_CA_list(SSL *s)
}
}
static
int
add_client_CA
(
STACK
**
sk
,
X509
*
x
)
static
int
add_client_CA
(
STACK
_OF
(
X509_NAME
)
**
sk
,
X509
*
x
)
{
X509_NAME
*
name
;
if
(
x
==
NULL
)
return
(
0
);
if
((
*
sk
==
NULL
)
&&
((
*
sk
=
sk_new_null
())
==
NULL
))
if
((
*
sk
==
NULL
)
&&
((
*
sk
=
sk_
X509_NAME_
new_null
())
==
NULL
))
return
(
0
);
if
((
name
=
X509_NAME_dup
(
X509_get_subject_name
(
x
)))
==
NULL
)
return
(
0
);
if
(
!
sk_
push
(
*
sk
,(
char
*
)
name
))
if
(
!
sk_
X509_NAME_push
(
*
sk
,
name
))
{
X509_NAME_free
(
name
);
return
(
0
);
...
...
@@ -311,15 +312,15 @@ static int name_cmp(X509_NAME **a,X509_NAME **b)
* \param file the file containing one or more certs.
* \return a ::STACK containing the certs.
*/
STACK
*
SSL_load_client_CA_file
(
char
*
file
)
STACK
_OF
(
X509_NAME
)
*
SSL_load_client_CA_file
(
const
char
*
file
)
{
BIO
*
in
;
X509
*
x
=
NULL
;
X509_NAME
*
xn
=
NULL
;
STACK
*
ret
,
*
sk
;
STACK
_OF
(
X509_NAME
)
*
ret
,
*
sk
;
ret
=
sk_new
(
NULL
);
sk
=
sk_new
(
name_cmp
);
ret
=
sk_
X509_NAME_
new
(
NULL
);
sk
=
sk_
X509_NAME_
new
(
name_cmp
);
in
=
BIO_new
(
BIO_s_file_internal
());
...
...
@@ -340,22 +341,22 @@ STACK *SSL_load_client_CA_file(char *file)
/* check for duplicates */
xn
=
X509_NAME_dup
(
xn
);
if
(
xn
==
NULL
)
goto
err
;
if
(
sk_
find
(
sk
,(
char
*
)
xn
)
>=
0
)
if
(
sk_
X509_NAME_find
(
sk
,
xn
)
>=
0
)
X509_NAME_free
(
xn
);
else
{
sk_
push
(
sk
,(
char
*
)
xn
);
sk_
push
(
ret
,(
char
*
)
xn
);
sk_
X509_NAME_push
(
sk
,
xn
);
sk_
X509_NAME_push
(
ret
,
xn
);
}
}
if
(
0
)
{
err:
if
(
ret
!=
NULL
)
sk_pop_free
(
ret
,
X509_NAME_free
);
if
(
ret
!=
NULL
)
sk_
X509_NAME_
pop_free
(
ret
,
X509_NAME_free
);
ret
=
NULL
;
}
if
(
sk
!=
NULL
)
sk_free
(
sk
);
if
(
sk
!=
NULL
)
sk_
X509_NAME_
free
(
sk
);
if
(
in
!=
NULL
)
BIO_free
(
in
);
if
(
x
!=
NULL
)
X509_free
(
x
);
return
(
ret
);
...
...
ssl/ssl_ciph.c
浏览文件 @
f73e07cf
...
...
@@ -74,7 +74,7 @@ static EVP_CIPHER *ssl_cipher_methods[SSL_ENC_NUM_IDX]={
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
};
static
STACK
/* SSL_COMP */
*
ssl_comp_methods
=
NULL
;
static
STACK
_OF
(
SSL_COMP
)
*
ssl_comp_methods
=
NULL
;
#define SSL_MD_MD5_IDX 0
#define SSL_MD_SHA1_IDX 1
...
...
@@ -211,9 +211,9 @@ SSL_COMP **comp;
{
ctmp
.
id
=
s
->
compress_meth
;
i
=
sk_
find
(
ssl_comp_methods
,(
char
*
)
&
ctmp
);
i
=
sk_
SSL_COMP_find
(
ssl_comp_methods
,
&
ctmp
);
if
(
i
>=
0
)
*
comp
=
(
SSL_COMP
*
)
sk
_value
(
ssl_comp_methods
,
i
);
*
comp
=
sk_SSL_COMP
_value
(
ssl_comp_methods
,
i
);
else
*
comp
=
NULL
;
}
...
...
@@ -298,14 +298,15 @@ CIPHER_ORDER **head,*curr,**tail;
*
tail
=
curr
;
}
STACK
*
ssl_create_cipher_list
(
ssl_method
,
cipher_list
,
cipher_list_by_id
,
str
)
STACK_OF
(
SSL_CIPHER
)
*
ssl_create_cipher_list
(
ssl_method
,
cipher_list
,
cipher_list_by_id
,
str
)
SSL_METHOD
*
ssl_method
;
STACK
**
cipher_list
,
**
cipher_list_by_id
;
STACK
_OF
(
SSL_CIPHER
)
**
cipher_list
,
**
cipher_list_by_id
;
char
*
str
;
{
SSL_CIPHER
*
c
;
char
*
l
;
STACK
*
ret
=
NULL
,
*
ok
=
NULL
;
STACK
_OF
(
SSL_CIPHER
)
*
ret
=
NULL
,
*
ok
=
NULL
;
#define CL_BUF 40
char
buf
[
CL_BUF
];
char
*
tmp_str
=
NULL
;
...
...
@@ -340,7 +341,7 @@ char *str;
num
=
ssl_method
->
num_ciphers
();
if
((
ret
=
(
STACK
*
)
sk
_new
(
NULL
))
==
NULL
)
goto
err
;
if
((
ret
=
sk_SSL_CIPHER
_new
(
NULL
))
==
NULL
)
goto
err
;
if
((
ca_list
=
(
STACK
*
)
sk_new
(
cmp_by_name
))
==
NULL
)
goto
err
;
mask
=
SSL_kFZA
;
...
...
@@ -573,7 +574,7 @@ end_loop:
{
if
(
curr
->
active
)
{
sk_
push
(
ret
,(
char
*
)
curr
->
cipher
);
sk_
SSL_CIPHER_push
(
ret
,
curr
->
cipher
);
#ifdef CIPHER_DEBUG
printf
(
"<%s>
\n
"
,
curr
->
cipher
->
name
);
#endif
...
...
@@ -583,15 +584,15 @@ end_loop:
if
(
cipher_list
!=
NULL
)
{
if
(
*
cipher_list
!=
NULL
)
sk_free
(
*
cipher_list
);
sk_
SSL_CIPHER_
free
(
*
cipher_list
);
*
cipher_list
=
ret
;
}
if
(
cipher_list_by_id
!=
NULL
)
{
if
(
*
cipher_list_by_id
!=
NULL
)
sk_free
(
*
cipher_list_by_id
);
*
cipher_list_by_id
=
sk_dup
(
ret
);
sk_
SSL_CIPHER_
free
(
*
cipher_list_by_id
);
*
cipher_list_by_id
=
sk_
SSL_CIPHER_
dup
(
ret
);
}
if
(
(
cipher_list_by_id
==
NULL
)
||
...
...
@@ -599,14 +600,14 @@ end_loop:
(
cipher_list
==
NULL
)
||
(
*
cipher_list
==
NULL
))
goto
err
;
sk_set_cmp_func
(
*
cipher_list_by_id
,
ssl_cipher_ptr_id_cmp
);
sk_
SSL_CIPHER_
set_cmp_func
(
*
cipher_list_by_id
,
ssl_cipher_ptr_id_cmp
);
ok
=
ret
;
ret
=
NULL
;
err:
if
(
tmp_str
)
Free
(
tmp_str
);
if
(
ops
!=
NULL
)
Free
(
ops
);
if
(
ret
!=
NULL
)
sk_free
(
ret
);
if
(
ret
!=
NULL
)
sk_
SSL_CIPHER_
free
(
ret
);
if
(
ca_list
!=
NULL
)
sk_free
(
ca_list
);
if
(
list
!=
NULL
)
Free
(
list
);
return
(
ok
);
...
...
@@ -794,17 +795,17 @@ int *alg_bits;
}
SSL_COMP
*
ssl3_comp_find
(
sk
,
n
)
STACK
*
sk
;
STACK
_OF
(
SSL_COMP
)
*
sk
;
int
n
;
{
SSL_COMP
*
ctmp
;
int
i
,
nn
;
if
((
n
==
0
)
||
(
sk
==
NULL
))
return
(
NULL
);
nn
=
sk_num
(
sk
);
nn
=
sk_
SSL_COMP_
num
(
sk
);
for
(
i
=
0
;
i
<
nn
;
i
++
)
{
ctmp
=
(
SSL_COMP
*
)
sk
_value
(
sk
,
i
);
ctmp
=
sk_SSL_COMP
_value
(
sk
,
i
);
if
(
ctmp
->
id
==
n
)
return
(
ctmp
);
}
...
...
@@ -817,7 +818,7 @@ SSL_COMP **a,**b;
return
((
*
a
)
->
id
-
(
*
b
)
->
id
);
}
STACK
*
SSL_COMP_get_compression_methods
()
STACK
_OF
(
SSL_COMP
)
*
SSL_COMP_get_compression_methods
()
{
return
(
ssl_comp_methods
);
}
...
...
@@ -827,16 +828,16 @@ int id;
COMP_METHOD
*
cm
;
{
SSL_COMP
*
comp
;
STACK
*
sk
;
STACK
_OF
(
SSL_COMP
)
*
sk
;
comp
=
(
SSL_COMP
*
)
Malloc
(
sizeof
(
SSL_COMP
));
comp
->
id
=
id
;
comp
->
method
=
cm
;
if
(
ssl_comp_methods
==
NULL
)
sk
=
ssl_comp_methods
=
sk_new
(
sk_comp_cmp
);
sk
=
ssl_comp_methods
=
sk_
SSL_COMP_
new
(
sk_comp_cmp
);
else
sk
=
ssl_comp_methods
;
if
((
sk
==
NULL
)
||
!
sk_
push
(
sk
,(
char
*
)
comp
))
if
((
sk
==
NULL
)
||
!
sk_
SSL_COMP_push
(
sk
,
comp
))
{
SSLerr
(
SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD
,
ERR_R_MALLOC_FAILURE
);
return
(
0
);
...
...
ssl/ssl_lib.c
浏览文件 @
f73e07cf
...
...
@@ -145,13 +145,13 @@ int SSL_clear(SSL *s)
/** Used to change an SSL_CTXs default SSL method type */
int
SSL_CTX_set_ssl_version
(
SSL_CTX
*
ctx
,
SSL_METHOD
*
meth
)
{
STACK
*
sk
;
STACK
_OF
(
SSL_CIPHER
)
*
sk
;
ctx
->
method
=
meth
;
sk
=
ssl_create_cipher_list
(
ctx
->
method
,
&
(
ctx
->
cipher_list
),
&
(
ctx
->
cipher_list_by_id
),
SSL_DEFAULT_CIPHER_LIST
);
if
((
sk
==
NULL
)
||
(
sk_num
(
sk
)
<=
0
))
if
((
sk
==
NULL
)
||
(
sk_
SSL_CIPHER_
num
(
sk
)
<=
0
))
{
SSLerr
(
SSL_F_SSL_CTX_SET_SSL_VERSION
,
SSL_R_SSL_LIBRARY_HAS_NO_CIPHERS
);
return
(
0
);
...
...
@@ -270,8 +270,8 @@ void SSL_free(SSL *s)
if
(
s
->
init_buf
!=
NULL
)
BUF_MEM_free
(
s
->
init_buf
);
/* add extra stuff */
if
(
s
->
cipher_list
!=
NULL
)
sk_free
(
s
->
cipher_list
);
if
(
s
->
cipher_list_by_id
!=
NULL
)
sk_free
(
s
->
cipher_list_by_id
);
if
(
s
->
cipher_list
!=
NULL
)
sk_
SSL_CIPHER_
free
(
s
->
cipher_list
);
if
(
s
->
cipher_list_by_id
!=
NULL
)
sk_
SSL_CIPHER_
free
(
s
->
cipher_list_by_id
);
/* Make the next call work :-) */
if
(
s
->
session
!=
NULL
)
...
...
@@ -288,7 +288,7 @@ void SSL_free(SSL *s)
if
(
s
->
ctx
)
SSL_CTX_free
(
s
->
ctx
);
if
(
s
->
client_CA
!=
NULL
)
sk_pop_free
(
s
->
client_CA
,
X509_NAME_free
);
sk_
X509_NAME_
pop_free
(
s
->
client_CA
,
X509_NAME_free
);
if
(
s
->
method
!=
NULL
)
s
->
method
->
ssl_free
(
s
);
...
...
@@ -460,9 +460,9 @@ X509 *SSL_get_peer_certificate(SSL *s)
return
(
r
);
}
STACK
*
SSL_get_peer_cert_chain
(
SSL
*
s
)
STACK
_OF
(
X509
)
*
SSL_get_peer_cert_chain
(
SSL
*
s
)
{
STACK
*
r
;
STACK
_OF
(
X509
)
*
r
;
if
((
s
==
NULL
)
||
(
s
->
session
==
NULL
)
||
(
s
->
session
->
cert
==
NULL
))
r
=
NULL
;
...
...
@@ -705,7 +705,7 @@ int ssl_cipher_ptr_id_cmp(SSL_CIPHER **ap,SSL_CIPHER **bp)
/** return a STACK of the ciphers available for the SSL and in order of
* preference */
STACK
*
SSL_get_ciphers
(
SSL
*
s
)
STACK
_OF
(
SSL_CIPHER
)
*
SSL_get_ciphers
(
SSL
*
s
)
{
if
((
s
!=
NULL
)
&&
(
s
->
cipher_list
!=
NULL
))
{
...
...
@@ -721,7 +721,7 @@ STACK *SSL_get_ciphers(SSL *s)
/** return a STACK of the ciphers available for the SSL and in order of
* algorithm id */
STACK
*
ssl_get_ciphers_by_id
(
SSL
*
s
)
STACK
_OF
(
SSL_CIPHER
)
*
ssl_get_ciphers_by_id
(
SSL
*
s
)
{
if
((
s
!=
NULL
)
&&
(
s
->
cipher_list_by_id
!=
NULL
))
{
...
...
@@ -739,13 +739,13 @@ STACK *ssl_get_ciphers_by_id(SSL *s)
char
*
SSL_get_cipher_list
(
SSL
*
s
,
int
n
)
{
SSL_CIPHER
*
c
;
STACK
*
sk
;
STACK
_OF
(
SSL_CIPHER
)
*
sk
;
if
(
s
==
NULL
)
return
(
NULL
);
sk
=
SSL_get_ciphers
(
s
);
if
((
sk
==
NULL
)
||
(
sk_num
(
sk
)
<=
n
))
if
((
sk
==
NULL
)
||
(
sk_
SSL_CIPHER_
num
(
sk
)
<=
n
))
return
(
NULL
);
c
=
(
SSL_CIPHER
*
)
sk
_value
(
sk
,
n
);
c
=
sk_SSL_CIPHER
_value
(
sk
,
n
);
if
(
c
==
NULL
)
return
(
NULL
);
return
(
c
->
name
);
}
...
...
@@ -753,7 +753,7 @@ char *SSL_get_cipher_list(SSL *s,int n)
/** specify the ciphers to be used by defaut by the SSL_CTX */
int
SSL_CTX_set_cipher_list
(
SSL_CTX
*
ctx
,
char
*
str
)
{
STACK
*
sk
;
STACK
_OF
(
SSL_CIPHER
)
*
sk
;
sk
=
ssl_create_cipher_list
(
ctx
->
method
,
&
ctx
->
cipher_list
,
&
ctx
->
cipher_list_by_id
,
str
);
...
...
@@ -764,7 +764,7 @@ int SSL_CTX_set_cipher_list(SSL_CTX *ctx,char *str)
/** specify the ciphers to be used by the SSL */
int
SSL_set_cipher_list
(
SSL
*
s
,
char
*
str
)
{
STACK
*
sk
;
STACK
_OF
(
SSL_CIPHER
)
*
sk
;
sk
=
ssl_create_cipher_list
(
s
->
ctx
->
method
,
&
s
->
cipher_list
,
&
s
->
cipher_list_by_id
,
str
);
...
...
@@ -776,7 +776,7 @@ int SSL_set_cipher_list(SSL *s,char *str)
char
*
SSL_get_shared_ciphers
(
SSL
*
s
,
char
*
buf
,
int
len
)
{
char
*
p
,
*
cp
;
STACK
*
sk
;
STACK
_OF
(
SSL_CIPHER
)
*
sk
;
SSL_CIPHER
*
c
;
int
i
;
...
...
@@ -786,11 +786,11 @@ char *SSL_get_shared_ciphers(SSL *s,char *buf,int len)
p
=
buf
;
sk
=
s
->
session
->
ciphers
;
for
(
i
=
0
;
i
<
sk_num
(
sk
);
i
++
)
for
(
i
=
0
;
i
<
sk_
SSL_CIPHER_
num
(
sk
);
i
++
)
{
/* Decrement for either the ':' or a '\0' */
len
--
;
c
=
(
SSL_CIPHER
*
)
sk
_value
(
sk
,
i
);
c
=
sk_SSL_CIPHER
_value
(
sk
,
i
);
for
(
cp
=
c
->
name
;
*
cp
;
)
{
if
(
len
--
==
0
)
...
...
@@ -807,7 +807,7 @@ char *SSL_get_shared_ciphers(SSL *s,char *buf,int len)
return
(
buf
);
}
int
ssl_cipher_list_to_bytes
(
SSL
*
s
,
STACK
*
sk
,
unsigned
char
*
p
)
int
ssl_cipher_list_to_bytes
(
SSL
*
s
,
STACK
_OF
(
SSL_CIPHER
)
*
sk
,
unsigned
char
*
p
)
{
int
i
,
j
=
0
;
SSL_CIPHER
*
c
;
...
...
@@ -816,19 +816,20 @@ int ssl_cipher_list_to_bytes(SSL *s,STACK *sk,unsigned char *p)
if
(
sk
==
NULL
)
return
(
0
);
q
=
p
;
for
(
i
=
0
;
i
<
sk_num
(
sk
);
i
++
)
for
(
i
=
0
;
i
<
sk_
SSL_CIPHER_
num
(
sk
);
i
++
)
{
c
=
(
SSL_CIPHER
*
)
sk
_value
(
sk
,
i
);
c
=
sk_SSL_CIPHER
_value
(
sk
,
i
);
j
=
ssl_put_cipher_by_char
(
s
,
c
,
p
);
p
+=
j
;
}
return
(
p
-
q
);
}
STACK
*
ssl_bytes_to_cipher_list
(
SSL
*
s
,
unsigned
char
*
p
,
int
num
,
STACK
**
skp
)
STACK_OF
(
SSL_CIPHER
)
*
ssl_bytes_to_cipher_list
(
SSL
*
s
,
unsigned
char
*
p
,
int
num
,
STACK_OF
(
SSL_CIPHER
)
**
skp
)
{
SSL_CIPHER
*
c
;
STACK
*
sk
;
STACK
_OF
(
SSL_CIPHER
)
*
sk
;
int
i
,
n
;
n
=
ssl_put_cipher_by_char
(
s
,
NULL
,
NULL
);
...
...
@@ -838,11 +839,11 @@ STACK *ssl_bytes_to_cipher_list(SSL *s,unsigned char *p,int num,STACK **skp)
return
(
NULL
);
}
if
((
skp
==
NULL
)
||
(
*
skp
==
NULL
))
sk
=
sk_new
(
NULL
);
/* change perhaps later */
sk
=
sk_
SSL_CIPHER_
new
(
NULL
);
/* change perhaps later */
else
{
sk
=
*
skp
;
sk_zero
(
sk
);
sk_
SSL_CIPHER_
zero
(
sk
);
}
for
(
i
=
0
;
i
<
num
;
i
+=
n
)
...
...
@@ -851,7 +852,7 @@ STACK *ssl_bytes_to_cipher_list(SSL *s,unsigned char *p,int num,STACK **skp)
p
+=
n
;
if
(
c
!=
NULL
)
{
if
(
!
sk_
push
(
sk
,(
char
*
)
c
))
if
(
!
sk_
SSL_CIPHER_push
(
sk
,
c
))
{
SSLerr
(
SSL_F_SSL_BYTES_TO_CIPHER_LIST
,
ERR_R_MALLOC_FAILURE
);
goto
err
;
...
...
@@ -864,7 +865,7 @@ STACK *ssl_bytes_to_cipher_list(SSL *s,unsigned char *p,int num,STACK **skp)
return
(
sk
);
err:
if
((
skp
==
NULL
)
||
(
*
skp
==
NULL
))
sk_free
(
sk
);
sk_
SSL_CIPHER_
free
(
sk
);
return
(
NULL
);
}
...
...
@@ -958,7 +959,8 @@ SSL_CTX *SSL_CTX_new(SSL_METHOD *meth)
ssl_create_cipher_list
(
ret
->
method
,
&
ret
->
cipher_list
,
&
ret
->
cipher_list_by_id
,
SSL_DEFAULT_CIPHER_LIST
);
if
((
ret
->
cipher_list
==
NULL
)
||
(
sk_num
(
ret
->
cipher_list
)
<=
0
))
if
(
ret
->
cipher_list
==
NULL
||
sk_SSL_CIPHER_num
(
ret
->
cipher_list
)
<=
0
)
{
SSLerr
(
SSL_F_SSL_CTX_NEW
,
SSL_R_LIBRARY_HAS_NO_CIPHERS
);
goto
err2
;
...
...
@@ -980,7 +982,7 @@ SSL_CTX *SSL_CTX_new(SSL_METHOD *meth)
goto
err2
;
}
if
((
ret
->
client_CA
=
sk_new_null
())
==
NULL
)
if
((
ret
->
client_CA
=
sk_
X509_NAME_
new_null
())
==
NULL
)
goto
err
;
CRYPTO_new_ex_data
(
ssl_ctx_meth
,(
char
*
)
ret
,
&
ret
->
ex_data
);
...
...
@@ -996,6 +998,9 @@ err2:
return
(
NULL
);
}
static
void
SSL_COMP_free
(
SSL_COMP
*
comp
)
{
Free
(
comp
);
}
void
SSL_CTX_free
(
SSL_CTX
*
a
)
{
int
i
;
...
...
@@ -1024,17 +1029,17 @@ void SSL_CTX_free(SSL_CTX *a)
if
(
a
->
cert_store
!=
NULL
)
X509_STORE_free
(
a
->
cert_store
);
if
(
a
->
cipher_list
!=
NULL
)
sk_free
(
a
->
cipher_list
);
sk_
SSL_CIPHER_
free
(
a
->
cipher_list
);
if
(
a
->
cipher_list_by_id
!=
NULL
)
sk_free
(
a
->
cipher_list_by_id
);
sk_
SSL_CIPHER_
free
(
a
->
cipher_list_by_id
);
if
(
a
->
default_cert
!=
NULL
)
ssl_cert_free
(
a
->
default_cert
);
if
(
a
->
client_CA
!=
NULL
)
sk_pop_free
(
a
->
client_CA
,
X509_NAME_free
);
sk_
X509_NAME_
pop_free
(
a
->
client_CA
,
X509_NAME_free
);
if
(
a
->
extra_certs
!=
NULL
)
sk_pop_free
(
a
->
extra_certs
,
X509_free
);
sk_
X509_
pop_free
(
a
->
extra_certs
,
X509_free
);
if
(
a
->
comp_methods
!=
NULL
)
sk_
pop_free
(
a
->
comp_methods
,
FreeFunc
);
sk_
SSL_COMP_pop_free
(
a
->
comp_methods
,
SSL_COMP_free
);
Free
((
char
*
)
a
);
}
...
...
@@ -1427,7 +1432,7 @@ char *SSL_get_version(SSL *s)
SSL
*
SSL_dup
(
SSL
*
s
)
{
STACK
*
sk
;
STACK
_OF
(
X509_NAME
)
*
sk
;
X509_NAME
*
xn
;
SSL
*
ret
;
int
i
;
...
...
@@ -1471,23 +1476,23 @@ SSL *SSL_dup(SSL *s)
/* dup the cipher_list and cipher_list_by_id stacks */
if
(
s
->
cipher_list
!=
NULL
)
{
if
((
ret
->
cipher_list
=
sk_dup
(
s
->
cipher_list
))
==
NULL
)
if
((
ret
->
cipher_list
=
sk_
SSL_CIPHER_
dup
(
s
->
cipher_list
))
==
NULL
)
goto
err
;
}
if
(
s
->
cipher_list_by_id
!=
NULL
)
if
((
ret
->
cipher_list_by_id
=
sk_dup
(
s
->
cipher_list_by_id
))
if
((
ret
->
cipher_list_by_id
=
sk_
SSL_CIPHER_
dup
(
s
->
cipher_list_by_id
))
==
NULL
)
goto
err
;
/* Dup the client_CA list */
if
(
s
->
client_CA
!=
NULL
)
{
if
((
sk
=
sk_dup
(
s
->
client_CA
))
==
NULL
)
goto
err
;
if
((
sk
=
sk_
X509_NAME_
dup
(
s
->
client_CA
))
==
NULL
)
goto
err
;
ret
->
client_CA
=
sk
;
for
(
i
=
0
;
i
<
sk_num
(
sk
);
i
++
)
for
(
i
=
0
;
i
<
sk_
X509_NAME_
num
(
sk
);
i
++
)
{
xn
=
(
X509_NAME
*
)
sk
_value
(
sk
,
i
);
if
(
(
sk_value
(
sk
,
i
)
=
(
char
*
)
X509_NAME_dup
(
xn
))
==
NULL
)
xn
=
sk_X509_NAME
_value
(
sk
,
i
);
if
(
sk_X509_NAME_set
(
sk
,
i
,
X509_NAME_dup
(
xn
))
==
NULL
)
{
X509_NAME_free
(
xn
);
goto
err
;
...
...
@@ -1796,3 +1801,6 @@ void SSL_set_tmp_dh_callback(SSL *ssl,DH *(*dh)(SSL *ssl,int export,
#if defined(_WINDLL) && defined(WIN16)
#include "../crypto/bio/bss_file.c"
#endif
IMPLEMENT_STACK_OF
(
SSL_CIPHER
)
IMPLEMENT_STACK_OF
(
SSL_COMP
)
ssl/ssl_locl.h
浏览文件 @
f73e07cf
...
...
@@ -283,7 +283,7 @@ typedef struct cert_st
DH
*
(
*
dh_tmp_cb
)(
SSL
*
ssl
,
int
export
,
int
keysize
);
CERT_PKEY
pkeys
[
SSL_PKEY_NUM
];
STACK
*
cert_chain
;
STACK
_OF
(
X509
)
*
cert_chain
;
int
references
;
}
CERT
;
...
...
@@ -359,20 +359,23 @@ int ssl_get_new_session(SSL *s, int session);
int
ssl_get_prev_session
(
SSL
*
s
,
unsigned
char
*
session
,
int
len
);
int
ssl_cipher_id_cmp
(
SSL_CIPHER
*
a
,
SSL_CIPHER
*
b
);
int
ssl_cipher_ptr_id_cmp
(
SSL_CIPHER
**
ap
,
SSL_CIPHER
**
bp
);
STACK
*
ssl_bytes_to_cipher_list
(
SSL
*
s
,
unsigned
char
*
p
,
int
num
,
STACK
**
skp
);
int
ssl_cipher_list_to_bytes
(
SSL
*
s
,
STACK
*
sk
,
unsigned
char
*
p
);
STACK
*
ssl_create_cipher_list
(
SSL_METHOD
*
meth
,
STACK
**
pref
,
STACK
**
sorted
,
char
*
str
);
STACK_OF
(
SSL_CIPHER
)
*
ssl_bytes_to_cipher_list
(
SSL
*
s
,
unsigned
char
*
p
,
int
num
,
STACK_OF
(
SSL_CIPHER
)
**
skp
);
int
ssl_cipher_list_to_bytes
(
SSL
*
s
,
STACK_OF
(
SSL_CIPHER
)
*
sk
,
unsigned
char
*
p
);
STACK_OF
(
SSL_CIPHER
)
*
ssl_create_cipher_list
(
SSL_METHOD
*
meth
,
STACK_OF
(
SSL_CIPHER
)
**
pref
,
STACK_OF
(
SSL_CIPHER
)
**
sorted
,
char
*
str
);
void
ssl_update_cache
(
SSL
*
s
,
int
mode
);
int
ssl_cipher_get_evp
(
SSL_SESSION
*
s
,
EVP_CIPHER
**
enc
,
EVP_MD
**
md
,
SSL_COMP
**
comp
);
int
ssl_verify_cert_chain
(
SSL
*
s
,
STACK
*
sk
);
int
ssl_verify_cert_chain
(
SSL
*
s
,
STACK
_OF
(
X509
)
*
sk
);
int
ssl_undefined_function
(
SSL
*
s
);
X509
*
ssl_get_server_send_cert
(
SSL
*
);
EVP_PKEY
*
ssl_get_sign_pkey
(
SSL
*
,
SSL_CIPHER
*
);
int
ssl_cert_type
(
X509
*
x
,
EVP_PKEY
*
pkey
);
void
ssl_set_cert_masks
(
CERT
*
c
,
CERT
*
default_cert
,
SSL_CIPHER
*
cipher
);
STACK
*
ssl_get_ciphers_by_id
(
SSL
*
s
);
STACK
_OF
(
SSL_CIPHER
)
*
ssl_get_ciphers_by_id
(
SSL
*
s
);
int
ssl_verify_alarm_type
(
long
type
);
int
ssl2_enc_init
(
SSL
*
s
,
int
client
);
...
...
@@ -432,7 +435,8 @@ void ssl3_finish_mac(SSL *s, unsigned char *buf, int len);
int
ssl3_enc
(
SSL
*
s
,
int
send_data
);
int
ssl3_mac
(
SSL
*
ssl
,
unsigned
char
*
md
,
int
send_data
);
unsigned
long
ssl3_output_cert_chain
(
SSL
*
s
,
X509
*
x
);
SSL_CIPHER
*
ssl3_choose_cipher
(
SSL
*
ssl
,
STACK
*
have
,
STACK
*
pref
);
SSL_CIPHER
*
ssl3_choose_cipher
(
SSL
*
ssl
,
STACK_OF
(
SSL_CIPHER
)
*
have
,
STACK_OF
(
SSL_CIPHER
)
*
pref
);
int
ssl3_setup_buffers
(
SSL
*
s
);
int
ssl3_new
(
SSL
*
s
);
void
ssl3_free
(
SSL
*
s
);
...
...
@@ -474,8 +478,8 @@ int tls1_alert_code(int code);
int
ssl3_alert_code
(
int
code
);
int
ssl_ok
(
SSL
*
s
);
SSL_COMP
*
ssl3_comp_find
(
STACK
*
sk
,
int
n
);
STACK
*
SSL_COMP_get_compression_methods
(
void
);
SSL_COMP
*
ssl3_comp_find
(
STACK
_OF
(
SSL_COMP
)
*
sk
,
int
n
);
STACK
_OF
(
SSL_COMP
)
*
SSL_COMP_get_compression_methods
(
void
);
#else
...
...
ssl/ssl_sess.c
浏览文件 @
f73e07cf
...
...
@@ -399,7 +399,7 @@ SSL_SESSION *ss;
memset
(
ss
->
session_id
,
0
,
SSL_MAX_SSL_SESSION_ID_LENGTH
);
if
(
ss
->
cert
!=
NULL
)
ssl_cert_free
(
ss
->
cert
);
if
(
ss
->
peer
!=
NULL
)
X509_free
(
ss
->
peer
);
if
(
ss
->
ciphers
!=
NULL
)
sk_free
(
ss
->
ciphers
);
if
(
ss
->
ciphers
!=
NULL
)
sk_
SSL_CIPHER_
free
(
ss
->
ciphers
);
memset
(
ss
,
0
,
sizeof
(
*
ss
));
Free
(
ss
);
}
...
...
test/Makefile.ssl
浏览文件 @
f73e07cf
...
...
@@ -305,8 +305,9 @@ bntest.o: ../include/err.h ../include/evp.h ../include/idea.h ../include/md2.h
bntest.o
:
../include/md5.h ../include/mdc2.h ../include/objects.h
bntest.o
:
../include/opensslv.h ../include/pkcs7.h ../include/rand.h
bntest.o
:
../include/rc2.h ../include/rc4.h ../include/rc5.h
bntest.o
:
../include/ripemd.h ../include/rsa.h ../include/sha.h
bntest.o
:
../include/stack.h ../include/x509.h ../include/x509_vfy.h
bntest.o
:
../include/ripemd.h ../include/rsa.h ../include/safestack.h
bntest.o
:
../include/sha.h ../include/stack.h ../include/x509.h
bntest.o
:
../include/x509_vfy.h
casttest.o
:
../include/cast.h
destest.o
:
../include/des.h
dhtest.o
:
../include/bio.h ../include/bn.h ../include/crypto.h ../include/dh.h
...
...
@@ -335,7 +336,8 @@ rc4test.o: ../include/rc4.h
rc5test.o
:
../include/rc5.h
rmdtest.o
:
../include/ripemd.h
rsa_oaep_test.o
:
../include/bn.h ../include/crypto.h ../include/e_os.h
rsa_oaep_test.o
:
../include/opensslv.h ../include/rsa.h ../include/stack.h
rsa_oaep_test.o
:
../include/err.h ../include/opensslv.h ../include/rsa.h
rsa_oaep_test.o
:
../include/stack.h
sha1test.o
:
../include/sha.h
shatest.o
:
../include/sha.h
ssltest.o
:
../include/asn1.h ../include/bio.h ../include/blowfish.h
...
...
@@ -346,6 +348,7 @@ ssltest.o: ../include/idea.h ../include/lhash.h ../include/md2.h
ssltest.o
:
../include/md5.h ../include/mdc2.h ../include/objects.h
ssltest.o
:
../include/opensslv.h ../include/pkcs7.h ../include/rc2.h
ssltest.o
:
../include/rc4.h ../include/rc5.h ../include/ripemd.h
ssltest.o
:
../include/rsa.h ../include/sha.h ../include/ssl.h ../include/ssl2.h
ssltest.o
:
../include/ssl23.h ../include/ssl3.h ../include/stack.h
ssltest.o
:
../include/tls1.h ../include/x509.h ../include/x509_vfy.h
ssltest.o
:
../include/rsa.h ../include/safestack.h ../include/sha.h
ssltest.o
:
../include/ssl.h ../include/ssl2.h ../include/ssl23.h
ssltest.o
:
../include/ssl3.h ../include/stack.h ../include/tls1.h
ssltest.o
:
../include/x509.h ../include/x509_vfy.h
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录