(type)
| 1391 | } |
| 1392 | |
| 1393 | function isSupportedKeyType(type) { |
| 1394 | switch (type) { |
| 1395 | case 'ssh-rsa': |
| 1396 | case 'ssh-dss': |
| 1397 | case 'ecdsa-sha2-nistp256': |
| 1398 | case 'ecdsa-sha2-nistp384': |
| 1399 | case 'ecdsa-sha2-nistp521': |
| 1400 | return true; |
| 1401 | case 'ssh-ed25519': |
| 1402 | if (eddsaSupported) |
| 1403 | return true; |
| 1404 | // FALLTHROUGH |
| 1405 | default: |
| 1406 | return false; |
| 1407 | } |
| 1408 | } |
| 1409 | |
| 1410 | function isParsedKey(val) { |
| 1411 | if (!val) |
no outgoing calls
no test coverage detected
searching dependent graphs…