Upstream has just committed the following, which we could probably use as a patch in the meantime:
> From 3a547b8ab392e0419488eb4aa633f9b31f0ccaf4 Mon Sep 17 00:00:00 2001 > From: Jonathan Xu <jonathan...@seafile.com> > Date: Tue, 21 Nov 2017 19:56:31 +0800 > Subject: [PATCH] Replace deprecated generate_rsa_key() with > generate_rsa_key_ex(). > > --- > src/utils/rsa.cpp | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/src/utils/rsa.cpp b/src/utils/rsa.cpp > index 4f923add0..cbaefbe11 100644 > --- a/src/utils/rsa.cpp > +++ b/src/utils/rsa.cpp > @@ -177,8 +177,12 @@ id_from_pubkey (RSA *pubkey) > RSA * > generate_private_key(u_int bits) > { > - RSA *priv = NULL; > + RSA *priv = RSA_new (); > + BIGNUM *e = BN_new (); > > - priv = RSA_generate_key(bits, 35, NULL, NULL); > - return priv; > + BN_set_word (e, 35); > + RSA_generate_key_ex (priv, bits, e, NULL); > + > + BN_free (e); > + return priv; > } > Best regards, -- Moritz Schlarb Unix-Gruppe | Systembetreuung Zentrum für Datenverarbeitung Johannes Gutenberg-Universität Mainz Raum 01-331 - Tel. +49 6131 39-29441 OpenPGP Fingerprint: DF01 2247 BFC6 5501 AFF2 8445 0C24 B841 C7DD BAAF
>From 3a547b8ab392e0419488eb4aa633f9b31f0ccaf4 Mon Sep 17 00:00:00 2001 From: Jonathan Xu <jonathan...@seafile.com> Date: Tue, 21 Nov 2017 19:56:31 +0800 Subject: [PATCH] Replace deprecated generate_rsa_key() with generate_rsa_key_ex(). --- src/utils/rsa.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/utils/rsa.cpp b/src/utils/rsa.cpp index 4f923add0..cbaefbe11 100644 --- a/src/utils/rsa.cpp +++ b/src/utils/rsa.cpp @@ -177,8 +177,12 @@ id_from_pubkey (RSA *pubkey) RSA * generate_private_key(u_int bits) { - RSA *priv = NULL; + RSA *priv = RSA_new (); + BIGNUM *e = BN_new (); - priv = RSA_generate_key(bits, 35, NULL, NULL); - return priv; + BN_set_word (e, 35); + RSA_generate_key_ex (priv, bits, e, NULL); + + BN_free (e); + return priv; }
<<attachment: schlarbm.vcf>>