libtls: Some code style fixes

This commit is contained in:
Tobias Brunner
2021-02-12 11:45:44 +01:00
parent 4099035a0c
commit ba3c90ded1
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -296,7 +296,7 @@ METHOD(tls_fragmentation_t, process, status_t,
{ {
break; break;
} }
/* fall */ /* fall-through */
case TLS_APPLICATION_DATA: case TLS_APPLICATION_DATA:
status = process_application(this, reader); status = process_application(this, reader);
break; break;
+1 -2
View File
@@ -1611,9 +1611,8 @@ METHOD(tls_handshake_t, finished, bool,
{ {
if (this->resume) if (this->resume)
{ {
return this->state == STATE_FINISHED_SENT; return this->state == STATE_FINISHED_SENT;
} }
return this->state == STATE_FINISHED_RECEIVED; return this->state == STATE_FINISHED_RECEIVED;
} }
else else
+2 -2
View File
@@ -73,7 +73,7 @@ METHOD(tls_protection_t, process, status_t,
return NEED_MORE; return NEED_MORE;
} }
if (this-> version < TLS_1_3 || if (this->version < TLS_1_3 ||
type == TLS_APPLICATION_DATA) type == TLS_APPLICATION_DATA)
{ {
if (this->aead_in) if (this->aead_in)
@@ -99,7 +99,7 @@ METHOD(tls_protection_t, build, status_t,
status = this->compression->build(this->compression, type, data); status = this->compression->build(this->compression, type, data);
if (status == NEED_MORE) if (status == NEED_MORE)
{ {
if (this-> version < TLS_1_3 && *type == TLS_CHANGE_CIPHER_SPEC) if (*type == TLS_CHANGE_CIPHER_SPEC && this->version < TLS_1_3)
{ {
return status; return status;
} }