17 lines
449 B
Go
17 lines
449 B
Go
package nla_test
|
|
|
|
import (
|
|
"encoding/hex"
|
|
"testing"
|
|
|
|
"git.zeroonesoft.cn/golib/rdplib/protocol/nla"
|
|
)
|
|
|
|
func TestEncodeDERTRequest(t *testing.T) {
|
|
ntlm := nla.NewNTLMv2("", "", "")
|
|
result := nla.EncodeDERTRequest([]nla.Message{ntlm.GetNegotiateMessage()}, []byte(""), []byte(""))
|
|
if hex.EncodeToString(result) != "302fa003020102a12830263024a02204204e544c4d53535000010000003582086000000000000000000000000000000000" {
|
|
t.Error("not equal")
|
|
}
|
|
}
|