diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2004-01-30 03:02:27 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2004-01-30 03:02:27 +0000 |
commit | c028ad56c9ec86d3bc1b8b52e5531583d26b3535 (patch) | |
tree | 01db0f9e22213484670c3e3f2ddba0c4a9e1ba0b | |
parent | e9d24f8e503aa53e4b0b51672c5d511794ff8a3e (diff) |
Add update-moduli target for regenerating ssh moduli file; from markus@
ok deraadt@
-rw-r--r-- | etc/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/etc/Makefile b/etc/Makefile index 74d1899f42b..f527afe56d8 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.193 2004/01/28 02:24:28 mickey Exp $ +# $OpenBSD: Makefile,v 1.194 2004/01/30 03:02:26 dtucker Exp $ TZDIR= /usr/share/zoneinfo LOCALTIME= Canada/Mountain @@ -364,6 +364,17 @@ distrib: cd ${.CURDIR}/../distrib && \ ${MAKE} cleandir && ${MAKE} && exec ${SUDO} ${MAKE} install +DHSIZE=1024 1536 2048 3072 4096 +update-moduli: + ( \ + echo '# $$OpenBSD: Makefile,v 1.194 2004/01/30 03:02:26 dtucker Exp $$'; \ + echo '# Time Type Tests Tries Size Generator Modulus'; \ + ( for i in ${DHSIZE}; do \ + ssh-keygen -b $$i -G /dev/stdout; \ + done) | \ + ssh-keygen -T /dev/stdout \ + ) > moduli + .PHONY: distribution-etc-root-var distribution distrib-dirs \ release snapshot allarchs snap_pre snap_tar snap_md m4 .include <bsd.prog.mk> |