mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-09-26 15:23:58 +08:00
16 lines
481 B
Bash
Executable File
16 lines
481 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ $(nm -g liboqs.a | grep ' T ' | grep -E -v -i ' T [_]?[OQS|ntru]') ]];
|
|
then
|
|
tput setaf 1;
|
|
echo "Code contains the following non-namespaced global symbols; see https://github.com/open-quantum-safe/liboqs/wiki/Coding-conventions for function naming conventions.";
|
|
tput sgr 0
|
|
nm -g liboqs.a | grep ' T ' | grep -E -v -i ' T [_]?[OQS|ntru]'
|
|
exit 1;
|
|
else
|
|
tput setaf 2;
|
|
echo "Code adheres to the project standards (global namespace).";
|
|
tput sgr 0
|
|
exit 0;
|
|
fi;
|