Skip to content

Commit

Permalink
user : support gossl StringHex() feature.
Browse files Browse the repository at this point in the history
Co-Authored-By: chenhengqi <[email protected]>
Signed-off-by: CFC4N <[email protected]>
  • Loading branch information
cfc4n and chenhengqi committed Jul 30, 2022
1 parent 9b604d3 commit fb955f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion user/event_gossl.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ func (e *goSSLEvent) String() string {
}

func (e *goSSLEvent) StringHex() string {
return e.String()
perfix := COLORGREEN
b := dumpByteSlice(e.Data[:e.Len], perfix)
b.WriteString(COLORRESET)
s := fmt.Sprintf("PID: %d, Comm: %s, TID: %d, Payload: %s\n", e.Pid, string(e.Comm[:]), e.Tid, b.String())
return s
}

func (e *goSSLEvent) Clone() event_processor.IEventStruct {
Expand Down

0 comments on commit fb955f4

Please sign in to comment.