Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
0c69f2e1
Commit
0c69f2e1
authored
Nov 21, 2018
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiler warnings
parent
d07a6e33
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
extra/yassl/src/ssl.cpp
extra/yassl/src/ssl.cpp
+12
-4
No files found.
extra/yassl/src/ssl.cpp
View file @
0c69f2e1
...
@@ -295,6 +295,7 @@ int SSL_connect(SSL* ssl)
...
@@ -295,6 +295,7 @@ int SSL_connect(SSL* ssl)
sendClientHello
(
*
ssl
);
sendClientHello
(
*
ssl
);
if
(
!
ssl
->
GetError
())
if
(
!
ssl
->
GetError
())
ssl
->
useStates
().
UseConnect
()
=
CLIENT_HELLO_SENT
;
ssl
->
useStates
().
UseConnect
()
=
CLIENT_HELLO_SENT
;
/* fall through */
case
CLIENT_HELLO_SENT
:
case
CLIENT_HELLO_SENT
:
neededState
=
ssl
->
getSecurity
().
get_resuming
()
?
neededState
=
ssl
->
getSecurity
().
get_resuming
()
?
...
@@ -309,6 +310,7 @@ int SSL_connect(SSL* ssl)
...
@@ -309,6 +310,7 @@ int SSL_connect(SSL* ssl)
}
}
if
(
!
ssl
->
GetError
())
if
(
!
ssl
->
GetError
())
ssl
->
useStates
().
UseConnect
()
=
FIRST_REPLY_DONE
;
ssl
->
useStates
().
UseConnect
()
=
FIRST_REPLY_DONE
;
/* fall through */
case
FIRST_REPLY_DONE
:
case
FIRST_REPLY_DONE
:
if
(
ssl
->
getCrypto
().
get_certManager
().
sendVerify
())
if
(
ssl
->
getCrypto
().
get_certManager
().
sendVerify
())
...
@@ -326,6 +328,7 @@ int SSL_connect(SSL* ssl)
...
@@ -326,6 +328,7 @@ int SSL_connect(SSL* ssl)
if
(
!
ssl
->
GetError
())
if
(
!
ssl
->
GetError
())
ssl
->
useStates
().
UseConnect
()
=
FINISHED_DONE
;
ssl
->
useStates
().
UseConnect
()
=
FINISHED_DONE
;
/* fall through */
case
FINISHED_DONE
:
case
FINISHED_DONE
:
if
(
!
ssl
->
getSecurity
().
get_resuming
())
if
(
!
ssl
->
getSecurity
().
get_resuming
())
...
@@ -335,6 +338,7 @@ int SSL_connect(SSL* ssl)
...
@@ -335,6 +338,7 @@ int SSL_connect(SSL* ssl)
}
}
if
(
!
ssl
->
GetError
())
if
(
!
ssl
->
GetError
())
ssl
->
useStates
().
UseConnect
()
=
SECOND_REPLY_DONE
;
ssl
->
useStates
().
UseConnect
()
=
SECOND_REPLY_DONE
;
/* fall through */
case
SECOND_REPLY_DONE
:
case
SECOND_REPLY_DONE
:
ssl
->
verifyState
(
serverFinishedComplete
);
ssl
->
verifyState
(
serverFinishedComplete
);
...
@@ -371,7 +375,6 @@ int SSL_accept(SSL* ssl)
...
@@ -371,7 +375,6 @@ int SSL_accept(SSL* ssl)
ssl
->
SetError
(
no_error
);
ssl
->
SetError
(
no_error
);
if
(
ssl
->
GetError
()
==
YasslError
(
SSL_ERROR_WANT_WRITE
))
{
if
(
ssl
->
GetError
()
==
YasslError
(
SSL_ERROR_WANT_WRITE
))
{
ssl
->
SetError
(
no_error
);
ssl
->
SetError
(
no_error
);
ssl
->
SendWriteBuffered
();
ssl
->
SendWriteBuffered
();
if
(
!
ssl
->
GetError
())
if
(
!
ssl
->
GetError
())
...
@@ -385,6 +388,7 @@ int SSL_accept(SSL* ssl)
...
@@ -385,6 +388,7 @@ int SSL_accept(SSL* ssl)
processReply
(
*
ssl
);
processReply
(
*
ssl
);
if
(
!
ssl
->
GetError
())
if
(
!
ssl
->
GetError
())
ssl
->
useStates
().
UseAccept
()
=
ACCEPT_FIRST_REPLY_DONE
;
ssl
->
useStates
().
UseAccept
()
=
ACCEPT_FIRST_REPLY_DONE
;
/* fall through */
case
ACCEPT_FIRST_REPLY_DONE
:
case
ACCEPT_FIRST_REPLY_DONE
:
sendServerHello
(
*
ssl
);
sendServerHello
(
*
ssl
);
...
@@ -404,6 +408,7 @@ int SSL_accept(SSL* ssl)
...
@@ -404,6 +408,7 @@ int SSL_accept(SSL* ssl)
if
(
!
ssl
->
GetError
())
if
(
!
ssl
->
GetError
())
ssl
->
useStates
().
UseAccept
()
=
SERVER_HELLO_DONE
;
ssl
->
useStates
().
UseAccept
()
=
SERVER_HELLO_DONE
;
/* fall through */
case
SERVER_HELLO_DONE
:
case
SERVER_HELLO_DONE
:
if
(
!
ssl
->
getSecurity
().
get_resuming
())
{
if
(
!
ssl
->
getSecurity
().
get_resuming
())
{
...
@@ -414,6 +419,7 @@ int SSL_accept(SSL* ssl)
...
@@ -414,6 +419,7 @@ int SSL_accept(SSL* ssl)
}
}
if
(
!
ssl
->
GetError
())
if
(
!
ssl
->
GetError
())
ssl
->
useStates
().
UseAccept
()
=
ACCEPT_SECOND_REPLY_DONE
;
ssl
->
useStates
().
UseAccept
()
=
ACCEPT_SECOND_REPLY_DONE
;
/* fall through */
case
ACCEPT_SECOND_REPLY_DONE
:
case
ACCEPT_SECOND_REPLY_DONE
:
sendChangeCipher
(
*
ssl
);
sendChangeCipher
(
*
ssl
);
...
@@ -422,6 +428,7 @@ int SSL_accept(SSL* ssl)
...
@@ -422,6 +428,7 @@ int SSL_accept(SSL* ssl)
if
(
!
ssl
->
GetError
())
if
(
!
ssl
->
GetError
())
ssl
->
useStates
().
UseAccept
()
=
ACCEPT_FINISHED_DONE
;
ssl
->
useStates
().
UseAccept
()
=
ACCEPT_FINISHED_DONE
;
/* fall through */
case
ACCEPT_FINISHED_DONE
:
case
ACCEPT_FINISHED_DONE
:
if
(
ssl
->
getSecurity
().
get_resuming
())
{
if
(
ssl
->
getSecurity
().
get_resuming
())
{
...
@@ -432,6 +439,7 @@ int SSL_accept(SSL* ssl)
...
@@ -432,6 +439,7 @@ int SSL_accept(SSL* ssl)
}
}
if
(
!
ssl
->
GetError
())
if
(
!
ssl
->
GetError
())
ssl
->
useStates
().
UseAccept
()
=
ACCEPT_THIRD_REPLY_DONE
;
ssl
->
useStates
().
UseAccept
()
=
ACCEPT_THIRD_REPLY_DONE
;
/* fall through */
case
ACCEPT_THIRD_REPLY_DONE
:
case
ACCEPT_THIRD_REPLY_DONE
:
ssl
->
useLog
().
ShowTCP
(
ssl
->
getSocket
().
get_fd
());
ssl
->
useLog
().
ShowTCP
(
ssl
->
getSocket
().
get_fd
());
...
...
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