Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
a291745e
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
9
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看板
提交
a291745e
编写于
4月 24, 2007
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix function codes for error
上级
0862caf2
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
37 addition
and
25 deletion
+37
-25
crypto/pkcs7/pk7_lib.c
crypto/pkcs7/pk7_lib.c
+1
-1
crypto/pkcs7/pk7_mime.c
crypto/pkcs7/pk7_mime.c
+1
-1
crypto/pkcs7/pkcs7.h
crypto/pkcs7/pkcs7.h
+1
-0
crypto/pkcs7/pkcs7err.c
crypto/pkcs7/pkcs7err.c
+2
-1
crypto/rsa/rsa_sign.c
crypto/rsa/rsa_sign.c
+2
-2
crypto/ts/ts.h
crypto/ts/ts.h
+2
-0
crypto/ts/ts_asn1.c
crypto/ts/ts_asn1.c
+3
-3
crypto/ts/ts_err.c
crypto/ts/ts_err.c
+3
-1
crypto/ts/ts_rsp_verify.c
crypto/ts/ts_rsp_verify.c
+8
-8
ssl/s3_clnt.c
ssl/s3_clnt.c
+1
-1
ssl/s3_srvr.c
ssl/s3_srvr.c
+1
-1
ssl/ssl.h
ssl/ssl.h
+3
-0
ssl/ssl_err.c
ssl/ssl_err.c
+4
-1
ssl/t1_lib.c
ssl/t1_lib.c
+5
-5
未找到文件。
crypto/pkcs7/pk7_lib.c
浏览文件 @
a291745e
...
...
@@ -350,7 +350,7 @@ int PKCS7_add_crl(PKCS7 *p7, X509_CRL *crl)
*
sk
=
sk_X509_CRL_new_null
();
if
(
*
sk
==
NULL
)
{
PKCS7err
(
PKCS7_F_PKCS7_ADD_C
ERTIFICATE
,
ERR_R_MALLOC_FAILURE
);
PKCS7err
(
PKCS7_F_PKCS7_ADD_C
RL
,
ERR_R_MALLOC_FAILURE
);
return
0
;
}
...
...
crypto/pkcs7/pk7_mime.c
浏览文件 @
a291745e
...
...
@@ -121,7 +121,7 @@ int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags)
bio
=
BIO_new_PKCS7
(
out
,
p7
);
if
(
!
bio
)
{
PKCS7err
(
PKCS7_F_
B64_WRITE_PKCS7
,
ERR_R_MALLOC_FAILURE
);
PKCS7err
(
PKCS7_F_
PKCS7_BIO_STREAM
,
ERR_R_MALLOC_FAILURE
);
return
0
;
}
SMIME_crlf_copy
(
in
,
bio
,
flags
);
...
...
crypto/pkcs7/pkcs7.h
浏览文件 @
a291745e
...
...
@@ -409,6 +409,7 @@ void ERR_load_PKCS7_strings(void);
#define PKCS7_F_PKCS7_ADD_SIGNATURE 131
#define PKCS7_F_PKCS7_ADD_SIGNER 103
#define PKCS7_F_PKCS7_BIO_ADD_DIGEST 125
#define PKCS7_F_PKCS7_BIO_STREAM 140
#define PKCS7_F_PKCS7_COPY_EXISTING_DIGEST 138
#define PKCS7_F_PKCS7_CTRL 104
#define PKCS7_F_PKCS7_DATADECODE 112
...
...
crypto/pkcs7/pkcs7err.c
浏览文件 @
a291745e
/* crypto/pkcs7/pkcs7err.c */
/* ====================================================================
* Copyright (c) 1999-200
6
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
7
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
...
...
@@ -81,6 +81,7 @@ static ERR_STRING_DATA PKCS7_str_functs[]=
{
ERR_FUNC
(
PKCS7_F_PKCS7_ADD_SIGNATURE
),
"PKCS7_add_signature"
},
{
ERR_FUNC
(
PKCS7_F_PKCS7_ADD_SIGNER
),
"PKCS7_add_signer"
},
{
ERR_FUNC
(
PKCS7_F_PKCS7_BIO_ADD_DIGEST
),
"PKCS7_BIO_ADD_DIGEST"
},
{
ERR_FUNC
(
PKCS7_F_PKCS7_BIO_STREAM
),
"PKCS7_BIO_STREAM"
},
{
ERR_FUNC
(
PKCS7_F_PKCS7_COPY_EXISTING_DIGEST
),
"PKCS7_COPY_EXISTING_DIGEST"
},
{
ERR_FUNC
(
PKCS7_F_PKCS7_CTRL
),
"PKCS7_ctrl"
},
{
ERR_FUNC
(
PKCS7_F_PKCS7_DATADECODE
),
"PKCS7_dataDecode"
},
...
...
crypto/rsa/rsa_sign.c
浏览文件 @
a291745e
...
...
@@ -197,7 +197,7 @@ int int_rsa_verify(int dtype, const unsigned char *m,
/* Excess data can be used to create forgeries */
if
(
p
!=
s
+
i
)
{
RSAerr
(
RSA_F_RSA_VERIFY
,
RSA_R_BAD_SIGNATURE
);
RSAerr
(
RSA_F_
INT_
RSA_VERIFY
,
RSA_R_BAD_SIGNATURE
);
goto
err
;
}
...
...
@@ -206,7 +206,7 @@ int int_rsa_verify(int dtype, const unsigned char *m,
if
(
sig
->
algor
->
parameter
&&
ASN1_TYPE_get
(
sig
->
algor
->
parameter
)
!=
V_ASN1_NULL
)
{
RSAerr
(
RSA_F_RSA_VERIFY
,
RSA_R_BAD_SIGNATURE
);
RSAerr
(
RSA_F_
INT_
RSA_VERIFY
,
RSA_R_BAD_SIGNATURE
);
goto
err
;
}
...
...
crypto/ts/ts.h
浏览文件 @
a291745e
...
...
@@ -772,6 +772,7 @@ void ERR_load_TS_strings(void);
#define TS_F_ESS_ADD_SIGNING_CERT 112
#define TS_F_ESS_CERT_ID_NEW_INIT 113
#define TS_F_ESS_SIGNING_CERT_NEW_INIT 114
#define TS_F_INT_TS_RESP_VERIFY_TOKEN 149
#define TS_F_PKCS7_TO_TS_TST_INFO 148
#define TS_F_TS_ACCURACY_SET_MICROS 115
#define TS_F_TS_ACCURACY_SET_MILLIS 116
...
...
@@ -802,6 +803,7 @@ void ERR_load_TS_strings(void);
#define TS_F_TS_RESP_GET_POLICY 133
#define TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION 134
#define TS_F_TS_RESP_SET_STATUS_INFO 135
#define TS_F_TS_RESP_SET_TST_INFO 150
#define TS_F_TS_RESP_SIGN 136
#define TS_F_TS_RESP_VERIFY_SIGNATURE 106
#define TS_F_TS_RESP_VERIFY_TOKEN 107
...
...
crypto/ts/ts_asn1.c
浏览文件 @
a291745e
...
...
@@ -187,18 +187,18 @@ static int ts_resp_set_tst_info(TS_RESP *a)
if
(
a
->
token
)
{
if
(
status
!=
0
&&
status
!=
1
)
{
TSerr
(
TS_F_
D2I_TS_RESP
,
TS_R_TOKEN_PRESENT
);
TSerr
(
TS_F_
TS_RESP_SET_TST_INFO
,
TS_R_TOKEN_PRESENT
);
return
0
;
}
if
(
a
->
tst_info
!=
NULL
)
TS_TST_INFO_free
(
a
->
tst_info
);
a
->
tst_info
=
PKCS7_to_TS_TST_INFO
(
a
->
token
);
if
(
!
a
->
tst_info
)
{
TSerr
(
TS_F_
D2I_TS_RESP
,
TS_R_PKCS7_TO_TS_TST_INFO_FAILED
);
TSerr
(
TS_F_
TS_RESP_SET_TST_INFO
,
TS_R_PKCS7_TO_TS_TST_INFO_FAILED
);
return
0
;
}
}
else
if
(
status
==
0
||
status
==
1
)
{
TSerr
(
TS_F_
D2I_TS_RESP
,
TS_R_TOKEN_NOT_PRESENT
);
TSerr
(
TS_F_
TS_RESP_SET_TST_INFO
,
TS_R_TOKEN_NOT_PRESENT
);
return
0
;
}
...
...
crypto/ts/ts_err.c
浏览文件 @
a291745e
/* crypto/ts/ts_err.c */
/* ====================================================================
* Copyright (c) 1999-200
6
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
7
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
...
...
@@ -76,6 +76,7 @@ static ERR_STRING_DATA TS_str_functs[]=
{
ERR_FUNC
(
TS_F_ESS_ADD_SIGNING_CERT
),
"ESS_ADD_SIGNING_CERT"
},
{
ERR_FUNC
(
TS_F_ESS_CERT_ID_NEW_INIT
),
"ESS_CERT_ID_NEW_INIT"
},
{
ERR_FUNC
(
TS_F_ESS_SIGNING_CERT_NEW_INIT
),
"ESS_SIGNING_CERT_NEW_INIT"
},
{
ERR_FUNC
(
TS_F_INT_TS_RESP_VERIFY_TOKEN
),
"INT_TS_RESP_VERIFY_TOKEN"
},
{
ERR_FUNC
(
TS_F_PKCS7_TO_TS_TST_INFO
),
"PKCS7_to_TS_TST_INFO"
},
{
ERR_FUNC
(
TS_F_TS_ACCURACY_SET_MICROS
),
"TS_ACCURACY_set_micros"
},
{
ERR_FUNC
(
TS_F_TS_ACCURACY_SET_MILLIS
),
"TS_ACCURACY_set_millis"
},
...
...
@@ -106,6 +107,7 @@ static ERR_STRING_DATA TS_str_functs[]=
{
ERR_FUNC
(
TS_F_TS_RESP_GET_POLICY
),
"TS_RESP_GET_POLICY"
},
{
ERR_FUNC
(
TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION
),
"TS_RESP_SET_GENTIME_WITH_PRECISION"
},
{
ERR_FUNC
(
TS_F_TS_RESP_SET_STATUS_INFO
),
"TS_RESP_set_status_info"
},
{
ERR_FUNC
(
TS_F_TS_RESP_SET_TST_INFO
),
"TS_RESP_set_tst_info"
},
{
ERR_FUNC
(
TS_F_TS_RESP_SIGN
),
"TS_RESP_SIGN"
},
{
ERR_FUNC
(
TS_F_TS_RESP_VERIFY_SIGNATURE
),
"TS_RESP_verify_signature"
},
{
ERR_FUNC
(
TS_F_TS_RESP_VERIFY_TOKEN
),
"TS_RESP_verify_token"
},
...
...
crypto/ts/ts_rsp_verify.c
浏览文件 @
a291745e
...
...
@@ -70,7 +70,7 @@ static int TS_check_signing_certs(PKCS7_SIGNER_INFO *si, STACK_OF(X509) *chain);
static
ESS_SIGNING_CERT
*
ESS_get_signing_cert
(
PKCS7_SIGNER_INFO
*
si
);
static
int
TS_find_cert
(
STACK_OF
(
ESS_CERT_ID
)
*
cert_ids
,
X509
*
cert
);
static
int
TS_issuer_serial_cmp
(
ESS_ISSUER_SERIAL
*
is
,
X509_CINF
*
cinfo
);
static
int
_TS_RESP_verify_token
(
TS_VERIFY_CTX
*
ctx
,
static
int
int
_TS_RESP_verify_token
(
TS_VERIFY_CTX
*
ctx
,
PKCS7
*
token
,
TS_TST_INFO
*
tst_info
);
static
int
TS_check_status_info
(
TS_RESP
*
response
);
static
char
*
TS_get_status_text
(
STACK_OF
(
ASN1_UTF8STRING
)
*
text
);
...
...
@@ -369,7 +369,7 @@ int TS_RESP_verify_response(TS_VERIFY_CTX *ctx, TS_RESP *response)
if
(
!
TS_check_status_info
(
response
))
goto
err
;
/* Check the contents of the time stamp token. */
if
(
!
_TS_RESP_verify_token
(
ctx
,
token
,
tst_info
))
if
(
!
int
_TS_RESP_verify_token
(
ctx
,
token
,
tst_info
))
goto
err
;
ret
=
1
;
...
...
@@ -379,7 +379,7 @@ int TS_RESP_verify_response(TS_VERIFY_CTX *ctx, TS_RESP *response)
/*
* Tries to extract a TS_TST_INFO structure from the PKCS7 token and
* calls the internal _TS_RESP_verify_token function for verifying it.
* calls the internal
int
_TS_RESP_verify_token function for verifying it.
*/
int
TS_RESP_verify_token
(
TS_VERIFY_CTX
*
ctx
,
PKCS7
*
token
)
{
...
...
@@ -387,7 +387,7 @@ int TS_RESP_verify_token(TS_VERIFY_CTX *ctx, PKCS7 *token)
int
ret
=
0
;
if
(
tst_info
)
{
ret
=
_TS_RESP_verify_token
(
ctx
,
token
,
tst_info
);
ret
=
int
_TS_RESP_verify_token
(
ctx
,
token
,
tst_info
);
TS_TST_INFO_free
(
tst_info
);
}
return
ret
;
...
...
@@ -405,7 +405,7 @@ int TS_RESP_verify_token(TS_VERIFY_CTX *ctx, PKCS7 *token)
* - Check if the TSA name matches the signer.
* - Check if the TSA name is the expected TSA.
*/
static
int
_TS_RESP_verify_token
(
TS_VERIFY_CTX
*
ctx
,
static
int
int
_TS_RESP_verify_token
(
TS_VERIFY_CTX
*
ctx
,
PKCS7
*
token
,
TS_TST_INFO
*
tst_info
)
{
X509
*
signer
=
NULL
;
...
...
@@ -425,7 +425,7 @@ static int _TS_RESP_verify_token(TS_VERIFY_CTX *ctx,
if
((
ctx
->
flags
&
TS_VFY_VERSION
)
&&
TS_TST_INFO_get_version
(
tst_info
)
!=
1
)
{
TSerr
(
TS_F_TS_RESP_VERIFY_TOKEN
,
TS_R_UNSUPPORTED_VERSION
);
TSerr
(
TS_F_
INT_
TS_RESP_VERIFY_TOKEN
,
TS_R_UNSUPPORTED_VERSION
);
goto
err
;
}
...
...
@@ -456,7 +456,7 @@ static int _TS_RESP_verify_token(TS_VERIFY_CTX *ctx,
if
((
ctx
->
flags
&
TS_VFY_SIGNER
)
&&
tsa_name
&&
!
TS_check_signer_name
(
tsa_name
,
signer
))
{
TSerr
(
TS_F_TS_RESP_VERIFY_TOKEN
,
TS_R_TSA_NAME_MISMATCH
);
TSerr
(
TS_F_
INT_
TS_RESP_VERIFY_TOKEN
,
TS_R_TSA_NAME_MISMATCH
);
goto
err
;
}
...
...
@@ -464,7 +464,7 @@ static int _TS_RESP_verify_token(TS_VERIFY_CTX *ctx,
if
((
ctx
->
flags
&
TS_VFY_TSA_NAME
)
&&
!
TS_check_signer_name
(
ctx
->
tsa_name
,
signer
))
{
TSerr
(
TS_F_TS_RESP_VERIFY_TOKEN
,
TS_R_TSA_UNTRUSTED
);
TSerr
(
TS_F_
INT_
TS_RESP_VERIFY_TOKEN
,
TS_R_TSA_UNTRUSTED
);
goto
err
;
}
...
...
ssl/s3_clnt.c
浏览文件 @
a291745e
...
...
@@ -833,7 +833,7 @@ int ssl3_get_server_hello(SSL *s)
}
if
(
ssl_check_serverhello_tlsext
(
s
)
<=
0
)
{
SSLerr
(
SSL_F_SSL3_
CONNECT
,
SSL_R_SERVERHELLO_TLSEXT
);
SSLerr
(
SSL_F_SSL3_
GET_SERVER_HELLO
,
SSL_R_SERVERHELLO_TLSEXT
);
goto
err
;
}
}
...
...
ssl/s3_srvr.c
浏览文件 @
a291745e
...
...
@@ -944,7 +944,7 @@ int ssl3_get_client_hello(SSL *s)
}
}
if
(
ssl_check_clienthello_tlsext
(
s
)
<=
0
)
{
SSLerr
(
SSL_F_SSL3_
ACCEPT
,
SSL_R_CLIENTHELLO_TLSEXT
);
SSLerr
(
SSL_F_SSL3_
GET_CLIENT_HELLO
,
SSL_R_CLIENTHELLO_TLSEXT
);
goto
err
;
}
#endif
...
...
ssl/ssl.h
浏览文件 @
a291745e
...
...
@@ -1770,6 +1770,7 @@ void ERR_load_SSL_strings(void);
#define SSL_F_SSL_CERT_INSTANTIATE 214
#define SSL_F_SSL_CERT_NEW 162
#define SSL_F_SSL_CHECK_PRIVATE_KEY 163
#define SSL_F_SSL_CHECK_SERVERHELLO_TLSEXT 280
#define SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG 279
#define SSL_F_SSL_CIPHER_PROCESS_RULESTR 230
#define SSL_F_SSL_CIPHER_STRENGTH_SORT 231
...
...
@@ -1804,6 +1805,8 @@ void ERR_load_SSL_strings(void);
#define SSL_F_SSL_LOAD_CLIENT_CA_FILE 185
#define SSL_F_SSL_NEW 186
#define SSL_F_SSL_PEEK 270
#define SSL_F_SSL_PREPARE_CLIENTHELLO_TLSEXT 281
#define SSL_F_SSL_PREPARE_SERVERHELLO_TLSEXT 282
#define SSL_F_SSL_READ 223
#define SSL_F_SSL_RSA_PRIVATE_DECRYPT 187
#define SSL_F_SSL_RSA_PUBLIC_ENCRYPT 188
...
...
ssl/ssl_err.c
浏览文件 @
a291745e
/* ssl/ssl_err.c */
/* ====================================================================
* Copyright (c) 1999-200
6
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
7
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
...
...
@@ -177,6 +177,7 @@ static ERR_STRING_DATA SSL_str_functs[]=
{
ERR_FUNC
(
SSL_F_SSL_CERT_INSTANTIATE
),
"SSL_CERT_INSTANTIATE"
},
{
ERR_FUNC
(
SSL_F_SSL_CERT_NEW
),
"SSL_CERT_NEW"
},
{
ERR_FUNC
(
SSL_F_SSL_CHECK_PRIVATE_KEY
),
"SSL_check_private_key"
},
{
ERR_FUNC
(
SSL_F_SSL_CHECK_SERVERHELLO_TLSEXT
),
"SSL_CHECK_SERVERHELLO_TLSEXT"
},
{
ERR_FUNC
(
SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG
),
"SSL_CHECK_SRVR_ECC_CERT_AND_ALG"
},
{
ERR_FUNC
(
SSL_F_SSL_CIPHER_PROCESS_RULESTR
),
"SSL_CIPHER_PROCESS_RULESTR"
},
{
ERR_FUNC
(
SSL_F_SSL_CIPHER_STRENGTH_SORT
),
"SSL_CIPHER_STRENGTH_SORT"
},
...
...
@@ -211,6 +212,8 @@ static ERR_STRING_DATA SSL_str_functs[]=
{
ERR_FUNC
(
SSL_F_SSL_LOAD_CLIENT_CA_FILE
),
"SSL_load_client_CA_file"
},
{
ERR_FUNC
(
SSL_F_SSL_NEW
),
"SSL_new"
},
{
ERR_FUNC
(
SSL_F_SSL_PEEK
),
"SSL_peek"
},
{
ERR_FUNC
(
SSL_F_SSL_PREPARE_CLIENTHELLO_TLSEXT
),
"SSL_PREPARE_CLIENTHELLO_TLSEXT"
},
{
ERR_FUNC
(
SSL_F_SSL_PREPARE_SERVERHELLO_TLSEXT
),
"SSL_PREPARE_SERVERHELLO_TLSEXT"
},
{
ERR_FUNC
(
SSL_F_SSL_READ
),
"SSL_read"
},
{
ERR_FUNC
(
SSL_F_SSL_RSA_PRIVATE_DECRYPT
),
"SSL_RSA_PRIVATE_DECRYPT"
},
{
ERR_FUNC
(
SSL_F_SSL_RSA_PUBLIC_ENCRYPT
),
"SSL_RSA_PUBLIC_ENCRYPT"
},
...
...
ssl/t1_lib.c
浏览文件 @
a291745e
...
...
@@ -702,7 +702,7 @@ int ssl_prepare_clienthello_tlsext(SSL *s)
if
(
s
->
tlsext_ecpointformatlist
!=
NULL
)
OPENSSL_free
(
s
->
tlsext_ecpointformatlist
);
if
((
s
->
tlsext_ecpointformatlist
=
OPENSSL_malloc
(
3
))
==
NULL
)
{
SSLerr
(
SSL_F_
TLS1
_PREPARE_CLIENTHELLO_TLSEXT
,
ERR_R_MALLOC_FAILURE
);
SSLerr
(
SSL_F_
SSL
_PREPARE_CLIENTHELLO_TLSEXT
,
ERR_R_MALLOC_FAILURE
);
return
-
1
;
}
s
->
tlsext_ecpointformatlist_length
=
3
;
...
...
@@ -716,7 +716,7 @@ int ssl_prepare_clienthello_tlsext(SSL *s)
if
((
s
->
tlsext_ellipticcurvelist
=
OPENSSL_malloc
(
s
->
tlsext_ellipticcurvelist_length
))
==
NULL
)
{
s
->
tlsext_ellipticcurvelist_length
=
0
;
SSLerr
(
SSL_F_
TLS1
_PREPARE_CLIENTHELLO_TLSEXT
,
ERR_R_MALLOC_FAILURE
);
SSLerr
(
SSL_F_
SSL
_PREPARE_CLIENTHELLO_TLSEXT
,
ERR_R_MALLOC_FAILURE
);
return
-
1
;
}
for
(
i
=
1
,
j
=
s
->
tlsext_ellipticcurvelist
;
i
<=
sizeof
(
nid_list
)
/
sizeof
(
nid_list
[
0
]);
i
++
)
...
...
@@ -744,7 +744,7 @@ int ssl_prepare_serverhello_tlsext(SSL *s)
if
(
s
->
tlsext_ecpointformatlist
!=
NULL
)
OPENSSL_free
(
s
->
tlsext_ecpointformatlist
);
if
((
s
->
tlsext_ecpointformatlist
=
OPENSSL_malloc
(
3
))
==
NULL
)
{
SSLerr
(
SSL_F_
TLS1
_PREPARE_SERVERHELLO_TLSEXT
,
ERR_R_MALLOC_FAILURE
);
SSLerr
(
SSL_F_
SSL
_PREPARE_SERVERHELLO_TLSEXT
,
ERR_R_MALLOC_FAILURE
);
return
-
1
;
}
s
->
tlsext_ecpointformatlist_length
=
3
;
...
...
@@ -812,7 +812,7 @@ int ssl_check_serverhello_tlsext(SSL *s)
int
found_uncompressed
=
0
;
if
((
s
->
session
->
tlsext_ecpointformatlist
==
NULL
)
||
(
s
->
session
->
tlsext_ecpointformatlist_length
==
0
))
{
SSLerr
(
SSL_F_
TLS1
_CHECK_SERVERHELLO_TLSEXT
,
SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST
);
SSLerr
(
SSL_F_
SSL
_CHECK_SERVERHELLO_TLSEXT
,
SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST
);
return
-
1
;
}
list
=
s
->
session
->
tlsext_ecpointformatlist
;
...
...
@@ -826,7 +826,7 @@ int ssl_check_serverhello_tlsext(SSL *s)
}
if
(
!
found_uncompressed
)
{
SSLerr
(
SSL_F_
TLS1
_CHECK_SERVERHELLO_TLSEXT
,
SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST
);
SSLerr
(
SSL_F_
SSL
_CHECK_SERVERHELLO_TLSEXT
,
SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST
);
return
-
1
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录