Update of /cvsroot/curl/curl-www
In directory labb:/tmp/cvs-serv3644
Modified Files:
latest.cgi
Log Message:
provide a SHA-1 sum as well
Index: latest.cgi
===================================================================
RCS file: /cvsroot/curl/curl-www/latest.cgi,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- latest.cgi 14 Nov 2005 10:31:32 -0000 1.29
+++ latest.cgi 16 Nov 2005 08:40:56 -0000 1.30
@@ -19,6 +19,7 @@
my %where;
my $md5sum="md5sum";#/home/dast/solaris/bin/md5sum";
+my $sha1sum="sha1sum";
print "Content-Type: text/html\n\n";
@@ -230,10 +231,14 @@
my $md5full=`$md5sum "download/$archive"`;
my ($md5, $file)=split(" ", $md5full);
+ my $sha1full=`$sha1sum "download/$archive"`;
+ my ($sha1, $dummy)=split(" ", $sha1full);
+
print "<h2>$archive</h2>\n";
print "<b>What:</b> $desc\n",
+ "<br><b>SHA-1:</b> <tt>".$sha1."</tt>\n",
"<br><b>MD5:</b> <tt>".$md5."</tt>\n",
"<br><b>Size:</b> ".$latest::size{$what}." bytes\n",
"<br><b>Version:</b> ".$latest::version{$what}."\n";
@@ -391,7 +396,8 @@
<p>
To be really sure and safe that the contents of the files are correct, you
-should use the MD5 checksum and GPG signature to verify downloads yourself!
+should use the SHA-1 checksum, the MD5 checksum and GPG signature to verify
+downloads yourself!
MOO
;
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.