libtls: Some code style fixes
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user