summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-06-18 17:16:59 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-06-18 17:16:59 +0200
commit94a8c30feb8ebd9bccf13834e2a2b38ba411a7e6 (patch)
treec8275037f96bcaa9db9ecfb8d93e3fe2e7b0458b /src
parent68be73ec0d7ed6defd6dc212cd702b4913c51175 (diff)
downloadlibssh-94a8c30feb8ebd9bccf13834e2a2b38ba411a7e6.tar.gz
libssh-94a8c30feb8ebd9bccf13834e2a2b38ba411a7e6.tar.xz
libssh-94a8c30feb8ebd9bccf13834e2a2b38ba411a7e6.zip
pki: Fix switch statement of pki_key_generate_ecdsa().
Diffstat (limited to 'src')
-rw-r--r--src/pki_crypto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pki_crypto.c b/src/pki_crypto.c
index ed334ba..92c37c8 100644
--- a/src/pki_crypto.c
+++ b/src/pki_crypto.c
@@ -411,8 +411,10 @@ int pki_key_generate_ecdsa(ssh_key key, int parameter) {
switch (parameter) {
case 384:
nid = NID_secp384r1;
+ break;
case 512:
nid = NID_secp521r1;
+ break;
case 256:
default:
nid = NID_X9_62_prime256v1;