Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
belenios
belenios
Commits
f9a4a644
Commit
f9a4a644
authored
Feb 04, 2014
by
Stephane Glondu
Browse files
Distinguish generated key and credential files by extension
parent
8ff5c41e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/credgen.ml
View file @
f9a4a644
...
...
@@ -162,7 +162,7 @@ module RunCredgen (X : sig end) = struct
let
pub
=
"public credentials"
,
timestamp
^
".pub
lic
"
,
timestamp
^
".pub
creds
"
,
0o444
,
List
.
sort
compare
public_credentials
...
...
@@ -175,13 +175,13 @@ module RunCredgen (X : sig end) = struct
)
ids
private_credentials
in
kind
,
timestamp
^
".priv
ate
"
,
timestamp
^
".priv
creds
"
,
0o400
,
List
.
sort
compare
creds
let
hashed
=
option_map
(
fun
h
->
"hashed credentials with ids"
,
timestamp
^
".hashed"
,
timestamp
^
".hash
cr
ed
s
"
,
0o400
,
List
.
sort
compare
h
)
hashed_credentials
...
...
src/bin/tkeygen.ml
View file @
f9a4a644
...
...
@@ -81,14 +81,14 @@ module RunTrusteeKeygen (G : Election.FF_GROUP) = struct
let
pubkey
=
"public"
,
id
^
".pub
lic
"
,
id
^
".pub
key
"
,
0o444
,
public_key
,
Serializable_j
.
write_trustee_public_key
Serializable_builtin_j
.
write_number
let
privkey
=
"private"
,
id
^
".priv
ate
"
,
id
^
".priv
key
"
,
0o400
,
private_key
,
Serializable_builtin_j
.
write_number
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment