Commit 8fe4d748 authored by Loïck Bonniot's avatar Loïck Bonniot

[d][c] Add client mail in demonstrator log

parent 022f627e
Pipeline #681 passed with stage
......@@ -12,6 +12,7 @@ import (
cAPI "dfss/dfssc/api"
"dfss/dfssc/common"
"dfss/dfssc/security"
dAPI "dfss/dfssd/api"
pAPI "dfss/dfssp/api"
"dfss/dfssp/contract"
"dfss/net"
......@@ -72,6 +73,7 @@ func NewSignatureManager(fileCA, fileCert, fileKey, addrPort, passphrase string,
}
m.mail = m.auth.Cert.Subject.CommonName
dAPI.SetIdentifier(m.mail)
m.cServer = m.GetServer()
go func() { log.Fatalln(net.Listen("0.0.0.0:"+strconv.Itoa(port), m.cServer)) }()
......
......@@ -24,6 +24,11 @@ func Configure(activated bool, addrport, id string) {
demo = activated
}
// SetIdentifier updates the current client identifier.
func SetIdentifier(id string) {
identifier = id
}
// Lazy initialisation for demonstrator's connection to server
func dInit() error {
var err error
......
set GOARCH=386
set CGO_ENABLED=1
cd gui
..\..\..\github.com\visualfc\goqt\bin\goqt_rcc.exe -go gui -o application.qrc.go application.qrc
cd ..
go build -v -ldflags "-H windowsgui" -o ..\bin\dfssd.exe
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment