gnupg_getprotocol
gnupg_getprotocol
Returns the currently active protocol for all operations
int **gnupg_getprotocol** resource $identifier
identifier
Returns the currently active protocol, which can be one of
or
.
GNUPG_PROTOCOL_OpenPGP``GNUPG_PROTOCOL_CMS
Voorbeeld: Procedural example
<?php
$res = gnupg_init();
echo gnupg_getprotocol($res);
?>
Voorbeeld: OO example
<?php
$gpg = new gnupg();
echo $gpg->getprotocol();
?>