Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
8c045ef8
Commit
8c045ef8
authored
Apr 08, 2014
by
Manuel Pégourié-Gonnard
Browse files
Fix embarrassing X.509 bug introduced in
9533765b
parent
95a0d118
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
ChangeLog
ChangeLog
+4
-0
library/x509_crt.c
library/x509_crt.c
+3
-0
No files found.
ChangeLog
View file @
8c045ef8
...
...
@@ -8,6 +8,10 @@ Changes
Security
* Avoid potential timing leak in ecdsa_sign() by blinding modular division.
(Found by Watson Ladd.)
* The notAfter date of some certificates was no longer checked since 1.3.5.
This affects certificates in the user-supplied chain except the top
certificate. If the user-supplied chain contains only one certificates,
it is not affected (ie, its notAfter date is properly checked).
Bugfix
* The length of various ClientKeyExchange messages was not properly checked.
...
...
library/x509_crt.c
View file @
8c045ef8
...
...
@@ -1647,6 +1647,9 @@ static int x509_crt_verify_child(
x509_crt
*
grandparent
;
const
md_info_t
*
md_info
;
if
(
x509_time_expired
(
&
child
->
valid_to
)
)
*
flags
|=
BADCERT_EXPIRED
;
if
(
x509_time_future
(
&
child
->
valid_from
)
)
*
flags
|=
BADCERT_FUTURE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment