mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-09-27 07:43:47 +08:00
quantum init
This commit is contained in:
22
vendor/liboqs/.travis/banned-functions-check.sh
vendored
Executable file
22
vendor/liboqs/.travis/banned-functions-check.sh
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/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;
|
||||
Reference in New Issue
Block a user