plan9fox/sys/src/ape/lib/sec/mkfile
cinap_lenrek 346f5828e0 libsec: sha256 support for thumbprint files, use it in ssh as well
initThumbprints() now takes an application tag argument
so x509 and ssh can coexist.

the thumbprint entries can now hold both sha1 and sha256
hashes. okThumbprint() now takes a len argument for the
hash length used.

the new function okCertificate() hashes the certificate
with both and checks for any matches.

on failure, okCertificate() returns 0 and sets error string.

we also check for include loops now in thumbfiles, limiting
the number of includes to 8.
2017-04-23 19:00:08 +02:00

41 lines
597 B
Makefile

</$objtype/mkfile
DIRS=port $CPUS
default:V: all
install all:V:
for(i in port $objtype)@{
echo $i
cd $i
mk $MKFLAGS $target
}
clean:V:
rm -f [$OS].* *.[$OS]
for(i in $DIRS)@{
echo $i
cd $i
mk $MKFLAGS $target
}
nuke:V: clean
rm -f /$objtype/lib/ape/libsec.a
installall:V:
for(objtype in $CPUS) mk $MKFLAGS install
everything:V:
rm -f */*.[$OS]
for(objtype in $CPUS)@{
echo $objtype
mk $MKFLAGS install
}
rm -f */*.[$OS]
APE=/sys/src/ape
<$APE/config
$O.tlsclient: tlsclient.c
$CC -o $target $CFLAGS -D_POSIX_SOURCE -D_PLAN9_SOURCE -D_NET_EXTENSION tlsclient.c