[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] bignum: no-op make_string_bn_inplace for LIBGCRYPT
[Thread Prev] | [Thread Next]
- Subject: [PATCH 1/4] bignum: no-op make_string_bn_inplace for LIBGCRYPT
- From: Jon Simons <jon@xxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sun, 07 Dec 2014 18:18:42 -0800
- To: libssh@xxxxxxxxxx
From 5e68c94867dcb6e192a6eb9fb0bec21404c9d629 Mon Sep 17 00:00:00 2001 From: Jon Simons <jon@xxxxxxxxxxxxx> Date: Sun, 7 Dec 2014 16:31:31 -0800 Subject: [PATCH 1/4] bignum: no-op make_string_bn_inplace for LIBGCRYPT Disable the 'make_string_bn_inplace' helper function for the LIBGCRYPT build, rather than using '#error' to fail the build completely. Signed-off-by: Jon Simons <jon@xxxxxxxxxxxxx> --- src/bignum.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bignum.c b/src/bignum.c index 39de248..36bd140 100644 --- a/src/bignum.c +++ b/src/bignum.c @@ -84,7 +84,9 @@ bignum make_string_bn(ssh_string string){ void make_string_bn_inplace(ssh_string string, bignum bnout) { unsigned int len = ssh_string_len(string); #ifdef HAVE_LIBGCRYPT - #error "unsupported" + /* XXX: FIXME as needed for LIBGCRYPT ECDSA codepaths. */ + (void) len; + (void) bnout; #elif defined HAVE_LIBCRYPTO bignum_bin2bn(string->data, len, bnout); #endif -- 1.9.1
Archive administrator: postmaster@lists.cynapses.org