gnupg_getprotocol

(PECL gnupg >= 0.1)

gnupg_getprotocolReturns the currently active protocol for all operations

说锟斤拷

gnupg_getprotocol ( resource $identifier ) : int

锟斤拷锟斤拷

identifier

gnupg 锟斤拷识锟斤拷锟斤拷锟缴讹拷 gnupg_init() 锟斤拷 gnupg 锟侥碉拷锟斤拷锟斤拷锟缴★拷

锟斤拷锟斤拷值

Returns the currently active protocol, which can be one of GNUPG_PROTOCOL_OpenPGP or GNUPG_PROTOCOL_CMS.

锟斤拷锟斤拷

Example #1 Procedural gnupg_getprotocol() example

<?php
$res 
gnupg_init();
echo 
gnupg_getprotocol($res);
?>

Example #2 OO gnupg_getprotocol() example

<?php
$gpg 
= new gnupg();
echo 
$gpg -> getprotocol();
?>