summaryrefslogtreecommitdiff
path: root/src/lib/emile
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-06-05 11:55:42 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-06-05 12:07:57 -0700
commitf8a654f1aad7f2afda9c6519e1167ffaeb705160 (patch)
tree3eaf026206b00ed1fe37b4339a0b7c825f70b164 /src/lib/emile
parent7afbe91ca5327a180c2a5b2017d9964aa3011c22 (diff)
emile: SSL state should fallthrough to avoid duplication of logic.
Diffstat (limited to 'src/lib/emile')
-rw-r--r--src/lib/emile/emile_cipher_openssl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/emile/emile_cipher_openssl.c b/src/lib/emile/emile_cipher_openssl.c
index 0d63b6fa74..b5ca128a23 100644
--- a/src/lib/emile/emile_cipher_openssl.c
+++ b/src/lib/emile/emile_cipher_openssl.c
@@ -618,6 +618,7 @@ _emile_cipher_client_handshake(Emile_SSL *client)
618 case EMILE_SSL_STATE_INIT: 618 case EMILE_SSL_STATE_INIT:
619 client->ssl_state = EMILE_SSL_STATE_HANDSHAKING; 619 client->ssl_state = EMILE_SSL_STATE_HANDSHAKING;
620 client->handshaking = EINA_TRUE; 620 client->handshaking = EINA_TRUE;
621 EINA_FALLTHROUGH;
621 622
622 case EMILE_SSL_STATE_HANDSHAKING: 623 case EMILE_SSL_STATE_HANDSHAKING:
623 if (!client->ssl) goto on_error; 624 if (!client->ssl) goto on_error;
@@ -641,6 +642,7 @@ _emile_cipher_client_handshake(Emile_SSL *client)
641 642
642 client->handshaking = EINA_FALSE; 643 client->handshaking = EINA_FALSE;
643 client->ssl_state = EMILE_SSL_STATE_DONE; 644 client->ssl_state = EMILE_SSL_STATE_DONE;
645 EINA_FALLTHROUGH;
644 case EMILE_SSL_STATE_DONE: 646 case EMILE_SSL_STATE_DONE:
645 break; 647 break;
646 case EMILE_SSL_STATE_ERROR: 648 case EMILE_SSL_STATE_ERROR:
@@ -1107,4 +1109,3 @@ emile_cipher_verify_basic_get(const Emile_SSL *emile)
1107{ 1109{
1108 return emile->verify_basic; 1110 return emile->verify_basic;
1109} 1111}
1110