Query: gnupg_getprotocol
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GNUPG_GETPROTOCOL(3) 1 GNUPG_GETPROTOCOL(3) gnupg_getprotocol - Returns the currently active protocol for all operationsSYNOPSISint gnupg_getprotocol (resource $identifier)DESCRIPTIONPARAMETERSo $identifier -The gnupg identifier, from a call to gnupg_init(3) or gnupg.RETURN VALUESReturns the currently active protocol, which can be one of GNUPG_PROTOCOL_OpenPGP or GNUPG_PROTOCOL_CMS.EXAMPLESExample #1 Procedural gnupg_getprotocol(3) example <?php $res = gnupg_init(); echo gnupg_getprotocol($res); ?> Example #2 OO gnupg_getprotocol(3) example <?php $gpg = new gnupg(); echo $gpg -> getprotocol(); ?> PHP Documentation Group GNUPG_GETPROTOCOL(3)