summaryrefslogtreecommitdiff
path: root/key.c
diff options
context:
space:
mode:
Diffstat (limited to 'key.c')
-rw-r--r--key.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/key.c b/key.c
index 5cc4132c0..3a652b9af 100644
--- a/key.c
+++ b/key.c
@@ -971,6 +971,8 @@ key_ssh_name_from_type_nid(int type, int nid)
971 } 971 }
972 break; 972 break;
973#endif /* OPENSSL_HAS_ECC */ 973#endif /* OPENSSL_HAS_ECC */
974 case KEY_NULL:
975 return "null";
974 } 976 }
975 return "ssh-unknown"; 977 return "ssh-unknown";
976} 978}
@@ -1276,6 +1278,8 @@ key_type_from_name(char *name)
1276 strcmp(name, "ecdsa-sha2-nistp521-cert-v01@openssh.com") == 0) { 1278 strcmp(name, "ecdsa-sha2-nistp521-cert-v01@openssh.com") == 0) {
1277 return KEY_ECDSA_CERT; 1279 return KEY_ECDSA_CERT;
1278#endif 1280#endif
1281 } else if (strcmp(name, "null") == 0) {
1282 return KEY_NULL;
1279 } 1283 }
1280 1284
1281 debug2("key_type_from_name: unknown key type '%s'", name); 1285 debug2("key_type_from_name: unknown key type '%s'", name);