From 1da0a75827f3b6af11c6a30880984c511cb624c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Sat, 27 Dec 2014 17:52:03 +0100 Subject: [PATCH] chg: Tamper with the signature more efficiently --- src/recordHandler.cpp | 4 ---- test/genTestData.sh | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/recordHandler.cpp b/src/recordHandler.cpp index 98991da..7da2cda 100644 --- a/src/recordHandler.cpp +++ b/src/recordHandler.cpp @@ -62,11 +62,8 @@ public: } void work() { - std::cout << "done" << std::endl; std::vector buffer( 2048, 0 ); - std::cout << "reading" << std::endl; int res = io->read( buffer.data(), buffer.capacity() ); - std::cout << "read" << std::endl; if( res <= 0 ) { parent->reset(); @@ -177,7 +174,6 @@ void DefaultRecordHandler::handle() { currentSession = std::shared_ptr( new RecordHandlerSession( this, signer, ctx, bio ) ); } - std::cout << "really allocated: " << currentSession << ";" << std::endl; currentSession->work(); } diff --git a/test/genTestData.sh b/test/genTestData.sh index e66735a..87bbae6 100755 --- a/test/genTestData.sh +++ b/test/genTestData.sh @@ -5,7 +5,7 @@ fake_sigalg (){ } fake_sig (){ - cat $1 | sed "s/[^a]=\$/c=/" | sed "s/a=/b=/" |sed "s/c=/a=/" > $2 + cat $1 | sed "s/[^a]...=\$/caaa=/" | sed "s/a...=/baaa=/" |sed "s/caaa=/aaaa=/" > $2 } mkdir -p testdata -- 2.47.3