--- a/dcpp/CryptoManager.cpp.orig 2011-04-17 17:57:09 UTC +++ b/dcpp/CryptoManager.cpp @@ -107,12 +107,20 @@ CryptoManager::CryptoManager() }; if(dh) { - dh->p = BN_bin2bn(dh4096_p, sizeof(dh4096_p), 0); - dh->g = BN_bin2bn(dh4096_g, sizeof(dh4096_g), 0); + BIGNUM *p, *g; - if (!dh->p || !dh->g) { + p = BN_bin2bn(dh4096_p, sizeof(dh4096_p), 0); + g = BN_bin2bn(dh4096_g, sizeof(dh4096_g), 0); + + if (!p || !g) { dh.reset(); } else { +#if OPENSSL_VERSION_NUMBER < 0x10100005L + dh->p = p; + dh->g = g; +#else + DH_set0_pqg(dh, p, NULL, g); +#endif SSL_CTX_set_options(serverContext, SSL_OP_SINGLE_DH_USE); SSL_CTX_set_options(serverVerContext, SSL_OP_SINGLE_DH_USE); SSL_CTX_set_tmp_dh(serverContext, (DH*)dh); Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/dbm.scm
AgeCommit message (Expand)Author
2021-03-24Merge remote-tracking branch 'origin/master' into core-updatesEfraim Flashner
2021-03-23gnu: bdb-4.8: Fix configure on powerpc64le-linux....* gnu/packages/dbm.scm (bdb-4.8)[arguments]: Modify 'configure phase to append "--build=powerpc64le-unknown-linux-gnu" to configure's flags when compiling for powerpc64le-linux. Signed-off-by: Chris Marusich <cmmarusich@gmail.com> Leo Le Bouter
2020-12-27gnu: gdbm: Update to 1.19....* gnu/packages/patches/gdbm-gcc-compat.patch: Remove. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/dbm.scm (gdbm)[source]: Remove 'patches'. Ludovic Courtès
2020-12-17gnu: gdbm: Fix build with GCC 10....* gnu/packages/patches/gdbm-gcc-compat.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/dbm.scm (gdbm)[source](patches): New field. Marius Bakke
2020-12-17gnu: bdb: Fix building with GCC 9....* gnu/packages/dbm.scm (bdb-4.8, bdb-5.3)[source]: Apply patch. * gnu/packages/patches/bdb-5.3-atomics-on-gcc-9.patch: New file. * gnu/local.mk (dist_patch_DATA): Register new file. Signed-off-by: Marius Bakke <marius@gnu.org> Jakub Kądziołka
2020-11-09gnu: bdb: Download using HTTPS....* gnu/packages/dbm.scm (bdb)[source]: Switch URI to https. (bdb-5.3, bdb-6)[source]: Same. Efraim Flashner