aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJon Simons <jon@jonsimons.org>2014-12-07 16:31:31 -0800
committerAndreas Schneider <asn@cryptomilk.org>2014-12-09 19:20:46 +0100
commitca2acec34af975945e4f77f17c60c8537facf76e (patch)
tree99d47923ceb741e560d6c63cbbe93acc716a56b6 /src
parentbb197de75dc283eb0047e16f107c2441e957ea4f (diff)
downloadlibssh-ca2acec34af975945e4f77f17c60c8537facf76e.tar.gz
libssh-ca2acec34af975945e4f77f17c60c8537facf76e.tar.xz
libssh-ca2acec34af975945e4f77f17c60c8537facf76e.zip
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@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r--src/bignum.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bignum.c b/src/bignum.c
index 39de2487..36bd140d 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