(PECL gnupg >= 0.1)
gnupg_getprotocol —Returns the currently active protocol for all operations
identifier
The gnupg identifier, from a call tognupg_init() orgnupg.
Returns the currently active protocol, which can be one ofGNUPG_PROTOCOL_OpenPGP
orGNUPG_PROTOCOL_CMS
.
Example #1 Proceduralgnupg_getprotocol() example
<?php
$res=gnupg_init();
echognupg_getprotocol($res);
?>
Example #2 OOgnupg_getprotocol() example
<?php
$gpg= newgnupg();
echo$gpg->getprotocol();
?>