diff options
Diffstat (limited to 'key.c')
-rw-r--r-- | key.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: key.c,v 1.96 2011/02/04 00:44:21 djm Exp $ */ | 1 | /* $OpenBSD: key.c,v 1.97 2011/05/17 07:13:31 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * read_bignum(): | 3 | * read_bignum(): |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1821,6 +1821,9 @@ key_to_certified(Key *k, int legacy) | |||
1821 | k->type = legacy ? KEY_DSA_CERT_V00 : KEY_DSA_CERT; | 1821 | k->type = legacy ? KEY_DSA_CERT_V00 : KEY_DSA_CERT; |
1822 | return 0; | 1822 | return 0; |
1823 | case KEY_ECDSA: | 1823 | case KEY_ECDSA: |
1824 | if (legacy) | ||
1825 | fatal("%s: legacy ECDSA certificates are not supported", | ||
1826 | __func__); | ||
1824 | k->cert = cert_new(); | 1827 | k->cert = cert_new(); |
1825 | k->type = KEY_ECDSA_CERT; | 1828 | k->type = KEY_ECDSA_CERT; |
1826 | return 0; | 1829 | return 0; |