mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-30 17:09:41 -04:00
code style
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
9f366b07ea
commit
3bbedf6ba0
@ -31,7 +31,9 @@
|
||||
int mbedtls_asn1_write_len(unsigned char **p, const unsigned char *start, size_t len)
|
||||
{
|
||||
#if SIZE_MAX > 0xFFFFFFFF
|
||||
if (len > 0xFFFFFFFF) return MBEDTLS_ERR_ASN1_INVALID_LENGTH;
|
||||
if (len > 0xFFFFFFFF) {
|
||||
return MBEDTLS_ERR_ASN1_INVALID_LENGTH;
|
||||
}
|
||||
#endif
|
||||
|
||||
int required = 1;
|
||||
@ -53,7 +55,7 @@ int mbedtls_asn1_write_len(unsigned char **p, const unsigned char *start, size_t
|
||||
} while (len);
|
||||
|
||||
if (required > 1) {
|
||||
*--(*p) = (unsigned char)(required + 0x7f);
|
||||
*--(*p) = (unsigned char) (required + 0x7f);
|
||||
}
|
||||
|
||||
return required;
|
||||
|
Loading…
x
Reference in New Issue
Block a user