diff options
Diffstat (limited to 'auth2-jpake.c')
-rw-r--r-- | auth2-jpake.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/auth2-jpake.c b/auth2-jpake.c index 5de5506a6..a460e8216 100644 --- a/auth2-jpake.c +++ b/auth2-jpake.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth2-jpake.c,v 1.3 2009/03/05 07:18:19 djm Exp $ */ | 1 | /* $OpenBSD: auth2-jpake.c,v 1.4 2010/08/31 11:54:45 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2008 Damien Miller. All rights reserved. | 3 | * Copyright (c) 2008 Damien Miller. All rights reserved. |
4 | * | 4 | * |
@@ -162,6 +162,11 @@ derive_rawsalt(const char *username, u_char *rawsalt, u_int len) | |||
162 | fatal("%s: DSA key missing priv_key", __func__); | 162 | fatal("%s: DSA key missing priv_key", __func__); |
163 | buffer_put_bignum2(&b, k->dsa->priv_key); | 163 | buffer_put_bignum2(&b, k->dsa->priv_key); |
164 | break; | 164 | break; |
165 | case KEY_ECDSA: | ||
166 | if (EC_KEY_get0_private_key(k->ecdsa) == NULL) | ||
167 | fatal("%s: ECDSA key missing priv_key", __func__); | ||
168 | buffer_put_bignum2(&b, EC_KEY_get0_private_key(k->ecdsa)); | ||
169 | break; | ||
165 | default: | 170 | default: |
166 | fatal("%s: unknown key type %d", __func__, k->type); | 171 | fatal("%s: unknown key type %d", __func__, k->type); |
167 | } | 172 | } |