2006-05-18 19:32:32 +00:00
|
|
|
--TEST--
|
|
|
|
export a key
|
2006-11-03 12:39:53 +00:00
|
|
|
--SKIPIF--
|
|
|
|
<?php if(!class_exists("gnupg")) die("skip"); ?>
|
2006-05-18 19:32:32 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2018-05-17 19:15:14 +00:00
|
|
|
require_once "gnupgt.inc";
|
|
|
|
gnupgt::import_key();
|
|
|
|
|
2006-05-18 19:32:32 +00:00
|
|
|
$gpg = new gnupg();
|
2018-05-17 19:15:14 +00:00
|
|
|
$gpg->seterrormode(gnupg::ERROR_WARNING);
|
|
|
|
$ret = $gpg->export($fingerprint);
|
2006-05-18 19:32:32 +00:00
|
|
|
var_dump($ret);
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
2012-01-29 02:29:40 +00:00
|
|
|
string(%d) "-----BEGIN PGP PUBLIC KEY BLOCK-----
|
2006-05-18 19:32:32 +00:00
|
|
|
|
|
|
|
mQGiBENQAKwRBADpy828KU+0SuoetJTrJ5dR86PiO3CsH8K6QRP7wY82Eh/9NTJ3
|
|
|
|
afRj0FNPaVSP0NciPeM4G4uFoQ3lsIf+FBEPXH1D97/XigWObU8K6ha2/s8wU98z
|
|
|
|
/samjTHLR+VKZ031B5/8p5Y49yvkkEyBkF1G85yeIXK0WZorKBPncRKuUwCgxOi/
|
|
|
|
IEa+ZuqHlmlDF2LTRIBOfrkEAK+WLRMWUD0bqj1TYwnxwPWiuns32/ZXLWuPfb5o
|
|
|
|
crNt7x5LSe7wJhjyIiFhiU0qR33X/FrT2umzOxlRYfINXT9DUHDocxxbED6fxAHw
|
|
|
|
X2IDd5tWXgCkSBHn2yAneNY6ycPdS3RvqJGlYFg7cOc0kz4urjqRt9fIagzpZQtL
|
|
|
|
fXHfBACl3EWgvLhVBo5ExZbrtlOA2q0x9UGhhNaSkeBWBr2qDeZErQjMTO0+viaN
|
|
|
|
/SX0zxeWtM3z06rkUHd1DKORDRM5R7shBTv9/Quojn0gbYbO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