mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-04-28 11:13:14 +02:00
f99d9c445c
Co-authored-by: George Peter Banyard <girgias@php.net>
162 lines
4.3 KiB
XML
162 lines
4.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 62d996960c151af77561894545850ac394cf872c Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.gnupg-init">
|
|
<refnamediv>
|
|
<refname>gnupg_init</refname>
|
|
<refpurpose>Initialise une connexion</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>resource</type><methodname>gnupg_init</methodname>
|
|
<methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>options</parameter><initializer>&null;</initializer></methodparam>
|
|
</methodsynopsis>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>options</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Doit être un tableau associatif. Il est utilisé pour modifier la configuration
|
|
par défaut du moteur cryptographique.
|
|
<table>
|
|
<title>Remplacement de la configuration</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>Clé</entry>
|
|
<entry>Type</entry>
|
|
<entry>Description</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>file_name</entry>
|
|
<entry><type>string</type></entry>
|
|
<entry>
|
|
C'est le nom de fichier du programme exécutable implémentant
|
|
ce protocole qui est généralement le chemin de l'exécutable <literal>gpg</literal>.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>home_dir</entry>
|
|
<entry><type>string</type></entry>
|
|
<entry>
|
|
Il s'agit du nom du répertoire de configuration.
|
|
Il remplace également la variable d'environnement <literal>GNUPGHOME</literal>
|
|
qui est utilisée dans le même but.
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Une ressource de connexion GnuPG, utilisée par les autres fonctions GnuPG.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>1.5.0</entry>
|
|
<entry>
|
|
Le paramètre <parameter>options</parameter> a été ajouté.
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Exemple avec <function>gnupg_init</function> avec réglage par défaut (Style procédural)</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$res = gnupg_init();
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
<example>
|
|
<title>Exemple avec <function>gnupg_init</function> avec un nom de fichier et un répertoire d'origine surchargés (Style procédural)</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$res = gnupg_init(["file_name" => "/usr/bin/gpg2", "home_dir" => "/var/www/.gnupg"]);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
<example>
|
|
<title>Exemple avec <function>gnupg_init</function> avec réglage par défaut (Style orienté objet)</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$gpg = new gnupg();
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
<example>
|
|
<title>Exemple avec <function>gnupg_init</function> avec un nom de fichier et un répertoire d'origine surchargés (Style orienté objet)</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$gpg = new gnupg(["file_name" => "/usr/bin/gpg2", "home_dir" => "/var/www/.gnupg"]);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|