-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.go
22 lines (14 loc) · 1.17 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package main
import (
"fmt"
_ "kmipserver/packetprocessors"
"kmipserver/server"
)
func main() {
server.ListenToTCPServer("0.0.0.0","5678")
//kmip.ProcessPacket([]byte(`42007801000001484200770100000038420069010000002042006A0200000004000000010000000042006B0200000004000000020000000042000D0200000004000000020000000042000F010000007842005C05000000040000000D000000004200930800000008606051f958d79b0f4200790100000050420094070000001424554E495155455F4944454E5449464945525F3000000000420008010000002842000A070000000F41637469766174696F6E20446174650042000B0900000008000000005B224CB142000F010000008042005C05000000040000000D0000000042009308000000087cb12802f6a52cf14200790100000058420094070000001424554E495155455F4944454E5449464945525F3000000000420008010000003042000A0700000011446561637469766174696F6E20446174650000000000000042000B0900000008000000005B224D29`))
//create and destroy
fmt.Println("=================================================================")
//kmip.ProcessPacket([]byte(`42007801000000504200770100000048420069010000002042006A0200000004000000010000000042006B020000000400000002000000004200920900000008000000000000000042000D02000000040000000200000000`))
//fmt.Println(string(b))
}