PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

gnupg_import> <gnupg_geterror
Last updated: Fri, 05 Sep 2008

view this page in

gnupg_getprotocol

(PECL gnupg:0.1-1.3.1)

gnupg_getprotocolすべての操作で現在アクティブなプロトコルを返す

説明

int gnupg_getprotocol ( resource $identifier )

パラメータ

identifier

gnupg_init() あるいは gnupg のコールで得られた gnupg ID。

返り値

現在アクティブなプロトコルを返します。結果は GNUPG_PROTOCOL_OpenPGP あるいは GNUPG_PROTOCOL_CMS のいずれかとなります。

例1 手続き型の gnupg_getprotocol() の例

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

例2 オブジェクト指向の gnupg_getprotocol() の例

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



add a note add a note User Contributed Notes
gnupg_getprotocol
There are no user contributed notes for this page.

gnupg_import> <gnupg_geterror
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites