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 ( ...@@ -12,6 +12,7 @@ import (
cAPI "dfss/dfssc/api" cAPI "dfss/dfssc/api"
"dfss/dfssc/common" "dfss/dfssc/common"
"dfss/dfssc/security" "dfss/dfssc/security"
dAPI "dfss/dfssd/api"
pAPI "dfss/dfssp/api" pAPI "dfss/dfssp/api"
"dfss/dfssp/contract" "dfss/dfssp/contract"
"dfss/net" "dfss/net"
...@@ -72,6 +73,7 @@ func NewSignatureManager(fileCA, fileCert, fileKey, addrPort, passphrase string, ...@@ -72,6 +73,7 @@ func NewSignatureManager(fileCA, fileCert, fileKey, addrPort, passphrase string,
} }
m.mail = m.auth.Cert.Subject.CommonName m.mail = m.auth.Cert.Subject.CommonName
dAPI.SetIdentifier(m.mail)
m.cServer = m.GetServer() m.cServer = m.GetServer()
go func() { log.Fatalln(net.Listen("0.0.0.0:"+strconv.Itoa(port), m.cServer)) }() 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) { ...@@ -24,6 +24,11 @@ func Configure(activated bool, addrport, id string) {
demo = activated demo = activated
} }
// SetIdentifier updates the current client identifier.
func SetIdentifier(id string) {
identifier = id
}
// Lazy initialisation for demonstrator's connection to server // Lazy initialisation for demonstrator's connection to server
func dInit() error { func dInit() error {
var err 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