PHP.nl

gnupg_setsignmode

gnupg_setsignmode

Sets the mode for signing

bool **gnupg_setsignmode** resource $identifier int $signmode

Sets the mode for signing.

identifier``sigmodeThe mode for signing.

   takes a constant indicating what type of
  signature should be produced. The possible values are
  ,
   and
  .
  By default  is used.
 `signmode``GNUPG_SIG_MODE_NORMAL``GNUPG_SIG_MODE_DETACH``GNUPG_SIG_MODE_CLEAR``GNUPG_SIG_MODE_CLEAR`

return.success

Voorbeeld: Procedural example

<?php
$res = gnupg_init();
gnupg_setsignmode($res,GNUPG_SIG_MODE_DETACH); // produce a detached signature
?>

Voorbeeld: OO example

<?php
$gpg = new gnupg();
$gpg->setsignmode(gnupg::SIG_MODE_DETACH); // produce a detached signature
?>