Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Proto Kms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
Proto Kms
Commits
d1893eee
Commit
d1893eee
authored
1 year ago
by
Martin Stiemerling
Browse files
Options
Downloads
Patches
Plain Diff
Fixed my badness..
parent
27779ca8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.go
+7
-7
7 additions, 7 deletions
main.go
with
7 additions
and
7 deletions
main.go
+
7
−
7
View file @
d1893eee
...
...
@@ -10,14 +10,16 @@ import (
)
func
main
()
{
// my own Name
var
qlName1
,
udpQL1AddrString
string
// my own Name
var
udpQL1AddrString
string
var
ql1Name
string
// a name for potential self-testing
var
qlName2
,
udpQL2AddrString
string
var
udpQL2AddrString
string
var
ql2Name
string
// Setup flags that allows to initially provide a address to a second
// quantumlayer so generated keys can be fetched. This is mainly to simplify
// the initial setup process.
flag
.
StringVar
(
&
udpQL
2
AddrString
,
"address"
,
"[::1]:50900"
,
flag
.
StringVar
(
&
udpQL
1
AddrString
,
"address"
,
"[::1]:50900"
,
"The UDP address for my quantumlayer so keys can be fetched"
)
flag
.
StringVar
(
&
ql1Name
,
"name"
,
"ekms-ql1"
,
...
...
@@ -29,15 +31,13 @@ func main() {
flag
.
StringVar
(
&
ql2Name
,
"name"
,
"ekms-ql2"
,
"The name of the quantumlayer"
)
// Parse the provided flags
flag
.
Parse
()
log
.
Println
(
"Welcome to the proto-kms called: "
,
qlName
)
log
.
Println
(
"Welcome to the proto-kms called: "
,
ql
1
Name
)
go
emulatedKMS
(
ql2Name
,
udpQL2AddrString
,
udpQL1AddrString
)
emulatedKMS
(
ql1Name
,
udpQL1AddrString
,
udpQL2AddrString
)
return
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment