summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2017-03-08 14:51:45 +0200
committerPanu Matilainen <pmatilai@redhat.com>2017-03-08 14:51:45 +0200
commit0cd74ade37d16d282d13e781deb68a219b2c04b9 (patch)
tree54e55288889abae1a4020758587c94c152e18ce3
parent6eeb2f2963cb4ab5f7c24b0c7165336581e53117 (diff)
downloadrpm-0cd74ade37d16d282d13e781deb68a219b2c04b9.tar.gz
Bump file digests to SHA256 by default, finally
As a part of modernizing the crypto used by rpm, it's way past time to use a stronger algorithm for the file digests. The jump from MD5 is not entirely smooth but at least Fedora and RHEL did that ages ago and survived, others should too. And of course you can always flip it back to MD5 if you really need to, for eg building packages for ancient distro versions.
-rw-r--r--macros.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/macros.in b/macros.in
index 72d4a51ed..49a3dab04 100644
--- a/macros.in
+++ b/macros.in
@@ -355,17 +355,17 @@ package or when debugging this package.\
# Algorithm to use for generating file checksum digests on build.
# If not specified or 0, MD5 is used.
-# WARNING: non-MD5 is backwards incompatible, don't enable lightly!
-# The supported algorithms may depend on NSS version, as of NSS
-# 3.11.99.5 the following are supported:
+# WARNING: non-MD5 is backwards incompatible with rpm < 4.6!
+# The supported algorithms may depend on the underlying crypto
+# implementation but generally at least the following are supported:
# 1 MD5 (default)
# 2 SHA1
# 8 SHA256
# 9 SHA384
# 10 SHA512
#
-#%_source_filedigest_algorithm 1
-#%_binary_filedigest_algorithm 1
+%_source_filedigest_algorithm 8
+%_binary_filedigest_algorithm 8
# Configurable vendor information, same as Vendor: in a specfile.
#