Skip to content

Commit 7503b28

Browse files
authored
Cherry-pick changes from libbeat/common/transport/tlscommon (#41)
1 parent dd96a80 commit 7503b28

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

transport/tlscommon/types.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -176,17 +176,7 @@ func (m *TLSVerificationMode) Unpack(in interface{}) error {
176176
return nil
177177
}
178178

179-
func (m *tlsClientAuth) Unpack(in interface{}) error {
180-
if in == nil {
181-
*m = tlsClientAuthRequired
182-
return nil
183-
}
184-
185-
s, ok := in.(string)
186-
if !ok {
187-
return fmt.Errorf("client authentication must be an identifier")
188-
}
189-
179+
func (m *tlsClientAuth) Unpack(s string) error {
190180
mode, found := tlsClientAuthTypes[s]
191181
if !found {
192182
return fmt.Errorf("unknown client authentication mode'%v'", s)

0 commit comments

Comments
 (0)