From 15bc02adc578c0c1f5afd1fbd9c96bbcfa388ad7 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 18 May 2025 20:45:36 +0900 Subject: fix gitignore brokenness in crypto /crypto/* masks too much and breaks the exclusion function. The docs for gitignore state that if a parent directory is ignored, negating a pattern with a ! prefix has no effect since it is not possible to reinclude a file if the parent director is excluded. https://git-scm.com/docs/gitignore This just is more explicit, which catches files added out of tree more readily. Also delete the long-removed libtls-standalone references --- .gitignore | 112 ++++++++++++++++++++++++++++++++++------------- crypto/compat/.gitignore | 31 +++++++++++++ 2 files changed, 113 insertions(+), 30 deletions(-) create mode 100644 crypto/compat/.gitignore diff --git a/.gitignore b/.gitignore index fa05276..7f8b3f4 100644 --- a/.gitignore +++ b/.gitignore @@ -237,36 +237,88 @@ include/openssl/*.h !/apps/openssl/apps_win.c !/apps/openssl/certhash_win.c -/crypto/* -!/crypto/Makefile.am.* -/crypto/arch/ -!/crypto/arch/mips/* -!/crypto/arch/loongarch64/* -!/crypto/compat/ -/crypto/compat/* -!/crypto/compat/arc4random.h -!/crypto/compat/b_win.c -!/crypto/compat/explicit_bzero_win.c -!/crypto/compat/freezero.c -!/crypto/compat/getdelim.c -!/crypto/compat/getline.c -!/crypto/compat/getpagesize.c -!/crypto/compat/posix_win.c -!/crypto/compat/bsd_asprintf.c -!/crypto/compat/ui_openssl_win.c -!/crypto/compat/crypto_lock_win.c -!/crypto/CMakeLists.txt - -!/libtls-standalone/compat/Makefile.am -/libtls-standalone/include/*.h -/libtls-standalone/src/*.c -/libtls-standalone/src/*.h -/libtls-standalone/src -/libtls-standalone/tests/test -/libtls-standalone/compat -/libtls-standalone/VERSION -/libtls-standalone/m4 -/libtls-standalone/man +/crypto/*.c +/crypto/*.h +/crypto/aes/ +/crypto/arch/aarch64/ +/crypto/arch/alpha/ +/crypto/arch/amd64/ +/crypto/arch/arm/ +/crypto/arch/hppa/ +/crypto/arch/i386/ +/crypto/arch/m88k/ +/crypto/arch/mips64/ +/crypto/arch/powerpc/ +/crypto/arch/powerpc64/ +/crypto/arch/riscv64/ +/crypto/arch/sh/ +/crypto/arch/sparc64/ +/crypto/asn1/ +/crypto/bf/ +/crypto/bio/ +/crypto/bn/*.c +/crypto/bn/*.h +/crypto/bn/arch/aarch64/ +/crypto/bn/arch/alpha/ +/crypto/bn/arch/amd64/ +/crypto/bn/arch/arm/ +/crypto/bn/arch/hppa/ +/crypto/bn/arch/i386/ +/crypto/bn/arch/m88k/ +/crypto/bn/arch/mips64/ +/crypto/bn/arch/powerpc/ +/crypto/bn/arch/powerpc64/ +/crypto/bn/arch/riscv64/ +/crypto/bn/arch/sh/ +/crypto/bn/arch/sparc64/ +/crypto/buffer/ +/crypto/bytestring/ +/crypto/camellia/ +/crypto/cast/ +/crypto/chacha/ +/crypto/cmac/ +/crypto/cms/ +/crypto/conf/ +/crypto/ct/ +/crypto/curve25519/ +/crypto/des/ +/crypto/dh/ +/crypto/dsa/ +/crypto/ec/ +/crypto/ecdh/ +/crypto/ecdsa/ +/crypto/engine/ +/crypto/err/ +/crypto/evp/ +/crypto/hidden/ +/crypto/hkdf/ +/crypto/hmac/ +/crypto/idea/ +/crypto/kdf/ +/crypto/lhash/ +/crypto/md4/ +/crypto/md5/ +/crypto/mlkem/ +/crypto/modes/ +/crypto/objects/ +/crypto/ocsp/ +/crypto/pem/ +/crypto/pkcs12/ +/crypto/pkcs7/ +/crypto/poly1305/ +/crypto/rand/ +/crypto/rc2/ +/crypto/rc4/ +/crypto/ripemd/ +/crypto/rsa/ +/crypto/sha/ +/crypto/sm3/ +/crypto/sm4/ +/crypto/stack/ +/crypto/ts/ +/crypto/txt_db/ +/crypto/ui/ +/crypto/x509/ openbsd/ diff --git a/crypto/compat/.gitignore b/crypto/compat/.gitignore new file mode 100644 index 0000000..7f05049 --- /dev/null +++ b/crypto/compat/.gitignore @@ -0,0 +1,31 @@ +arc4random.c +arc4random_aix.h +arc4random_freebsd.h +arc4random_hpux.h +arc4random_linux.h +arc4random_netbsd.h +arc4random_osx.h +arc4random_solaris.h +arc4random_uniform.c +arc4random_win.h +chacha_private.h +explicit_bzero.c +getentropy_aix.c +getentropy_freebsd.c +getentropy_hpux.c +getentropy_linux.c +getentropy_netbsd.c +getentropy_osx.c +getentropy_solaris.c +getentropy_win.c +reallocarray.c +recallocarray.c +strcasecmp.c +strlcat.c +strlcpy.c +strndup.c +strnlen.c +strsep.c +strtonum.c +timingsafe_bcmp.c +timingsafe_memcmp.c -- cgit v1.2.3-55-g6feb