Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
d37b2098
Commit
d37b2098
authored
Jan 06, 2016
by
danh-arm
Browse files
Merge pull request #478 from sandrine-bailleux/sb/mbed-tls-pedantic
Always build with '-pedantic'
parents
4a900a2a
aa856917
Changes
6
Show whitespace changes
Inline
Side-by-side
drivers/auth/mbedtls/mbedtls_common.mk
View file @
d37b2098
...
...
@@ -55,6 +55,5 @@ MBEDTLS_COMMON_SOURCES := drivers/auth/mbedtls/mbedtls_common.c \
BL1_SOURCES
+=
${MBEDTLS_COMMON_SOURCES}
BL2_SOURCES
+=
${MBEDTLS_COMMON_SOURCES}
DISABLE_PEDANTIC
:=
1
endif
drivers/auth/mbedtls/mbedtls_crypto.c
View file @
d37b2098
...
...
@@ -174,7 +174,7 @@ static int verify_hash(void *data_ptr, unsigned int data_len,
/* Digest info should be an MBEDTLS_ASN1_SEQUENCE */
p
=
(
unsigned
char
*
)
digest_info_ptr
;
end
=
(
unsigned
char
*
)(
digest_info_ptr
+
digest_info_len
)
;
end
=
p
+
digest_info_len
;
rc
=
mbedtls_asn1_get_tag
(
&
p
,
end
,
&
len
,
MBEDTLS_ASN1_CONSTRUCTED
|
MBEDTLS_ASN1_SEQUENCE
);
if
(
rc
!=
0
)
{
...
...
include/drivers/auth/auth_mod.h
View file @
d37b2098
...
...
@@ -65,7 +65,7 @@ int auth_mod_verify_img(unsigned int img_id,
#define REGISTER_COT(_cot) \
const auth_img_desc_t *const cot_desc_ptr = \
(const auth_img_desc_t *const)&_cot[0]; \
unsigned int auth_img_flags[sizeof(_cot)/sizeof(_cot[0])]
;
unsigned int auth_img_flags[sizeof(_cot)/sizeof(_cot[0])]
#endif
/* TRUSTED_BOARD_BOOT */
...
...
tools/cert_create/include/cert.h
View file @
d37b2098
...
...
@@ -76,7 +76,7 @@ int cert_new(cert_t *cert, int days, int ca, STACK_OF(X509_EXTENSION) * sk);
/* Macro to register the certificates used in the CoT */
#define REGISTER_COT(_certs) \
cert_t *certs = &_certs[0]; \
const unsigned int num_certs = sizeof(_certs)/sizeof(_certs[0])
;
const unsigned int num_certs = sizeof(_certs)/sizeof(_certs[0])
/* Exported variables */
extern
cert_t
*
certs
;
...
...
tools/cert_create/include/ext.h
View file @
d37b2098
...
...
@@ -92,7 +92,7 @@ X509_EXTENSION *ext_new_key(int nid, int crit, EVP_PKEY *k);
/* Macro to register the extensions used in the CoT */
#define REGISTER_EXTENSIONS(_ext) \
ext_t *extensions = &_ext[0]; \
const unsigned int num_extensions = sizeof(_ext)/sizeof(_ext[0])
;
const unsigned int num_extensions = sizeof(_ext)/sizeof(_ext[0])
/* Exported variables */
extern
ext_t
*
extensions
;
...
...
tools/cert_create/include/key.h
View file @
d37b2098
...
...
@@ -79,7 +79,7 @@ int key_store(key_t *key);
/* Macro to register the keys used in the CoT */
#define REGISTER_KEYS(_keys) \
key_t *keys = &_keys[0]; \
const unsigned int num_keys = sizeof(_keys)/sizeof(_keys[0])
;
const unsigned int num_keys = sizeof(_keys)/sizeof(_keys[0])
/* Exported variables */
extern
key_t
*
keys
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment