Annotation of pkgsrc/www/cppcms/patches/patch-tests_encryptor__test.cpp, revision 1.1
1.1 ! joerg 1: $NetBSD$
! 2:
! 3: Resolve ambiguity with NetBSD's hmac function.
! 4:
! 5: --- tests/encryptor_test.cpp.orig 2016-12-21 00:15:55.815196132 +0000
! 6: +++ tests/encryptor_test.cpp
! 7: @@ -131,12 +131,12 @@ void test_crypto()
! 8: }
! 9: std::cout << "-- testing hmac-sha1/md5" << std::endl;
! 10: {
! 11: - hmac d("md5",key("Jefe",4));
! 12: + cppcms::crypto::hmac d("md5",key("Jefe",4));
! 13: TEST(get_diget(d,"what do ya want for nothing?") == "750c783e6ab0b503eaa86e310a5db738");
! 14: }
! 15: {
! 16: char const *bk = "xxxxxxxxxxxxxxddddddddddddddddddffffffffffffffffffffffffffffffffffffffffffffffdddddddddddddddddddd";
! 17: - hmac d(message_digest::md5(),key(bk,strlen(bk)));
! 18: + cppcms::crypto::hmac d(message_digest::md5(),key(bk,strlen(bk)));
! 19: TEST(get_diget(d,"what do ya want for nothing?") == "4891f8cf6a4641897159756847369d1a");
! 20: }
! 21:
CVSweb <webmaster@jp.NetBSD.org>