Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
putro
autonym
Commits
4d09129a
Commit
4d09129a
authored
Apr 01, 2014
by
putro
Browse files
added check for nymserver key
parent
5aa53b2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.py
View file @
4d09129a
...
...
@@ -122,9 +122,14 @@ def createNym():
name
=
askSomething
(
'Enter the name of the nym (without domain): '
)
server
=
selectServer
(
config
)
email
=
name
+
"@"
+
server
dest
=
"config@"
+
server
if
not
gpgfuncts
.
selectKey
(
dest
):
config
[
'last_message'
]
=
"Server %s key not available, abort"
%
server
menu
()
if
not
gpgfuncts
.
selectKey
(
email
):
print
"no key availab
k
e, creating a new one for %s"
%
email
print
"no key availab
l
e, creating a new one for %s"
%
email
gpgfuncts
.
createKey
(
email
,
name
)
subj_type
=
chooseSubjType
(
config
)
...
...
@@ -135,10 +140,11 @@ def createNym():
setActiveNym
(
email
)
msg
=
prepareSetupMsg
(
gpgfuncts
.
selectSecKey
(
email
),
subj_type
,
subject
)
dest
=
"config@"
+
server
print
msg
pressKey
()
emsg
=
signCryptMsg
(
msg
,
dest
,
sign
=
False
)
if
not
emsg
:
config
[
'last_message'
]
=
"Something went wrong"
config
[
'last_message'
]
=
"Something went wrong
while preparing the message, recipient key missing ???
"
menu
()
sendMixMsg
(
dest
,
emsg
)
#return
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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