From eb8dd9dca1228af0cd132f515509051ecfabf6f6 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Mon, 14 Apr 2025 17:32:06 +0000 Subject: This commit was manufactured by cvs2git to create tag 'tb_20250414'. --- src/regress/lib/libssl/symbols/Makefile | 22 ------------ src/regress/lib/libssl/symbols/symbols.awk | 58 ------------------------------ 2 files changed, 80 deletions(-) delete mode 100644 src/regress/lib/libssl/symbols/Makefile delete mode 100644 src/regress/lib/libssl/symbols/symbols.awk (limited to 'src/regress/lib/libssl/symbols') diff --git a/src/regress/lib/libssl/symbols/Makefile b/src/regress/lib/libssl/symbols/Makefile deleted file mode 100644 index d500dfcd0a..0000000000 --- a/src/regress/lib/libssl/symbols/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# $OpenBSD: Makefile,v 1.2 2023/07/15 23:40:46 tb Exp $ - -PROG = symbols - -.include - -DPADD= ${LIBCRYPTO} ${LIBSSL} -LDFLAGS+= -lcrypto -lssl -LDFLAGS+= -Wl,--no-allow-shlib-undefined -CFLAGS+= -Wno-deprecated-declarations - -CLEANFILES+= symbols.c symbols.c.tmp - -symbols.c: symbols.awk ../../../../lib/libssl/Symbols.list - awk -f ${.CURDIR}/symbols.awk \ - < ${BSDSRCDIR}/lib/libssl/Symbols.list > $@.tmp && \ - mv -f $@.tmp $@ - -run-regress-symbols: symbols - ./symbols 2>/dev/null - -.include diff --git a/src/regress/lib/libssl/symbols/symbols.awk b/src/regress/lib/libssl/symbols/symbols.awk deleted file mode 100644 index ecbe25e393..0000000000 --- a/src/regress/lib/libssl/symbols/symbols.awk +++ /dev/null @@ -1,58 +0,0 @@ -# $OpenBSD: symbols.awk,v 1.4 2024/05/08 06:54:43 tb Exp $ - -# Copyright (c) 2018,2020,2023 Theo Buehler -# -# Permission to use, copy, modify, and distribute this software for any -# purpose with or without fee is hereby granted, provided that the above -# copyright notice and this permission notice appear in all copies. -# -# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -# usage: awk -f symbols.awk < Symbols.list > symbols.c - -BEGIN { - printf("#include \n\n") - - printf("#include \n") - printf("#include \n") - printf("#include \n\n") - - printf("#include \n\n") # depends on ssl.h -} - -{ - symbols[$0] = $0 - - # Undefine aliases, so we don't accidentally leave them in Symbols.list. - printf("#ifdef %s\n#undef %s\n#endif\n", $0, $0) -} - -END { - printf("\nint\nmain(void)\n{\n") - printf("\tsize_t i;\n"); - - printf("\tstruct {\n") - printf("\t\tconst char *const name;\n") - printf("\t\tconst void *addr;\n") - printf("\t} symbols[] = {\n") - - for (symbol in symbols) { - printf("\t\t{\n") - printf("\t\t\t.name = \"%s\",\n", symbol) - printf("\t\t\t.addr = &%s,\n", symbol) - printf("\t\t},\n") - } - - printf("\t\};\n\n") - - printf("\tfor (i = 0; i < sizeof(symbols) / sizeof(symbols[0]); i++)\n") - printf("\t\tfprintf(stderr, \"%%s: %%p\\n\", symbols[i].name, symbols[i].addr);\n") - printf("\n\tprintf(\"OK\\n\");\n") - printf("\n\treturn 0;\n}\n") -} -- cgit v1.2.3-55-g6feb