diff options
Diffstat (limited to 'ssh/common.go')
| -rw-r--r-- | ssh/common.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ssh/common.go b/ssh/common.go index 03ff0b3..5ce452b 100644 --- a/ssh/common.go +++ b/ssh/common.go @@ -119,6 +119,13 @@ func algorithmsForKeyFormat(keyFormat string) []string { } } +// isRSA returns whether algo is a supported RSA algorithm, including certificate +// algorithms. +func isRSA(algo string) bool { + algos := algorithmsForKeyFormat(KeyAlgoRSA) + return contains(algos, underlyingAlgo(algo)) +} + // supportedPubKeyAuthAlgos specifies the supported client public key // authentication algorithms. Note that this doesn't include certificate types // since those use the underlying algorithm. This list is sent to the client if |
