summaryrefslogtreecommitdiffstats
path: root/key.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-09-10 12:28:24 +1000
committerDarren Tucker <dtucker@zip.com.au>2010-09-10 12:28:24 +1000
commit8ccb7392e7ea45d2997afdfa981a450c7db85211 (patch)
tree5dd0769c5ec6a54fffb0e77a670bdc4e84046a6c /key.c
parent6af914a15c0c33e8b5bab5ca61919b8562ff1db9 (diff)
- (dtucker) [kex.h key.c packet.h ssh-agent.c ssh.c] A few more ECC ifdefs
for missing headers and compiler warnings.
Diffstat (limited to 'key.c')
-rw-r--r--key.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/key.c b/key.c
index 3cda8f2c..196092de 100644
--- a/key.c
+++ b/key.c
@@ -261,7 +261,9 @@ cert_compare(struct KeyCert *a, struct KeyCert *b)
int
key_equal_public(const Key *a, const Key *b)
{
+#ifdef OPENSSL_HAS_ECC
BN_CTX *bnctx;
+#endif
if (a == NULL || b == NULL ||
key_type_plain(a->type) != key_type_plain(b->type))
@@ -656,9 +658,12 @@ key_read(Key *ret, char **cpp)
Key *k;
int success = -1;
char *cp, *space;
- int len, n, type, curve_nid = -1;
+ int len, n, type;
u_int bits;
u_char *blob;
+#ifdef OPENSSL_HAS_ECC
+ int curve_nid = -1;
+#endif
cp = *cpp;
@@ -1437,11 +1442,12 @@ Key *
key_from_blob(const u_char *blob, u_int blen)
{
Buffer b;
- int rlen, type, nid = -1;
+ int rlen, type;
char *ktype = NULL, *curve = NULL;
Key *key = NULL;
#ifdef OPENSSL_HAS_ECC
EC_POINT *q = NULL;
+ int nid = -1;
#endif
#ifdef DEBUG_PK