mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-05 00:05:12 -04:00
23 lines
365 B
Bash
Executable File
23 lines
365 B
Bash
Executable File
#!/bin/bash
|
|
|
|
retvalue=0
|
|
|
|
if [[ $(find . -name '*.[ch]' -exec grep -H bzero {} \;) ]];
|
|
then
|
|
tput setaf 1;
|
|
echo "Code uses banned functions (bzero).";
|
|
tput sgr 0
|
|
retvalue=1;
|
|
fi;
|
|
|
|
# can add more checks here by copying the above code block
|
|
|
|
if [[ $retvalue == 0 ]];
|
|
then
|
|
tput setaf 2;
|
|
echo "Code does not use banned functions.";
|
|
tput sgr 0
|
|
fi;
|
|
|
|
exit $retvalue;
|