Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP OpenSSL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP OpenSSL
Commits
2b3936e8
Commit
2b3936e8
authored
14 years ago
by
Dr. Stephen Henson
Browse files
Options
Downloads
Patches
Plain Diff
avoid verification loops in trusted store when path building
parent
c596b2ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGES
+4
-0
4 additions, 0 deletions
CHANGES
crypto/x509/x509_txt.c
+2
-0
2 additions, 0 deletions
crypto/x509/x509_txt.c
crypto/x509/x509_vfy.c
+15
-0
15 additions, 0 deletions
crypto/x509/x509_vfy.c
crypto/x509/x509_vfy.h
+2
-0
2 additions, 0 deletions
crypto/x509/x509_vfy.h
with
23 additions
and
0 deletions
CHANGES
+
4
−
0
View file @
2b3936e8
...
...
@@ -4,6 +4,10 @@
Changes between 1.0.1 and 1.1.0 [xx XXX xxxx]
*) If a candidate issuer certificate is already part of the constructed
path ignore it: new debug notification X509_V_ERR_PATH_LOOP for this case.
[Steve Henson]
*) Improve forward-security support: add functions
void SSL_CTX_set_not_resumable_session_callback(SSL_CTX *ctx, int (*cb)(SSL *ssl, int is_forward_secure))
...
...
This diff is collapsed.
Click to expand it.
crypto/x509/x509_txt.c
+
2
−
0
View file @
2b3936e8
...
...
@@ -183,6 +183,8 @@ const char *X509_verify_cert_error_string(long n)
return
(
"unsupported or invalid name syntax"
);
case
X509_V_ERR_CRL_PATH_VALIDATION_ERROR
:
return
(
"CRL path validation error"
);
case
X509_V_ERR_PATH_LOOP
:
return
(
"Path Loop"
);
default:
BIO_snprintf
(
buf
,
sizeof
buf
,
"error number %ld"
,
n
);
...
...
This diff is collapsed.
Click to expand it.
crypto/x509/x509_vfy.c
+
15
−
0
View file @
2b3936e8
...
...
@@ -439,6 +439,21 @@ static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer)
{
int
ret
;
ret
=
X509_check_issued
(
issuer
,
x
);
if
(
ret
==
X509_V_OK
)
{
int
i
;
X509
*
ch
;
for
(
i
=
0
;
i
<
sk_X509_num
(
ctx
->
chain
);
i
++
)
{
ch
=
sk_X509_value
(
ctx
->
chain
,
i
);
if
(
ch
==
issuer
||
!
X509_cmp
(
ch
,
issuer
))
{
ret
=
X509_V_ERR_PATH_LOOP
;
break
;
}
}
}
if
(
ret
==
X509_V_OK
)
return
1
;
/* If we haven't asked for issuer errors don't set ctx */
...
...
This diff is collapsed.
Click to expand it.
crypto/x509/x509_vfy.h
+
2
−
0
View file @
2b3936e8
...
...
@@ -353,6 +353,8 @@ void X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth);
#define X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX 52
#define X509_V_ERR_UNSUPPORTED_NAME_SYNTAX 53
#define X509_V_ERR_CRL_PATH_VALIDATION_ERROR 54
/* Another issuer check debug option */
#define X509_V_ERR_PATH_LOOP 55
/* The application is not happy */
#define X509_V_ERR_APPLICATION_VERIFICATION 50
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment