Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
M
MSP-OpenSSL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cyber security
T
TS 103 523 MSP
TLMSP
MSP-OpenSSL
Commits
4f2d73b8
Commit
4f2d73b8
authored
Jun 07, 2018
by
canterburym
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Softening the output so it doesn't look like an error when the middlebox terminates correctly
parent
978fc1ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
middlebox
evaluation/demonstration/middlebox
+0
-0
middlebox.c
evaluation/demonstration/middlebox.c
+3
-3
No files found.
evaluation/demonstration/middlebox
View file @
4f2d73b8
No preview for this file type
evaluation/demonstration/middlebox.c
View file @
4f2d73b8
...
...
@@ -300,11 +300,11 @@ int handle_previous_hop_data(SSL* prev_ssl, SSL* next_ssl)
status
=
SSL_get_error
(
prev_ssl
,
r
);
if
(
status
==
SSL_ERROR_ZERO_RETURN
||
status
!=
SSL_ERROR_NONE
)
{
printf
(
"[MBOX ERROR PREVHOP] Error code %ld
\n
"
,
status
);
//
printf ("[MBOX ERROR PREVHOP] Error code %ld\n", status);
ERR_print_errors_fp
(
stdout
);
char
tempBuf
[
100
];
ERR_error_string
(
status
,
tempBuf
);
printf
(
"[MBOX
ERROR PREVHOP] Connection with previous hop closed, exiting previous hop handler (error
%s)
\n
"
,
tempBuf
);
printf
(
"[MBOX
PREVHOP] Connection with previous hop closed, exiting previous hop handler (SSL reason
%s)
\n
"
,
tempBuf
);
break
;
}
else
if
(
status
!=
SSL_ERROR_NONE
)
...
...
@@ -377,7 +377,7 @@ int handle_next_hop_data(SSL* prev_ssl, SSL* next_ssl)
status
=
SSL_get_error
(
next_ssl
,
r
);
if
(
status
==
SSL_ERROR_ZERO_RETURN
||
status
!=
SSL_ERROR_NONE
)
{
printf
(
"[MBOX
ERROR
NEXTHOP] Connection with next hop closed, exiting next hop handler and also closing previous hop connection
\n
"
);
printf
(
"[MBOX NEXTHOP] Connection with next hop closed, exiting next hop handler and also closing previous hop connection
\n
"
);
break
;
}
else
if
(
status
!=
SSL_ERROR_NONE
)
...
...
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