diff options
Diffstat (limited to 'ssh/common.go')
| -rw-r--r-- | ssh/common.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ssh/common.go b/ssh/common.go index dd2ab0d..7e9c2cb 100644 --- a/ssh/common.go +++ b/ssh/common.go @@ -127,6 +127,14 @@ func isRSA(algo string) bool { return contains(algos, underlyingAlgo(algo)) } +func isRSACert(algo string) bool { + _, ok := certKeyAlgoNames[algo] + if !ok { + return false + } + return isRSA(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 |
