mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 19:21:08 +00:00
check-names: also check PSA files
Allow both mbedtls and psa identifiers in either set of files for now.
This commit is contained in:
parent
313b8af18e
commit
2d9d6db60f
@ -53,7 +53,7 @@ done
|
|||||||
for THING in identifiers; do
|
for THING in identifiers; do
|
||||||
printf "Names of $THING: "
|
printf "Names of $THING: "
|
||||||
test -r $THING
|
test -r $THING
|
||||||
BAD=$( grep -v '^mbedtls_[0-9a-z_]*[0-9a-z]$' $THING || true )
|
BAD=$( grep -E -v '^(mbedtls|psa)_[0-9a-z_]*[0-9a-z]$' $THING || true )
|
||||||
if [ "x$BAD" = "x" ]; then
|
if [ "x$BAD" = "x" ]; then
|
||||||
echo "PASS"
|
echo "PASS"
|
||||||
else
|
else
|
||||||
|
@ -7,7 +7,7 @@ if [ -d include/mbedtls ]; then :; else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HEADERS=$( ls include/mbedtls/*.h | egrep -v 'compat-1\.3\.h|bn_mul' )
|
HEADERS=$( ls include/mbedtls/*.h include/psa/*.h | egrep -v 'compat-1\.3\.h|bn_mul' )
|
||||||
|
|
||||||
rm -f identifiers
|
rm -f identifiers
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ if [ -d include/mbedtls ]; then :; else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
HEADERS=$( ls include/mbedtls/*.h | egrep -v 'compat-1\.3\.h' )
|
HEADERS=$( ls include/mbedtls/*.h | egrep -v 'compat-1\.3\.h' )
|
||||||
|
HEADERS="$HEADERS configs/config-default.h"
|
||||||
|
|
||||||
sed -n -e 's/.*#define \([a-zA-Z0-9_]*\).*/\1/p' $HEADERS \
|
sed -n -e 's/.*#define \([a-zA-Z0-9_]*\).*/\1/p' $HEADERS \
|
||||||
| egrep -v '^(asm|inline|EMIT|_CRT_SECURE_NO_DEPRECATE)$|^MULADDC_' \
|
| egrep -v '^(asm|inline|EMIT|_CRT_SECURE_NO_DEPRECATE)$|^MULADDC_' \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user