aboutsummaryrefslogtreecommitdiff
path: root/identify
blob: 6d603cf449ceb86618d9d899563cbcabfc115d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
if [[ $# != 1 ]]; then
  echo >&2 "Usage: $0 path/to/libc.so"
  exit 2
fi

. common/libc.sh

[[ -e $1 ]] || exit
sha256=`sha256sum $1`
check_sha256 $sha256 || exit
echo "No SHA-256 match found in the database"