init: 自 zomaintain/backend/rdplib 平移独立成库; module path 从上游 github.com/nakagami/grdp 改为 git.zeroonesoft.cn/golib/rdplib
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user