aboutsummaryrefslogtreecommitdiffstats
path: root/include/nms
diff options
context:
space:
mode:
Diffstat (limited to 'include/nms')
-rwxr-xr-xinclude/nms/web.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/nms/web.pm b/include/nms/web.pm
index 184cd90..d22a060 100755
--- a/include/nms/web.pm
+++ b/include/nms/web.pm
@@ -7,6 +7,8 @@ use DBI;
use Data::Dumper;
use JSON;
use nms;
+use Digest::SHA qw(sha512_base64);
+use FreezeThaw qw(freeze);
package nms::web;
use base 'Exporter';
@@ -62,10 +64,12 @@ sub setwhen {
sub finalize_output {
my $query;
+ my $hash = Digest::SHA::sha512_base64(FreezeThaw::freeze(%json));
$query = $dbh->prepare ('select ' . $now . ' as time;');
$query->execute();
$json{'time'} = $query->fetchrow_hashref()->{'time'};
+ $json{'hash'} = $hash;
printcc;
print "Content-Type: text/jso; charset=utf-8\n\n";
on> Unnamed repository; edit this file 'description' to name the repository.MimesBrønn
aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/rspec-rails-1.3.3/spec/spec/rails/mocks/ar_classes.rb
blob: 05213029afdcdbef4b9b9f8fcd63357cb7bb5746 (plain)
1
2
3
4
5
6
7
8
9
10