summaryrefslogtreecommitdiff
path: root/sshbuf.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2014-06-11 08:04:02 +1000
committerDarren Tucker <dtucker@zip.com.au>2014-06-11 08:04:02 +1000
commitb9609fd86c623d6d440e630f5f9a63295f7aea20 (patch)
tree22d3cc7196f064df906653ae62a8726437b9b6f7 /sshbuf.h
parenta54a040f66944c6e8913df8635a01a2327219be9 (diff)
downloadopenssh-git-b9609fd86c623d6d440e630f5f9a63295f7aea20.tar.gz
- (dtucker) [sshbuf.h] Only declare ECC functions if building without
OpenSSL or if OpenSSL has ECC.
Diffstat (limited to 'sshbuf.h')
-rw-r--r--sshbuf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sshbuf.h b/sshbuf.h
index a3ebce3e..1dd9be45 100644
--- a/sshbuf.h
+++ b/sshbuf.h
@@ -209,10 +209,12 @@ int sshbuf_get_bignum1(struct sshbuf *buf, BIGNUM *v);
int sshbuf_put_bignum2(struct sshbuf *buf, const BIGNUM *v);
int sshbuf_put_bignum1(struct sshbuf *buf, const BIGNUM *v);
int sshbuf_put_bignum2_bytes(struct sshbuf *buf, const void *v, size_t len);
+#if !defined(WITH_OPENSSL) || defined(OPENSSL_HAS_ECC)
int sshbuf_get_ec(struct sshbuf *buf, EC_POINT *v, const EC_GROUP *g);
int sshbuf_get_eckey(struct sshbuf *buf, EC_KEY *v);
int sshbuf_put_ec(struct sshbuf *buf, const EC_POINT *v, const EC_GROUP *g);
int sshbuf_put_eckey(struct sshbuf *buf, const EC_KEY *v);
+#endif
/* Dump the contents of the buffer to stderr in a human-readable format */
void sshbuf_dump(struct sshbuf *buf, FILE *f);