Commit ff7efc59 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

go.crypto/ssh: add String method to RejectionReason.

R=agl, dave

Committer: Adam Langley <>
parent be95fcc3
......@@ -77,6 +77,21 @@ const (
// String converts the rejection reason to human readable form.
func (r RejectionReason) String() string {
switch r {
case Prohibited:
return "administratively prohibited"
case ConnectionFailed:
return "connect failed"
case UnknownChannelType:
return "unknown channel type"
case ResourceShortage:
return "resource shortage"
return fmt.Sprintf("unknown reason %d", int(r))
type channel struct {
packetConn // the underlying transport
localId, remoteId uint32
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment