Revert back to DSA-1 only support for NSS

- This essentially reverts commit fe5a1e5dfa93f15b7beda59e193832577143a4d9
  which apparently causes intermittent failures with DSA-1. Look at
  DSA-2 again on some sunnier day...
Plug ages old memleak on package signing
Removed historical leftover.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
There is no need to recalculate digests during signing.

Digests are not signatures even if they reside in "signature" header,
and signing a package must not affect the digests. So recalculating
digests on signing is not just wasteful, but also conceptually plain
wrong.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Removed now unused internal helper functions.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Passing data to sign to the gpg program by a pipe.

- This change shorten signing time beacause it is not necessary to
write data that should be signed, into a temporary file and then pass
this file to gpg program.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Function manageFile was modified to support also "r+.ufdio" mode.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Reserve space for gpg signature during building of package.

- During building of a package a dummy tag is added to the signature
header. This tag reserves some space for gpg signatures. So during
signing of the package the gpg signatures can be put in this reserved
space and it is not necessary to rewrite the whole package to make some
space for gpg signatures.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
l10n: vi.po (759t): Init Vietnamese translation

  * Init then translate all strings
  * Add vi to LINGUAS

Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>