Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F22948228
gpgtest.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
896 B
Subscribers
None
gpgtest.js
View Options
// Tests gpg
load
(
"ipc.js"
);
dump
(
"Testing GPG\n"
);
var
cmd1
=
"gpg --always-trust --batch --no-tty --passphrase-fd 0 --status-fd 2 -a -s -e -u saravn@mozdev.org -r svn@ncar.ucar.edu"
;
var
cmd2
=
"command.com /c "
+
cmd1
;
var
cmd3
=
"c:\\\\WINNT\\\\gpg.exe --batch --no-tty --version"
;
var
cmda
=
"cat"
;
var
cmdb
=
"command.com /c "
+
cmda
;
var
cmdc
=
"winipc.exe"
;
var
command
=
cmd1
;
var
useShell
=
false
;
var
inputData
=
"passphrase\ntest message\n"
;
var
outStrObj
=
new
Object
();
var
outLenObj
=
new
Object
();
var
errStrObj
=
new
Object
();
var
errLenObj
=
new
Object
();
// Create temporary file
dump
(
"\nTesting execPipe('"
+
command
+
"', ...)\n"
);
dump
(
" exitCode="
+
ipcService
.
execPipe
(
command
,
useShell
,
inputData
,
inputData
.
length
,
[],
0
,
outStrObj
,
outLenObj
,
errStrObj
,
errLenObj
)
+
"\n"
);
dump
(
" STDOUT = '"
+
outStrObj
.
value
+
"'\n"
);
dump
(
" STDERR = '"
+
errStrObj
.
value
+
"'\n"
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 10, 9:01 AM (1 d, 5 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
43/f5/c4410a7aea19f4db86e0a6f40f54
Attached To
rENIG Enigmail
Event Timeline
Log In to Comment