Skip to content

Commit f26a15a

Browse files
committed
Merge branch 'main' into 'main'
Do not fail on systems running in FIPSmode. See merge request apt-team/apt!295
2 parents 7bb2b81 + 668451d commit f26a15a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

apt-pkg/contrib/hashes.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ class PrivateHashes {
330330
exit(2);
331331
}
332332

333+
// It is OK for apt to use MD5.
334+
gcry_control(GCRYCTL_NO_FIPS_MODE, 0);
335+
333336
gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0);
334337
}
335338
}

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Build-Depends: cmake (>= 3.4),
1717
libbz2-dev,
1818
libdb-dev,
1919
libgnutls28-dev (>= 3.4.6),
20-
libgcrypt20-dev,
20+
libgcrypt20-dev (>=1.10.0),
2121
liblz4-dev (>= 0.0~r126),
2222
liblzma-dev,
2323
libseccomp-dev (>= 2.4.2) [amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x hppa powerpc powerpcspe ppc64 x32],

0 commit comments

Comments
 (0)