the name of the entry points for UMAC-128 before including umac.c.
Idea from FreeBSD.
ok dtucker@
-# $OpenBSD: Makefile,v 1.8 2017/12/10 19:37:57 deraadt Exp $
+# $OpenBSD: Makefile,v 1.9 2017/12/12 15:06:12 naddy Exp $
.PATH: ${.CURDIR}/..
SRCS= ssh-keyscan.c
-umac128.c: umac.c
- sed \
- -e "s/^#define UMAC_OUTPUT_LEN 8/#define UMAC_OUTPUT_LEN 16/" \
- -e s/umac_new/umac128_new/g \
- -e s/umac_update/umac128_update/g \
- -e s/umac_final/umac128_final/g \
- -e s/umac_delete/umac128_delete/g \
- < ${.CURDIR}/../umac.c > ${.TARGET}
-
SRCS+= addrmatch.c atomicio.c blocks.c canohost.c chacha.c \
cipher-chachapoly.c cipher.c cleanup.c compat.c dh.c digest-openssl.c \
dispatch.c ed25519.c fe25519.c ge25519.c hash.c hmac.c hostfile.c \
-# $OpenBSD: Makefile,v 1.10 2017/12/10 19:37:57 deraadt Exp $
+# $OpenBSD: Makefile,v 1.11 2017/12/12 15:06:12 naddy Exp $
.PATH: ${.CURDIR}/..
SRCS= ssh-keysign.c readconf.c
-umac128.c: umac.c
- sed \
- -e "s/^#define UMAC_OUTPUT_LEN 8/#define UMAC_OUTPUT_LEN 16/" \
- -e s/umac_new/umac128_new/g \
- -e s/umac_update/umac128_update/g \
- -e s/umac_final/umac128_final/g \
- -e s/umac_delete/umac128_delete/g \
- < ${.CURDIR}/../umac.c > ${.TARGET}
-
SRCS+= addrmatch.c atomicio.c authfile.c bitmap.c blocks.c canohost.c \
chacha.c cipher-chachapoly.c cipher.c cleanup.c digest-openssl.c \
dispatch.c ed25519.c fatal.c fe25519.c ge25519.c hash.c hmac.c kex.c \
-# $OpenBSD: Makefile,v 1.68 2017/12/10 19:37:57 deraadt Exp $
+# $OpenBSD: Makefile,v 1.69 2017/12/12 15:06:12 naddy Exp $
.PATH: ${.CURDIR}/..
SRCS= ssh.c readconf.c clientloop.c sshtty.c sshconnect.c sshconnect2.c mux.c
-umac128.c: umac.c
- sed \
- -e "s/^#define UMAC_OUTPUT_LEN 8/#define UMAC_OUTPUT_LEN 16/" \
- -e s/umac_new/umac128_new/g \
- -e s/umac_update/umac128_update/g \
- -e s/umac_final/umac128_final/g \
- -e s/umac_delete/umac128_delete/g \
- < ${.CURDIR}/../umac.c > ${.TARGET}
-
SRCS+= addrmatch.c atomicio.c authfd.c authfile.c bitmap.c blocks.c bufaux.c \
bufbn.c bufec.c buffer.c canohost.c chacha.c channels.c \
cipher-chachapoly.c cipher.c compat.c crc32.c dh.c digest-openssl.c \
-# $OpenBSD: Makefile,v 1.91 2017/12/10 19:37:57 deraadt Exp $
+# $OpenBSD: Makefile,v 1.92 2017/12/12 15:06:12 naddy Exp $
.PATH: ${.CURDIR}/..
auth2-none.c auth2-passwd.c auth2-pubkey.c monitor.c monitor_wrap.c \
sftp-server.c sftp-common.c sandbox-pledge.c
-umac128.c: umac.c
- sed \
- -e "s/^#define UMAC_OUTPUT_LEN 8/#define UMAC_OUTPUT_LEN 16/" \
- -e s/umac_new/umac128_new/g \
- -e s/umac_update/umac128_update/g \
- -e s/umac_final/umac128_final/g \
- -e s/umac_delete/umac128_delete/g \
- < ${.CURDIR}/../umac.c > ${.TARGET}
-
SRCS+= addrmatch.c atomicio.c authfd.c authfile.c bitmap.c blocks.c bufaux.c \
bufbn.c bufec.c buffer.c canohost.c chacha.c channels.c \
cipher-chachapoly.c cipher.c compat.c crc32.c dh.c digest-openssl.c \
-/* $OpenBSD: umac.c,v 1.15 2017/11/28 06:09:38 djm Exp $ */
+/* $OpenBSD: umac.c,v 1.16 2017/12/12 15:06:12 naddy Exp $ */
/* -----------------------------------------------------------------------
*
* umac.c -- C Implementation UMAC Message Authentication
/* --- User Switches ---------------------------------------------------- */
/* ---------------------------------------------------------------------- */
+#ifndef UMAC_OUTPUT_LEN
#define UMAC_OUTPUT_LEN 8 /* Alowable: 4, 8, 12, 16 */
+#endif
/* #define FORCE_C_ONLY 1 ANSI C and 64-bit integers req'd */
/* #define AES_IMPLEMENTAION 1 1 = OpenSSL, 2 = Barreto, 3 = Gladman */
/* #define SSE2 0 Is SSE2 is available? */
--- /dev/null
+/* $OpenBSD: umac128.c,v 1.1 2017/12/12 15:06:12 naddy Exp $ */
+
+#define UMAC_OUTPUT_LEN 16
+#define umac_new umac128_new
+#define umac_update umac128_update
+#define umac_final umac128_final
+#define umac_delete umac128_delete
+
+#include "umac.c"