pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/cppcms Resolve hmac fallout.
details: https://anonhg.NetBSD.org/pkgsrc/rev/ecd5c26729be
branches: trunk
changeset: 356195:ecd5c26729be
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Dec 21 13:39:21 2016 +0000
description:
Resolve hmac fallout.
diffstat:
www/cppcms/distinfo | 3 ++-
www/cppcms/patches/patch-tests_encryptor__test.cpp | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletions(-)
diffs (39 lines):
diff -r 77e66bf91818 -r ecd5c26729be www/cppcms/distinfo
--- a/www/cppcms/distinfo Wed Dec 21 13:38:16 2016 +0000
+++ b/www/cppcms/distinfo Wed Dec 21 13:39:21 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2015/11/04 02:46:51 agc Exp $
+$NetBSD: distinfo,v 1.5 2016/12/21 13:39:21 joerg Exp $
SHA1 (cppcms-1.0.4.tar.bz2) = 470a3eedbd568b457fe6516b78a9c1f464cdc276
RMD160 (cppcms-1.0.4.tar.bz2) = 6efa445f8da113ba870010c3a770592587e4198f
@@ -16,3 +16,4 @@
SHA1 (patch-private_posix__util.h) = 87b7af8f1aee64f74b002a837f3ae4a456d116d8
SHA1 (patch-src_json.cpp) = 4ef9bc4d65c493046b3847a85892ab65cab74add
SHA1 (patch-src_util.cpp) = a27f4b164555d68aad950460ffd66fc9329ced62
+SHA1 (patch-tests_encryptor__test.cpp) = c05549567c2b93572efa77be4891f9853db75377
diff -r 77e66bf91818 -r ecd5c26729be www/cppcms/patches/patch-tests_encryptor__test.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/cppcms/patches/patch-tests_encryptor__test.cpp Wed Dec 21 13:39:21 2016 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-tests_encryptor__test.cpp,v 1.1 2016/12/21 13:39:21 joerg Exp $
+
+Resolve ambiguity with NetBSD's hmac function.
+
+--- tests/encryptor_test.cpp.orig 2016-12-21 00:15:55.815196132 +0000
++++ tests/encryptor_test.cpp
+@@ -131,12 +131,12 @@ void test_crypto()
+ }
+ std::cout << "-- testing hmac-sha1/md5" << std::endl;
+ {
+- hmac d("md5",key("Jefe",4));
++ cppcms::crypto::hmac d("md5",key("Jefe",4));
+ TEST(get_diget(d,"what do ya want for nothing?") == "750c783e6ab0b503eaa86e310a5db738");
+ }
+ {
+ char const *bk = "xxxxxxxxxxxxxxddddddddddddddddddffffffffffffffffffffffffffffffffffffffffffffffdddddddddddddddddddd";
+- hmac d(message_digest::md5(),key(bk,strlen(bk)));
++ cppcms::crypto::hmac d(message_digest::md5(),key(bk,strlen(bk)));
+ TEST(get_diget(d,"what do ya want for nothing?") == "4891f8cf6a4641897159756847369d1a");
+ }
+
Home |
Main Index |
Thread Index |
Old Index