2017-06-26 17:30:47 +03:00
|
|
|
// Code generated by "stringer -type=SecuritySubType"; DO NOT EDIT.
|
|
|
|
|
2018-07-27 16:55:06 +03:00
|
|
|
package rfb
|
2017-06-26 17:30:47 +03:00
|
|
|
|
2020-01-23 01:56:16 +03:00
|
|
|
import "strconv"
|
|
|
|
|
|
|
|
func _() {
|
|
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
|
|
// Re-run the stringer command to generate them again.
|
|
|
|
var x [1]struct{}
|
|
|
|
_ = x[SecSubTypeUnknown-0]
|
|
|
|
_ = x[SecSubTypeVeNCrypt01Unknown-0]
|
|
|
|
_ = x[SecSubTypeVeNCrypt01Plain-19]
|
|
|
|
_ = x[SecSubTypeVeNCrypt01TLSNone-20]
|
|
|
|
_ = x[SecSubTypeVeNCrypt01TLSVNC-21]
|
|
|
|
_ = x[SecSubTypeVeNCrypt01TLSPlain-22]
|
|
|
|
_ = x[SecSubTypeVeNCrypt01X509None-23]
|
|
|
|
_ = x[SecSubTypeVeNCrypt01X509VNC-24]
|
|
|
|
_ = x[SecSubTypeVeNCrypt01X509Plain-25]
|
|
|
|
_ = x[SecSubTypeVeNCrypt02Unknown-0]
|
|
|
|
_ = x[SecSubTypeVeNCrypt02Plain-256]
|
|
|
|
_ = x[SecSubTypeVeNCrypt02TLSNone-257]
|
|
|
|
_ = x[SecSubTypeVeNCrypt02TLSVNC-258]
|
|
|
|
_ = x[SecSubTypeVeNCrypt02TLSPlain-259]
|
|
|
|
_ = x[SecSubTypeVeNCrypt02X509None-260]
|
|
|
|
_ = x[SecSubTypeVeNCrypt02X509VNC-261]
|
|
|
|
_ = x[SecSubTypeVeNCrypt02X509Plain-262]
|
|
|
|
}
|
2017-06-26 17:30:47 +03:00
|
|
|
|
|
|
|
const (
|
|
|
|
_SecuritySubType_name_0 = "SecSubTypeUnknown"
|
|
|
|
_SecuritySubType_name_1 = "SecSubTypeVeNCrypt01PlainSecSubTypeVeNCrypt01TLSNoneSecSubTypeVeNCrypt01TLSVNCSecSubTypeVeNCrypt01TLSPlainSecSubTypeVeNCrypt01X509NoneSecSubTypeVeNCrypt01X509VNCSecSubTypeVeNCrypt01X509Plain"
|
|
|
|
_SecuritySubType_name_2 = "SecSubTypeVeNCrypt02PlainSecSubTypeVeNCrypt02TLSNoneSecSubTypeVeNCrypt02TLSVNCSecSubTypeVeNCrypt02TLSPlainSecSubTypeVeNCrypt02X509NoneSecSubTypeVeNCrypt02X509VNCSecSubTypeVeNCrypt02X509Plain"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
_SecuritySubType_index_1 = [...]uint8{0, 25, 52, 78, 106, 134, 161, 190}
|
|
|
|
_SecuritySubType_index_2 = [...]uint8{0, 25, 52, 78, 106, 134, 161, 190}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (i SecuritySubType) String() string {
|
|
|
|
switch {
|
|
|
|
case i == 0:
|
|
|
|
return _SecuritySubType_name_0
|
|
|
|
case 19 <= i && i <= 25:
|
|
|
|
i -= 19
|
|
|
|
return _SecuritySubType_name_1[_SecuritySubType_index_1[i]:_SecuritySubType_index_1[i+1]]
|
|
|
|
case 256 <= i && i <= 262:
|
|
|
|
i -= 256
|
|
|
|
return _SecuritySubType_name_2[_SecuritySubType_index_2[i]:_SecuritySubType_index_2[i+1]]
|
|
|
|
default:
|
2020-01-23 01:56:16 +03:00
|
|
|
return "SecuritySubType(" + strconv.FormatInt(int64(i), 10) + ")"
|
2017-06-26 17:30:47 +03:00
|
|
|
}
|
|
|
|
}
|