diff options
| author | Scott Murray <scott.murray@konsulko.com> | 2026-04-26 05:32:15 +0300 |
|---|---|---|
| committer | Scott Murray <scott.murray@konsulko.com> | 2026-04-27 21:47:27 +0300 |
| commit | ffdbb6dffd7460fde0e9a8a3add2cc2da2ca065d (patch) | |
| tree | 3fbf0f5d40659e1f53230f02b662ffb4825388ee | |
| parent | 203087eb7031085d57f34a9e7fa94e1ee32929c3 (diff) | |
| download | meta-security-ffdbb6dffd7460fde0e9a8a3add2cc2da2ca065d.tar.gz | |
libmhash: Remove
Remove libmhash, as it is no longer required to build aide.
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
| -rw-r--r-- | conf/distro/include/maintainers-meta-security.inc | 1 | ||||
| -rw-r--r-- | recipes-core/packagegroup/packagegroup-core-security.bb | 1 | ||||
| -rw-r--r-- | recipes-security/libmhash/files/Makefile.test | 13 | ||||
| -rw-r--r-- | recipes-security/libmhash/files/mhash.c | 32 | ||||
| -rw-r--r-- | recipes-security/libmhash/files/run-ptest | 12 | ||||
| -rw-r--r-- | recipes-security/libmhash/libmhash_0.9.9.9.bb | 47 |
6 files changed, 0 insertions, 106 deletions
diff --git a/conf/distro/include/maintainers-meta-security.inc b/conf/distro/include/maintainers-meta-security.inc index 8bde7bd..3aac2cb 100644 --- a/conf/distro/include/maintainers-meta-security.inc +++ b/conf/distro/include/maintainers-meta-security.inc | |||
| @@ -37,7 +37,6 @@ RECIPE_MAINTAINER:pn-keyutils = "Scott Murray <scott.murray@konsulko.com>" | |||
| 37 | RECIPE_MAINTAINER:pn-libaes-siv = "Scott Murray <scott.murray@konsulko.com>" | 37 | RECIPE_MAINTAINER:pn-libaes-siv = "Scott Murray <scott.murray@konsulko.com>" |
| 38 | RECIPE_MAINTAINER:pn-libgssglue = "Scott Murray <scott.murray@konsulko.com>" | 38 | RECIPE_MAINTAINER:pn-libgssglue = "Scott Murray <scott.murray@konsulko.com>" |
| 39 | RECIPE_MAINTAINER:pn-libhtp = "Scott Murray <scott.murray@konsulko.com>" | 39 | RECIPE_MAINTAINER:pn-libhtp = "Scott Murray <scott.murray@konsulko.com>" |
| 40 | RECIPE_MAINTAINER:pn-libmhash = "Scott Murray <scott.murray@konsulko.com>" | ||
| 41 | RECIPE_MAINTAINER:pn-lib-perl = "Scott Murray <scott.murray@konsulko.com>" | 40 | RECIPE_MAINTAINER:pn-lib-perl = "Scott Murray <scott.murray@konsulko.com>" |
| 42 | RECIPE_MAINTAINER:pn-libseccomp = "Scott Murray <scott.murray@konsulko.com>" | 41 | RECIPE_MAINTAINER:pn-libseccomp = "Scott Murray <scott.murray@konsulko.com>" |
| 43 | RECIPE_MAINTAINER:pn-libwhisker2-perl = "Scott Murray <scott.murray@konsulko.com>" | 42 | RECIPE_MAINTAINER:pn-libwhisker2-perl = "Scott Murray <scott.murray@konsulko.com>" |
diff --git a/recipes-core/packagegroup/packagegroup-core-security.bb b/recipes-core/packagegroup/packagegroup-core-security.bb index d3d3d7e..101bc6d 100644 --- a/recipes-core/packagegroup/packagegroup-core-security.bb +++ b/recipes-core/packagegroup/packagegroup-core-security.bb | |||
| @@ -39,7 +39,6 @@ RDEPENDS:packagegroup-security-utils = "\ | |||
| 39 | glome \ | 39 | glome \ |
| 40 | keyutils \ | 40 | keyutils \ |
| 41 | libgssglue \ | 41 | libgssglue \ |
| 42 | libmhash \ | ||
| 43 | nmap \ | 42 | nmap \ |
| 44 | pinentry \ | 43 | pinentry \ |
| 45 | softhsm \ | 44 | softhsm \ |
diff --git a/recipes-security/libmhash/files/Makefile.test b/recipes-security/libmhash/files/Makefile.test deleted file mode 100644 index 2e32626..0000000 --- a/recipes-security/libmhash/files/Makefile.test +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | # | ||
| 2 | # Makefile for compiling mhash tests | ||
| 3 | # | ||
| 4 | |||
| 5 | ALL = mhash | ||
| 6 | |||
| 7 | all: $(ALL) | ||
| 8 | |||
| 9 | mhash: mhash.c | ||
| 10 | $(CC) $(CFLAGS) $(LDFLAGS) -o mhash mhash.c -lmhash | ||
| 11 | |||
| 12 | clean: | ||
| 13 | rm -f *.debug $(ALL) | ||
diff --git a/recipes-security/libmhash/files/mhash.c b/recipes-security/libmhash/files/mhash.c deleted file mode 100644 index 5d123cc..0000000 --- a/recipes-security/libmhash/files/mhash.c +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | #include <mhash.h> | ||
| 2 | #include <stdio.h> | ||
| 3 | |||
| 4 | int main() | ||
| 5 | { | ||
| 6 | |||
| 7 | char password[] = "Jefe"; | ||
| 8 | int keylen = 4; | ||
| 9 | char data[] = "what do ya want for nothing?"; | ||
| 10 | int datalen = 28; | ||
| 11 | MHASH td; | ||
| 12 | unsigned char mac[16]; | ||
| 13 | int j; | ||
| 14 | |||
| 15 | td = mhash_hmac_init(MHASH_MD5, password, keylen, mhash_get_hash_pblock(MHASH_MD5)); | ||
| 16 | |||
| 17 | mhash(td, data, datalen); | ||
| 18 | mhash_hmac_deinit(td, mac); | ||
| 19 | |||
| 20 | /* | ||
| 21 | * The output should be 0x750c783e6ab0b503eaa86e310a5db738 | ||
| 22 | * according to RFC 2104. | ||
| 23 | */ | ||
| 24 | |||
| 25 | printf("0x"); | ||
| 26 | for (j = 0; j < mhash_get_block_size(MHASH_MD5); j++) { | ||
| 27 | printf("%.2x", mac[j]); | ||
| 28 | } | ||
| 29 | printf("\n"); | ||
| 30 | |||
| 31 | exit(0); | ||
| 32 | } | ||
diff --git a/recipes-security/libmhash/files/run-ptest b/recipes-security/libmhash/files/run-ptest deleted file mode 100644 index 2b0b94a..0000000 --- a/recipes-security/libmhash/files/run-ptest +++ /dev/null | |||
| @@ -1,12 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | OUTPUT=$($(dirname $0)/mhash) | ||
| 4 | MHASH_MD5="0x750c783e6ab0b503eaa86e310a5db738" | ||
| 5 | |||
| 6 | if [ x"$OUTPUT" = x"$MHASH_MD5" ]; then | ||
| 7 | echo "PASS: mhash ptest" | ||
| 8 | exit 0 | ||
| 9 | else | ||
| 10 | echo "FAIL: mhash ptest" | ||
| 11 | exit 1 | ||
| 12 | fi | ||
diff --git a/recipes-security/libmhash/libmhash_0.9.9.9.bb b/recipes-security/libmhash/libmhash_0.9.9.9.bb deleted file mode 100644 index 7c7fb11..0000000 --- a/recipes-security/libmhash/libmhash_0.9.9.9.bb +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | SUMMARY = "Library of hashing algorithms." | ||
| 2 | DESCRIPTION = "\ | ||
| 3 | Mhash is a free (under GNU Lesser GPL) library \ | ||
| 4 | which provides a uniform interface to a large number of hash \ | ||
| 5 | algorithms. These algorithms can be used to compute checksums, \ | ||
| 6 | message digests, and other signatures. \ | ||
| 7 | " | ||
| 8 | HOMEPAGE = "http://mhash.sourceforge.net/" | ||
| 9 | |||
| 10 | LICENSE = "LGPL-2.0-only" | ||
| 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" | ||
| 12 | |||
| 13 | S = "${UNPACKDIR}/mhash-${PV}" | ||
| 14 | |||
| 15 | SECTION = "libs" | ||
| 16 | |||
| 17 | SRC_URI = "${SOURCEFORGE_MIRROR}/mhash/mhash-${PV}.tar.bz2 \ | ||
| 18 | file://Makefile.test \ | ||
| 19 | file://mhash.c \ | ||
| 20 | file://run-ptest \ | ||
| 21 | " | ||
| 22 | |||
| 23 | SRC_URI[md5sum] = "f91c74f9ccab2b574a98be5bc31eb280" | ||
| 24 | SRC_URI[sha256sum] = "56521c52a9033779154432d0ae47ad7198914785265e1f570cee21ab248dfef0" | ||
| 25 | |||
| 26 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/mhash/files/" | ||
| 27 | |||
| 28 | inherit autotools-brokensep ptest multilib_header | ||
| 29 | |||
| 30 | CFLAGS += "-std=gnu17" | ||
| 31 | |||
| 32 | do_install:append() { | ||
| 33 | oe_multilib_header mutils/mhash_config.h | ||
| 34 | } | ||
| 35 | |||
| 36 | do_compile_ptest() { | ||
| 37 | if [ ! -d ${S}/demo ]; then mkdir ${S}/demo; fi | ||
| 38 | cp ${UNPACKDIR}/Makefile.test ${S}/demo/Makefile | ||
| 39 | cp ${UNPACKDIR}/mhash.c ${S}/demo/ | ||
| 40 | make -C ${S}/demo CFLAGS="${CFLAGS} -I${S}/include/" LDFLAGS="${LDFLAGS} -L${S}/lib/.libs" | ||
| 41 | } | ||
| 42 | |||
| 43 | do_install_ptest() { | ||
| 44 | install -m 0755 ${S}/demo/mhash ${D}${PTEST_PATH} | ||
| 45 | } | ||
| 46 | |||
| 47 | BBCLASSEXTEND = "native" | ||
