Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Context Sensitive Group
freedombone
Commits
543b68aa
Commit
543b68aa
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
torify gpg operations in user menu
parent
1e8197a4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-controlpanel-user
+8
-8
8 additions, 8 deletions
src/freedombone-controlpanel-user
with
8 additions
and
8 deletions
src/freedombone-controlpanel-user
+
8
−
8
View file @
543b68aa
...
...
@@ -295,7 +295,7 @@ function gpg_set_trust {
fi
if
echo
-e
"trust
\\
n
${
TRUST_LEVEL
}
\\
ny
\\
nsave
\\
n"
| gpg
--command-fd
0
--edit-key
"
$fpr
"
;
then
gpg
--update-trustdb
torify
gpg
--update-trustdb
dialog
--title
$"Trust a PGP/GPG key or website domain"
\
--backtitle
$"Freedombone User Control Panel"
\
--msgbox
$"
$TRUST_ADDRESS
was set to trust level
${
TRUST_LEVEL
}
"
6 50
...
...
@@ -454,9 +454,9 @@ function show_full_gpg_key {
}
function
publish_gpg_key
{
gpg
--send-key
"
$GPG_ID
"
torify
gpg
--send-key
"
$GPG_ID
"
if
[
"
$GPG_BACKUP_ID
"
]
;
then
gpg
--send-key
"
$GPG_BACKUP_ID
"
torify
gpg
--send-key
"
$GPG_BACKUP_ID
"
fi
dialog
--title
$"Publish your PGP/GPG key"
\
--msgbox
$"Your key has now been published"
6 40
...
...
@@ -500,7 +500,7 @@ function add_gpg_key {
--backtitle
$"Freedombone User Control Panel"
\
--msgbox
$"GPG public key was imported"
6 50
else
gpg
--search-keys
"
$ADD_EMAIL_ADDRESS
"
torify
gpg
--search-keys
"
$ADD_EMAIL_ADDRESS
"
gpg_set_trust
"
$ADD_EMAIL_ADDRESS
"
fi
else
...
...
@@ -686,11 +686,11 @@ function sign_gpg_key {
SIGN_ADDRESS
=
$(
<
"
$data
"
)
if
[
${#
SIGN_ADDRESS
}
-gt
2
]
;
then
clear
gpg
--search
"
$SIGN_ADDRESS
"
torify
gpg
--search
"
$SIGN_ADDRESS
"
fpr
=
$(
gpg
--with-colons
--fingerprint
"
$SIGN_ADDRESS
"
|
grep
fpr |
head
-n
1 |
awk
-F
':'
'{print $10}'
)
if
[
${#
fpr
}
-gt
2
]
;
then
if
gpg
--sign-key
"
$fpr
"
;
then
gpg
--update-trustdb
if
torify
gpg
--sign-key
"
$fpr
"
;
then
torify
gpg
--update-trustdb
dialog
--title
$"Sign a PGP/GPG key"
\
--backtitle
$"Freedombone User Control Panel"
\
--msgbox
$"
$SIGN_ADDRESS
was signed"
6 50
...
...
@@ -714,7 +714,7 @@ function gpg_key_trust {
TRUST_ADDRESS
=
$(
<
"
$data
"
)
if
[
${#
TRUST_ADDRESS
}
-gt
2
]
;
then
clear
gpg
--search
"
$TRUST_ADDRESS
"
torify
gpg
--search
"
$TRUST_ADDRESS
"
gpg_set_trust
"
$TRUST_ADDRESS
"
fi
;;
...
...
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