diff options
Diffstat (limited to 'security/titus/files/patch-dh.cpp')
-rw-r--r-- | security/titus/files/patch-dh.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/security/titus/files/patch-dh.cpp b/security/titus/files/patch-dh.cpp new file mode 100644 index 000000000000..4b373f50bea3 --- /dev/null +++ b/security/titus/files/patch-dh.cpp @@ -0,0 +1,15 @@ +--- dh.cpp.orig 2015-11-28 22:51:00 UTC ++++ dh.cpp +@@ -148,11 +148,7 @@ openssl_unique_ptr<DH> make_dh (const unsigned char* p + throw Openssl_error(ERR_get_error()); + } + +- if ((dh->p = BN_bin2bn(prime, prime_len, NULL)) == NULL) { +- throw Openssl_error(ERR_get_error()); +- } +- +- if ((dh->g = BN_bin2bn(generator, generator_len, NULL)) == NULL) { ++ if (!DH_set0_pqg(dh.get(), BN_bin2bn(prime, prime_len, NULL), NULL, BN_bin2bn(generator, generator_len, NULL))) { + throw Openssl_error(ERR_get_error()); + } + |