mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-29 08:24:11 -04:00
Rearrange declarations for readability
Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
parent
017139751a
commit
5d074168f3
@ -955,11 +955,11 @@ int mbedtls_oid_from_numeric_string(mbedtls_asn1_buf *oid,
|
|||||||
const char *str_bound = oid_str + size;
|
const char *str_bound = oid_str + size;
|
||||||
unsigned int val = 0;
|
unsigned int val = 0;
|
||||||
unsigned int component1, component2;
|
unsigned int component1, component2;
|
||||||
/* Count the number of dots to get a worst-case allocation size. */
|
|
||||||
size_t num_dots = 0;
|
|
||||||
size_t encoded_len;
|
size_t encoded_len;
|
||||||
unsigned char *minimum_mem;
|
unsigned char *minimum_mem;
|
||||||
|
|
||||||
|
/* Count the number of dots to get a worst-case allocation size. */
|
||||||
|
size_t num_dots = 0;
|
||||||
for (size_t i = 0; i < size; i++) {
|
for (size_t i = 0; i < size; i++) {
|
||||||
if (oid_str[i] == '.') {
|
if (oid_str[i] == '.') {
|
||||||
num_dots++;
|
num_dots++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user