Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
msva-query-agent: produce newline-terminated output
· 58399467
Daniel Kahn Gillmor
authored
Sep 09, 2013
58399467
create a test gpg.conf for tests/basic to avoid spurious warnings
· e0728441
Daniel Kahn Gillmor
authored
Sep 09, 2013
e0728441
Hide whitespace changes
Inline
Side-by-side
Changelog
View file @
e0728441
...
...
@@ -5,6 +5,7 @@ msva-perl (0.9.2) upstream;
* handle multiple keyserver entries in gpg.conf gracefully
(closes MS #6252)
* also accept DOS-style CR/LF line endings in PEM-encoded X.509 certs
* msva-query-agent: produce newline-terminated output.
-- Daniel Kahn Gillmor <dkg@fifthhorseman.net> Mon, 09 Sep 2013 01:16:47 -0400
...
...
msva-query-agent
View file @
e0728441
...
...
@@ -43,7 +43,7 @@ if ((!defined($context)) ||
my
(
$status
,
$ret
)
=
$client
->
agent_info
();
$client
->
log
('
verbose
',
"
status: %s
\n
",
$status
);
if
(
defined
$ret
)
{
printf
("
%s
",
$ret
->
{
server
});
printf
("
%s
\n
",
$ret
->
{
server
});
exit
0
;
}
exit
1
;
...
...
@@ -80,7 +80,7 @@ if (defined $ret) {
exit
1
;
}
}
else
{
printf
("
%s
",
$status
);
printf
("
%s
\n
",
$status
);
exit
100
;
}
...
...
tests/basic
View file @
e0728441
...
...
@@ -38,6 +38,7 @@ printf "\ndone\n"
WORKDIR
=
$(
mktemp
-d
)
mkdir
-m
0700
"
${
WORKDIR
}
/"
{
pkc,sec,gnupg
}
touch
"
${
WORKDIR
}
/gnupg/gpg.conf"
export
GNUPGHOME
=
"
${
WORKDIR
}
/gnupg"
if
gpg
--quick-random
--version
;
then
...
...