From d1d1368c7909ffd8423730afaa811ce7b6a3a8aa Mon Sep 17 00:00:00 2001 From: Tommy Jerry Mairo Date: Sun, 4 Feb 2018 12:42:00 -0800 Subject: [PATCH 1/2] Bugfix: API mismatch with crypto++ 6.0.0 --- src/ClientCreditsList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClientCreditsList.cpp b/src/ClientCreditsList.cpp index 3bea9fe2d..a7ae1e34c 100644 --- a/src/ClientCreditsList.cpp +++ b/src/ClientCreditsList.cpp @@ -312,7 +312,7 @@ void CClientCreditsList::InitalizeCrypting() // calculate and store public key CryptoPP::RSASSA_PKCS1v15_SHA_Verifier pubkey(*static_cast(m_pSignkey)); CryptoPP::ArraySink asink(m_abyMyPublicKey, 80); - pubkey.DEREncode(asink); + pubkey.AccessMaterial().Save(asink); m_nMyPublicKeyLen = asink.TotalPutLength(); asink.MessageEnd(); } catch (const CryptoPP::Exception& e) { From 88ba0ac952b78382445f2fff73c6792c0474dc62 Mon Sep 17 00:00:00 2001 From: Tommy Jerry Mairo Date: Wed, 21 Mar 2018 11:56:28 -0700 Subject: [PATCH 2/2] Update: Change AccessMaterial to GetMaterial --- src/ClientCreditsList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClientCreditsList.cpp b/src/ClientCreditsList.cpp index a7ae1e34c..69e881fd8 100644 --- a/src/ClientCreditsList.cpp +++ b/src/ClientCreditsList.cpp @@ -312,7 +312,7 @@ void CClientCreditsList::InitalizeCrypting() // calculate and store public key CryptoPP::RSASSA_PKCS1v15_SHA_Verifier pubkey(*static_cast(m_pSignkey)); CryptoPP::ArraySink asink(m_abyMyPublicKey, 80); - pubkey.AccessMaterial().Save(asink); + pubkey.GetMaterial().Save(asink); m_nMyPublicKeyLen = asink.TotalPutLength(); asink.MessageEnd(); } catch (const CryptoPP::Exception& e) { txt' type='search' size='10' name='q' value=''/>
AgeCommit message (Expand)Author
2024-11-29.dir-locals.el: Configure indentation for home-environment....* .dir-locals.el (scheme-mode): Indent home-environment same as operating-system. Change-Id: Ie2cfa58f02d081c1e331c7d30beb77f0868f5cdd Signed-off-by: Ludovic Courtès <ludo@gnu.org> Tomas Volf
2024-09-21.dir-locals.el: Add tempel snippets....Change-Id: Ic16f571f26fffee12e478e00c54be55e6eb90831 Signed-off-by: jgart <jgart@dismail.de> Nicolas Graves
2024-05-13store: Add with-store/non-blocking....For some applications, it's important to establish a non-blocking connection rather than just making the socket non-blocking after the connection is established. This is because there is I/O on the socket that will block during the handshake. I've noticed this blocking during the handshake causing issues in the build coordinator for example. This commit adds a new with-store variant to avoid changing the behaviour of with-store/open-connection to ensure that this change can't break anything that depends on the blocking nature of the socket. * guix/store.scm (open-unix-domain-socket, open-inet-socket): Take #:non-blocking? and use SOCK_NONBLOCK when calling socket if appropriate. (connect-to-daemon, open-connection, call-with-store): Take #:non-blocking? and pass it on. (with-store/non-blocking): New syntax rule. * .dir-locals.el (scheme-mode): Add entry for with-store/non-blocking. Change-Id: I8225762b78448bc1f7b698c8de5d736e13f577bf Christopher Baines
2024-05-13.dir-locals: Configure indentation for swap-space....* .dir-locals.el (scheme-mode): Indent swap-space same as file-system. Change-Id: Id9f2cbd3c81343b479ab1e4df29c65f8b5bd739f Signed-off-by: Ludovic Courtès <ludo@gnu.org> Tomas Volf