Tim Swast patch for signed files
This commit is contained in:
parent
da53fc98f0
commit
a817a3bfa1
@ -68,6 +68,9 @@
|
|||||||
" g:GPGPreferArmor
|
" g:GPGPreferArmor
|
||||||
" If set to 1 armored data is preferred for new files. Defaults to 0.
|
" If set to 1 armored data is preferred for new files. Defaults to 0.
|
||||||
"
|
"
|
||||||
|
" g:GPGPreferSign
|
||||||
|
" If set to 1 signed data is preferred for new files. Defaults to 0.
|
||||||
|
"
|
||||||
" g:GPGDefaultRecipients
|
" g:GPGDefaultRecipients
|
||||||
" If set, these recipients are used as defaults when no other recipient is
|
" If set, these recipients are used as defaults when no other recipient is
|
||||||
" defined. This variable is a Vim list. Default is unset.
|
" defined. This variable is a Vim list. Default is unset.
|
||||||
@ -106,6 +109,7 @@
|
|||||||
" - Giel van Schijndel for patch to get GPG_TTY dynamically.
|
" - Giel van Schijndel for patch to get GPG_TTY dynamically.
|
||||||
" - Sebastian Luettich for patch to fix issue with symmetric encryption an set
|
" - Sebastian Luettich for patch to fix issue with symmetric encryption an set
|
||||||
" recipients.
|
" recipients.
|
||||||
|
" - Tim Swast for patch to generate signed files
|
||||||
"
|
"
|
||||||
" Section: Plugin header {{{1
|
" Section: Plugin header {{{1
|
||||||
if (v:version < 700)
|
if (v:version < 700)
|
||||||
@ -179,6 +183,11 @@ function s:GPGInit()
|
|||||||
let g:GPGPreferArmor = 0
|
let g:GPGPreferArmor = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" check if signed files are preferred
|
||||||
|
if (!exists("g:GPGPreferSign"))
|
||||||
|
let g:GPGPreferSign = 0
|
||||||
|
endif
|
||||||
|
|
||||||
" check if debugging is turned on
|
" check if debugging is turned on
|
||||||
if (!exists("g:GPGDefaultRecipients"))
|
if (!exists("g:GPGDefaultRecipients"))
|
||||||
let g:GPGDefaultRecipients = []
|
let g:GPGDefaultRecipients = []
|
||||||
@ -412,6 +421,9 @@ function s:GPGEncrypt()
|
|||||||
if (exists("g:GPGPreferArmor") && g:GPGPreferArmor == 1)
|
if (exists("g:GPGPreferArmor") && g:GPGPreferArmor == 1)
|
||||||
let b:GPGOptions += ["armor"]
|
let b:GPGOptions += ["armor"]
|
||||||
endif
|
endif
|
||||||
|
if (exists("g:GPGPreferSign") && g:GPGPreferSign == 1)
|
||||||
|
let b:GPGOptions += ["sign"]
|
||||||
|
endif
|
||||||
call s:GPGDebug(1, "no options set, so using default options: " . string(b:GPGOptions))
|
call s:GPGDebug(1, "no options set, so using default options: " . string(b:GPGOptions))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user