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

search for in the

gnupg_import> <gnupg_geterror
[edit] Last updated: Fri, 10 Feb 2012

view this page in

gnupg_getprotocol

(PECL gnupg >= 0.1)

gnupg_getprotocolRetourne le protocole actif courant pour toutes les opérations

Description

int gnupg_getprotocol ( resource $identifier )

Liste de paramètres

identifier

L'identifiant gnupg, généré par un appel à la fonction gnupg_init() ou à la fonction gnupg.

Valeurs de retour

Retourne le protocole actif courant, qui peut être un de ceux-ci : GNUPG_PROTOCOL_OpenPGP ou GNUPG_PROTOCOL_CMS.

Exemples

Exemple #1 Exemple avec gnupg_getprotocol() (Style procédural)

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

Exemple #2 Exemple avec gnupg_getprotocol() (Style orienté objet)

<?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.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites