GnuPG 함수 목록
PHP Manual

gnupg_getprotocol

(PECL gnupg >= 0.1)

gnupg_getprotocolReturns the currently active protocol for all operations

설명

int gnupg_getprotocol ( resource $identifier )

인수

identifier

gnupg_init()gnupg 호출로 생성되는 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();
?>


GnuPG 함수 목록
PHP Manual