mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-31 22:00:34 +01: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…
Reference in a new issue