Skip to content
Snippets Groups Projects
Commit 1b2f1b5d authored by Loïck Bonniot's avatar Loïck Bonniot
Browse files

Merge branch '395_demo_add_client_mail' into 'master'

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



See merge request !57
parents 022f627e 8fe4d748
No related branches found
No related tags found
1 merge request!57[d][c] Add client mail in demonstrator log
Pipeline #
...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment