com doc/ru: Обновлен ие до англи йской верси и: language/exceptions.xml reference/datetime/form ats.xml
reference/ev/ev/depth.xml reference/ev/ev/run .xml reference/ev/ev/verify.xml reference/intl/collator .xml reference/intl/dateformatter.xml
reference/intl/fu nctions/intl-error-name.xml reference/intl/functions/intl-i s-failure.xml reference/intl/idn/idn-to-ascii.xml refer
ence/intl/idn/idn-to-utf8.xml reference/openssl/functions /openssl-cipher-iv-lengt
| From: | Sergey Panteleev | Date: | Sun, 14 Feb 2021 10:30:16 +0000 |
| Subject: | com doc/ru: Обновлен ие до англи йской верси и: language/exceptions.xml reference/datetime/form ats.xml reference/ev/ev/depth.xml reference/ev/ev/run .xml reference/ev/ev/verify.xml reference/intl/collator .xml reference/intl/dateformatter.xml reference/intl/fu nctions/intl-error-name.xml reference/intl/functions/intl-i s-failure.xml reference/intl/idn/idn-to-ascii.xml refer ence/intl/idn/idn-to-utf8.xml reference/openssl/functions /openssl-cipher-iv-lengt |
||
| Groups: | php.doc.ru | ||
| Request: | Send a blank email to doc-ru+get-8797@lists.php.net to get a copy of this message | ||
Commit: 4261ad699eb7bae3a77bb7502e21e430778f5f4b
Author: Sergey Panteleev <sergey@php.net> Sun, 14 Feb 2021 13:30:16 +0300
Parents: 0470cd34ab91a727f26ef9893aa4d449251196c4
Branches: master
Link: http://git.php.net/?p=doc/ru.git;a=commitdiff;h=4261ad699eb7bae3a77bb7502e21e430778f5f4b
Log:
Обновление до английской версии
Changed paths:
M language/exceptions.xml
M reference/datetime/formats.xml
M reference/ev/ev/depth.xml
M reference/ev/ev/run.xml
M reference/ev/ev/verify.xml
M reference/intl/collator.xml
M reference/intl/dateformatter.xml
M reference/intl/functions/intl-error-name.xml
M reference/intl/functions/intl-is-failure.xml
M reference/intl/idn/idn-to-ascii.xml
M reference/intl/idn/idn-to-utf8.xml
M reference/openssl/functions/openssl-cipher-iv-length.xml
M reference/openssl/functions/openssl-csr-export-to-file.xml
M reference/openssl/functions/openssl-csr-export.xml
M reference/openssl/functions/openssl-csr-get-public-key.xml
M reference/openssl/functions/openssl-csr-get-subject.xml
M reference/openssl/functions/openssl-csr-new.xml
M reference/openssl/functions/openssl-csr-sign.xml
M reference/openssl/functions/openssl-decrypt.xml
M reference/openssl/functions/openssl-dh-compute-key.xml
M reference/openssl/functions/openssl-digest.xml
M reference/simplexml/functions/simplexml-import-dom.xml
diff --git a/language/exceptions.xml b/language/exceptions.xml index 462f72f62..273d5053e 100644 --- a/language/exceptions.xml +++ b/language/exceptions.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1d58f726462a821d3f926fb61247357f49fa1ce5 Maintainer: irker Status: ready --> +<!-- EN-Revision: 46efcedd4ab2dee962eb80c7fbd552252581225b Maintainer: irker Status: ready --> <!-- Reviewed: yes --> <!-- $Revision$ --> <chapter xml:id="language.exceptions" xmlns="http://docbook.org/ns/docbook"> @@ -27,7 +27,7 @@ class Exception extends Throwable private $trace; // трассировка вызовов методов и функций private $previous; // предыдущее исключение, если исключение вложенное - public function __construct($message = null, $code = 0, Exception $previous = null); + public function __construct($message = null, $code = 0, Throwable $previous = null); final private function __clone(); // запрещает клонирования исключения @@ -73,7 +73,7 @@ class Exception extends Throwable class MyException extends Exception { // Переопределим исключение так, что параметр message станет обязательным - public function __construct($message, $code = 0, Exception $previous = null) { + public function __construct($message, $code = 0, Throwable $previous = null) { // некоторый код // убедитесь, что все передаваемые параметры верны diff --git a/reference/datetime/formats.xml b/reference/datetime/formats.xml index 03f598bee..443f7f1c9 100644 --- a/reference/datetime/formats.xml +++ b/reference/datetime/formats.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: f3bc618211dd65a97eb427aceb9473d3b4a0c3d0 Maintainer: aur Status: ready --> +<!-- EN-Revision: 8440ee35c0219dac8fe3f0a3e3f1e52636492771 Maintainer: aur Status: ready --> <!-- Reviewed: yes --> <!-- $Revision$ --> <chapter xml:id="datetime.formats" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -498,7 +498,7 @@ </row> <row> <entry><literal>ii</literal> (минуты)</entry> - <entry>[0-5][0-9]</entry> + <entry>[0-5]?[0-9]</entry> <entry>"04", "8", "59"</entry> </row> <row> @@ -523,8 +523,8 @@ </row> <row> <entry><literal>ss</literal> (секунды)</entry> - <entry>[0-5][0-9]</entry> - <entry>"04", "8", "59"</entry> + <entry>([0-5]?[0-9])|60</entry> + <entry>"04", "8", "59", "60" (дополнительная секунда)</entry> </row> <row> <entry><literal>SS</literal> (секунды с ведущим нулём)</entry> diff --git a/reference/ev/ev/depth.xml b/reference/ev/ev/depth.xml index a8e9e4794..1c1475b94 100644 --- a/reference/ev/ev/depth.xml +++ b/reference/ev/ev/depth.xml @@ -2,7 +2,7 @@ <!-- $Revision$ --> <!-- EN-Revision: 27d57bc40b3b16d81d6d8876ab5ac3c295875046 Maintainer: rjhdby Status: ready --> <!-- Reviewed: no --> -<refentry xml:id="ev.depth" xmlns="http://docbook.org/ns/docbook"> +<refentry xml:id="ev.depth" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Ev::depth</refname> <refpurpose>Получить глубину рекурсии</refpurpose> diff --git a/reference/ev/ev/run.xml b/reference/ev/ev/run.xml index 303bb8936..270c47cfb 100644 --- a/reference/ev/ev/run.xml +++ b/reference/ev/ev/run.xml @@ -2,7 +2,7 @@ <!-- $Revision$ --> <!-- EN-Revision: 27d57bc40b3b16d81d6d8876ab5ac3c295875046 Maintainer: rjhdby Status: ready --> <!-- Reviewed: no --> -<refentry xml:id="ev.run" xmlns="http://docbook.org/ns/docbook"> +<refentry xml:id="ev.run" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Ev::run</refname> <refpurpose>Начать проверку наличия событий и вызов callback-функций цикла по умолчанию</refpurpose> diff --git a/reference/ev/ev/verify.xml b/reference/ev/ev/verify.xml index 0a1f009ed..d94b57f14 100644 --- a/reference/ev/ev/verify.xml +++ b/reference/ev/ev/verify.xml @@ -2,7 +2,7 @@ <!-- $Revision$ --> <!-- EN-Revision: 27d57bc40b3b16d81d6d8876ab5ac3c295875046 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: sergey --> -<refentry xml:id="ev.verify" xmlns="http://docbook.org/ns/docbook"> +<refentry xml:id="ev.verify" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Ev::verify</refname> <refpurpose>Производит внутреннюю проверку целостности(для отладки)</refpurpose> diff --git a/reference/intl/collator.xml b/reference/intl/collator.xml index 1df6b741d..12f19d1dc 100644 --- a/reference/intl/collator.xml +++ b/reference/intl/collator.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 4724b47c25b48f509355d27291aa6893ad0b40c0 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: 03841ffe3790dfcaef8d60decb6a011774df3727 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: sergey --> <!-- $Revision$ --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.collator" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> @@ -48,9 +48,9 @@ <classsynopsisinfo role="comment">&Methods;</classsynopsisinfo> <xi:include - xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.collator')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" /> + xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.collator')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])" /> <xi:include - xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.collator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> + xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.collator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" /> </classsynopsis> <!-- }}} --> diff --git a/reference/intl/dateformatter.xml b/reference/intl/dateformatter.xml index 648757d33..fae151359 100644 --- a/reference/intl/dateformatter.xml +++ b/reference/intl/dateformatter.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1d137d406b33b8c9e9f470808b14ca5976a29465 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: ce46b05403346a4b21937db0b923173431104145 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: sergey --> <!-- $Revision$ --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.intldateformatter" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> @@ -42,9 +42,9 @@ <classsynopsisinfo role="comment">&Methods;</classsynopsisinfo> <xi:include - xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intldateformatter')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" /> + xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intldateformatter')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])" /> <xi:include - xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intldateformatter')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> + xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intldateformatter')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" /> </classsynopsis> <!-- }}} --> diff --git a/reference/intl/functions/intl-error-name.xml b/reference/intl/functions/intl-error-name.xml index ccb1977ae..253dd87b5 100644 --- a/reference/intl/functions/intl-error-name.xml +++ b/reference/intl/functions/intl-error-name.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: 16152718af3ee6705afde07c3f9cdd4ffb098463 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: sergey --> <!-- $Revision$ --> <refentry xml:id="function.intl-error-name"> @@ -11,9 +11,8 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>string</type> - <methodname>intl_error_name</methodname> - <methodparam><type>int</type><parameter>error_code</parameter></methodparam> + <type>string</type><methodname>intl_error_name</methodname> + <methodparam><type>int</type><parameter>errorCode</parameter></methodparam> </methodsynopsis> <para> Возвращает имя ошибки ICU. @@ -25,7 +24,7 @@ <para> <variablelist> <varlistentry> - <term><parameter>error_code</parameter></term> + <term><parameter>errorCode</parameter></term> <listitem> <para> Код ошибки ICU. diff --git a/reference/intl/functions/intl-is-failure.xml b/reference/intl/functions/intl-is-failure.xml index 32dd9e547..98b2b5a7a 100644 --- a/reference/intl/functions/intl-is-failure.xml +++ b/reference/intl/functions/intl-is-failure.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 14af302c9c0e561fa6f9cdd956268758ba9a89c5 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: 16152718af3ee6705afde07c3f9cdd4ffb098463 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: sergey --> <!-- $Revision$ --> <refentry xml:id="function.intl-is-failure"> @@ -11,9 +11,8 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>bool</type> - <methodname>intl_is_failure</methodname> - <methodparam><type>int</type><parameter>error_code</parameter></methodparam> + <type>bool</type><methodname>intl_is_failure</methodname> + <methodparam><type>int</type><parameter>errorCode</parameter></methodparam> </methodsynopsis> <para> <!-- description goes here --> @@ -25,7 +24,7 @@ <para> <variablelist> <varlistentry> - <term><parameter>error_code</parameter></term> + <term><parameter>errorCode</parameter></term> <listitem> <para> Значение, возвращённое функциями: @@ -88,7 +87,6 @@ true </para> </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/intl/idn/idn-to-ascii.xml b/reference/intl/idn/idn-to-ascii.xml index af183e45a..4837f5052 100644 --- a/reference/intl/idn/idn-to-ascii.xml +++ b/reference/intl/idn/idn-to-ascii.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: b548fc8e5592b577d29aabf9cf2e79d5385ae549 Maintainer: rjhdby Status: ready --> <!-- Reviewed: no --> <!-- $Revision$ --> <refentry xml:id="function.idn-to-ascii" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -13,9 +13,9 @@ <methodsynopsis> <type class="union"><type>string</type><type>false</type></type><methodname>idn_to_ascii</methodname> <methodparam><type>string</type><parameter>domain</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>IDNA_DEFAULT</initializer></methodparam> - <methodparam choice="opt"><type>int</type><parameter>variant</parameter><initializer>INTL_IDNA_VARIANT_UTS46</initializer></methodparam> - <methodparam choice="opt"><type>array</type><parameter role="reference">idna_info</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>IDNA_DEFAULT</constant></initializer></methodparam> + <methodparam choice="opt"><type>int</type><parameter>variant</parameter><initializer><constant>INTL_IDNA_VARIANT_UTS46</constant></initializer></methodparam> + <methodparam choice="opt"><type>array</type><parameter role="reference">idna_info</parameter><initializer>&null;</initializer></methodparam> </methodsynopsis> <para> Эта функция преобразует доменное имя из Unicode в IDNA ASCII. @@ -35,7 +35,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>options</parameter></term> + <term><parameter>flags</parameter></term> <listitem> <para> Опции преобразования - комбинация констант IDNA_* @@ -143,7 +143,6 @@ xn--tst-qla.de </para> </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/intl/idn/idn-to-utf8.xml b/reference/intl/idn/idn-to-utf8.xml index 019ba4e72..8ea2732e6 100644 --- a/reference/intl/idn/idn-to-utf8.xml +++ b/reference/intl/idn/idn-to-utf8.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: b548fc8e5592b577d29aabf9cf2e79d5385ae549 Maintainer: rjhdby Status: ready --> <!-- Reviewed: no --> <!-- $Revision$ --> <refentry xml:id="function.idn-to-utf8" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -13,9 +13,9 @@ <methodsynopsis> <type class="union"><type>string</type><type>false</type></type><methodname>idn_to_utf8</methodname> <methodparam><type>string</type><parameter>domain</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>IDNA_DEFAULT</initializer></methodparam> - <methodparam choice="opt"><type>int</type><parameter>variant</parameter><initializer>INTL_IDNA_VARIANT_UTS46</initializer></methodparam> - <methodparam choice="opt"><type>array</type><parameter role="reference">idna_info</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam> + <methodparam choice="opt"><type>int</type><parameter>variant</parameter><initializer><constant>INTL_IDNA_VARIANT_UTS46</constant></initializer></methodparam> + <methodparam choice="opt"><type>array</type><parameter role="reference">idna_info</parameter><initializer>&null;</initializer></methodparam> </methodsynopsis> <para> Эта функция преобразует доменные имена из формата IDNA ASCII в Unicode, в кодировке UTF-8. @@ -35,7 +35,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>options</parameter></term> + <term><parameter>flags</parameter></term> <listitem> <para> Опции преобразования - комбинация констант IDNA_* @@ -143,7 +143,6 @@ täst.de </para> </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-cipher-iv-length.xml b/reference/openssl/functions/openssl-cipher-iv-length.xml index 54160bdef..222d7246c 100644 --- a/reference/openssl/functions/openssl-cipher-iv-length.xml +++ b/reference/openssl/functions/openssl-cipher-iv-length.xml @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: e41806c30bf6975e452c0d4ce35ab0984c2fa68c Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - <refentry xml:id="function.openssl-cipher-iv-length" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>openssl_cipher_iv_length</refname> @@ -12,8 +11,8 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>int</type><methodname>openssl_cipher_iv_length</methodname> - <methodparam><type>string</type><parameter>method</parameter></methodparam> + <type class="union"><type>int</type><type>false</type></type><methodname>openssl_cipher_iv_length</methodname> + <methodparam><type>string</type><parameter>cipher_algo</parameter></methodparam> </methodsynopsis> <para> Возвращает длину инициализирующего вектора шифра. @@ -24,7 +23,7 @@ &reftitle.parameters; <variablelist> <varlistentry> - <term><parameter>method</parameter></term> + <term><parameter>cipher_algo</parameter></term> <listitem> <para> Метод шифрования. Список потенциальных значений можно получить с помощью @@ -73,7 +72,6 @@ echo $ivlen; </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-csr-export-to-file.xml b/reference/openssl/functions/openssl-csr-export-to-file.xml index 6c93144f7..12a18d304 100644 --- a/reference/openssl/functions/openssl-csr-export-to-file.xml +++ b/reference/openssl/functions/openssl-csr-export-to-file.xml @@ -1,9 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - -<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-csr-export-to-file"> +<refentry xml:id="function.openssl-csr-export-to-file" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>openssl_csr_export_to_file</refname> <refpurpose>Экспортирует CSR в файл</refpurpose> @@ -13,14 +12,14 @@ &reftitle.description; <methodsynopsis> <type>bool</type><methodname>openssl_csr_export_to_file</methodname> - <methodparam><type>mixed</type><parameter>csr</parameter></methodparam> - <methodparam><type>string</type><parameter>outfilename</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>notext</parameter><initializer>&true;</initializer></methodparam> + <methodparam><type class="union"><type>OpenSSLCertificateSigningRequest</type><type>string</type></type><parameter>csr</parameter></methodparam> + <methodparam><type>string</type><parameter>output_filename</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>no_text</parameter><initializer>&true;</initializer></methodparam> </methodsynopsis> <para> <function>openssl_csr_export_to_file</function> записывает запрос на подпись сертификата <parameter>csr</parameter> в формате PEM - в файл <parameter>outfilename</parameter>. + в файл <parameter>output_filename</parameter>. </para> </refsect1> @@ -30,7 +29,7 @@ <variablelist> &openssl.param.csr; <varlistentry> - <term><parameter>outfilename</parameter></term> + <term><parameter>output_filename</parameter></term> <listitem> <para> Путь к файлу. @@ -38,7 +37,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>notext</parameter></term> + <term><parameter>no_text</parameter></term> <listitem> ¬e.openssl.param-notext; </listitem> @@ -54,6 +53,29 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>csr</parameter> теперь принимает экземпляр <classname>OpenSSLCertificateSigningRequest</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -92,7 +114,6 @@ openssl_csr_export_to_file($csr, 'example-csr.pem'); </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-csr-export.xml b/reference/openssl/functions/openssl-csr-export.xml index 0f997080b..e391102bd 100644 --- a/reference/openssl/functions/openssl-csr-export.xml +++ b/reference/openssl/functions/openssl-csr-export.xml @@ -1,9 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - -<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-csr-export"> +<refentry xml:id="function.openssl-csr-export" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>openssl_csr_export</refname> <refpurpose>Экспортирует CSR в виде строки</refpurpose> @@ -13,13 +12,13 @@ &reftitle.description; <methodsynopsis> <type>bool</type><methodname>openssl_csr_export</methodname> - <methodparam><type>mixed</type><parameter>csr</parameter></methodparam> - <methodparam><type>string</type><parameter role="reference">out</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>notext</parameter><initializer>&true;</initializer></methodparam> + <methodparam><type class="union"><type>OpenSSLCertificateSigningRequest</type><type>string</type></type><parameter>csr</parameter></methodparam> + <methodparam><type>OpenSSLAsymmetricKey</type><parameter role="reference">output</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>no_text</parameter><initializer>&true;</initializer></methodparam> </methodsynopsis> <para> <function>openssl_csr_export</function> записывает запрос на подпись сертификата - <parameter>csr</parameter> в формате PEM в переменную <parameter>out</parameter>, + <parameter>csr</parameter> в формате PEM в переменную <parameter>output</parameter>, которая передаётся по ссылке. </para> </refsect1> @@ -30,7 +29,7 @@ <variablelist> &openssl.param.csr; <varlistentry> - <term><parameter>out</parameter></term> + <term><parameter>output</parameter></term> <listitem> <para> в случае успеха, в этой переменной будет сохранён CSR в формате PEM. @@ -38,7 +37,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>notext</parameter></term> + <term><parameter>no_text</parameter></term> <listitem> ¬e.openssl.param-notext; </listitem> @@ -54,6 +53,29 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>csr</parameter> теперь принимает экземпляр <classname>OpenSSLCertificateSigningRequest</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -94,7 +116,6 @@ echo $csr_string; </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-csr-get-public-key.xml b/reference/openssl/functions/openssl-csr-get-public-key.xml index abdc0a846..fe70c3dd9 100644 --- a/reference/openssl/functions/openssl-csr-get-public-key.xml +++ b/reference/openssl/functions/openssl-csr-get-public-key.xml @@ -1,9 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - -<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-csr-get-public-key"> +<refentry xml:id="function.openssl-csr-get-public-key" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>openssl_csr_get_public_key</refname> <refpurpose>Возвращает открытый ключ CSR</refpurpose> @@ -12,9 +11,9 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>resource</type><methodname>openssl_csr_get_public_key</methodname> - <methodparam><type>mixed</type><parameter>csr</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>use_shortnames</parameter><initializer>&true;</initializer></methodparam> + <type class="union"><type>OpenSSLAsymmetricKey</type><type>false</type></type><methodname>openssl_csr_get_public_key</methodname> + <methodparam><type class="union"><type>OpenSSLCertificateSigningRequest</type><type>string</type></type><parameter>csr</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>short_names</parameter><initializer>&true;</initializer></methodparam> </methodsynopsis> <para> <function>openssl_csr_get_public_key</function> извлекает открытый ключ @@ -29,7 +28,7 @@ <variablelist> &openssl.param.csr; <varlistentry> - <term><parameter>use_shortnames</parameter></term> + <term><parameter>short_names</parameter></term> <listitem> <warning> <para> @@ -45,10 +44,40 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Возвращает идентификатор ресурса ключа или &false;. + Возвращает <classname>OpenSSLAsymmetricKey</classname> в случае успешного выполнения или &false; в случае возникновения ошибки. </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + В случае успешного выполнения возвращает экземпляр <classname>OpenSSLAsymmetricKey</classname>; + ранее возвращался ресурс (&resource;) типа <literal>OpenSSL key</literal>. + </entry> + </row> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>csr</parameter> теперь принимает экземпляр <classname>OpenSSLCertificateSigningRequest</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -90,7 +119,6 @@ echo $info['key']; </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-csr-get-subject.xml b/reference/openssl/functions/openssl-csr-get-subject.xml index 042965547..08e90a195 100644 --- a/reference/openssl/functions/openssl-csr-get-subject.xml +++ b/reference/openssl/functions/openssl-csr-get-subject.xml @@ -1,9 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - -<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-csr-get-subject"> +<refentry xml:id="function.openssl-csr-get-subject" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>openssl_csr_get_subject</refname> <refpurpose>Возвращает субъект CSR</refpurpose> @@ -13,8 +12,8 @@ &reftitle.description; <methodsynopsis> <type class="union"><type>array</type><type>false</type></type><methodname>openssl_csr_get_subject</methodname> - <methodparam><type>mixed</type><parameter>csr</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>use_shortnames</parameter><initializer>&true;</initializer></methodparam> + <methodparam><type class="union"><type>OpenSSLCertificateSigningRequest</type><type>string</type></type><parameter>csr</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>short_names</parameter><initializer>&true;</initializer></methodparam> </methodsynopsis> <para> <function>openssl_csr_get_subject</function> возвращает известную об субъекте @@ -29,7 +28,7 @@ <variablelist> &openssl.param.csr; <varlistentry> - <term><parameter>use_shortnames</parameter></term> + <term><parameter>short_names</parameter></term> <listitem> <para> <parameter>shortnames</parameter> определяет, как данные индексируются в массиве, @@ -51,6 +50,29 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>csr</parameter> теперь принимает экземпляр <classname>OpenSSLCertificateSigningRequest</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -112,7 +134,6 @@ Array </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-csr-new.xml b/reference/openssl/functions/openssl-csr-new.xml index 6b1f78f3b..2837c8a2c 100644 --- a/reference/openssl/functions/openssl-csr-new.xml +++ b/reference/openssl/functions/openssl-csr-new.xml @@ -1,9 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - -<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-csr-new"> +<refentry xml:id="function.openssl-csr-new" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>openssl_csr_new</refname> <refpurpose>Генерирует CSR</refpurpose> @@ -12,16 +11,16 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>mixed</type><methodname>openssl_csr_new</methodname> - <methodparam><type>array</type><parameter>dn</parameter></methodparam> - <methodparam><type>resource</type><parameter role="reference">privkey</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>configargs</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>extraattribs</parameter></methodparam> + <type class="union"><type>OpenSSLCertificateSigningRequest</type><type>false</type></type><methodname>openssl_csr_new</methodname> + <methodparam><type>array</type><parameter>distinguished_names</parameter></methodparam> + <methodparam><type>OpenSSLAsymmetricKey</type><parameter role="reference">private_key</parameter></methodparam> + <methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>options</parameter><initializer>&null;</initializer></methodparam> + <methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>extra_attributes</parameter><initializer>&null;</initializer></methodparam> </methodsynopsis> <para> <function>openssl_csr_new</function> создаёт новый запрос на подпись сертификата (Certificate Signing Request или CSR) основываясь на информации - указанной в параметре <parameter>dn</parameter>. + указанной в параметре <parameter>distinguished_names</parameter>. </para> ¬e.openssl.cnf; </refsect1> @@ -31,7 +30,7 @@ <para> <variablelist> <varlistentry> - <term><parameter>dn</parameter></term> + <term><parameter>distinguished_names</parameter></term> <listitem> <para> Уникальное имя (Distinguished Name) или поля субъекта для использования в @@ -40,10 +39,10 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>privkey</parameter></term> + <term><parameter>private_key</parameter></term> <listitem> <para> - Параметр <parameter>privkey</parameter> должен быть задан закрытым ключом + Параметр <parameter>private_key</parameter> должен быть задан закрытым ключом ранее сгенерированным функцией <function>openssl_pkey_new</function> (или полученный с помощью любой другой функции семейства openssl_pkey). Соответствующая открытая часть ключа будет использована для @@ -52,24 +51,24 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>configargs</parameter></term> + <term><parameter>options</parameter></term> <listitem> <para> По умолчанию для инициализации запроса используется информация из вашего системного <literal>openssl.conf</literal>. Вы можете указать секцию конфигурационного файла путём задания ключа <literal>config_section_section</literal> в - <parameter>configargs</parameter>. Также вы можете задать альтернативный + <parameter>options</parameter>. Также вы можете задать альтернативный файл конфигурации openssl путём задания ключа <literal>config</literal> значением пути до него. - Соответствие ключей, указанных в <parameter>configargs</parameter> + Соответствие ключей, указанных в <parameter>options</parameter> ключам из <literal>openssl.conf</literal> представлено ниже. <table> <title>Переопределение конфигурации</title> <tgroup cols="3"> <thead> <row> - <entry>Ключ <parameter>configargs</parameter></entry> + <entry>Ключ <parameter>options</parameter></entry> <entry>Тип</entry> <entry>Соответствие в <literal>openssl.conf</literal></entry> <entry>Описание</entry> @@ -151,12 +150,12 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>extraattribs</parameter></term> + <term><parameter>extra_attributes</parameter></term> <listitem> <para> - <parameter>extraattribs</parameter> используется для указания дополнительных - опций для CSR. И <parameter>dn</parameter>, и - <parameter>extraattribs</parameter> являются ассоциативными массивами, ключи + <parameter>extra_attributes</parameter> используется для указания дополнительных + опций для CSR. И <parameter>distinguished_names</parameter>, и + <parameter>extra_attributes</parameter> являются ассоциативными массивами, ключи которых преобразуются в OI-ы и применяются к соответствующим частям запроса. </para> @@ -185,9 +184,23 @@ </thead> <tbody> <row> + <entry>8.0.0</entry> + <entry> + <parameter>csr</parameter> теперь принимает экземпляр <classname>OpenSSLCertificateSigningRequest</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>private_key</parameter> теперь принимает экземпляр <classname>OpenSSLAsymmetricKey</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL key</literal>. + </entry> + </row> + <row> <entry>7.1.0</entry> <entry> - Параметр <parameter>configargs</parameter> теперь поддерживает + Параметр <parameter>options</parameter> теперь поддерживает <literal>curve_name</literal>. </entry> </row> @@ -285,7 +298,6 @@ openssl_pkey_export_to_file($private_key, 'ecc-private.key'); </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-csr-sign.xml b/reference/openssl/functions/openssl-csr-sign.xml index 82791e65c..18367fbbc 100644 --- a/reference/openssl/functions/openssl-csr-sign.xml +++ b/reference/openssl/functions/openssl-csr-sign.xml @@ -1,9 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: e41806c30bf6975e452c0d4ce35ab0984c2fa68c Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: c7d18f5a16306694c33a5170b35457c13e39fc92 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - -<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-csr-sign"> +<refentry xml:id="function.openssl-csr-sign" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>openssl_csr_sign</refname> <refpurpose>Подписать CSR с помощью другого сертификата (или им же) и создать сертификат</refpurpose> @@ -12,16 +11,16 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>resource</type><methodname>openssl_csr_sign</methodname> - <methodparam><type>mixed</type><parameter>csr</parameter></methodparam> - <methodparam><type>mixed</type><parameter>cacert</parameter></methodparam> - <methodparam><type>mixed</type><parameter>priv_key</parameter></methodparam> + <type class="union"><type>OpenSSLCertificate</type><type>false</type></type><methodname>openssl_csr_sign</methodname> + <methodparam><type class="union"><type>OpenSSLCertificateSigningRequest</type><type>string</type></type><parameter>csr</parameter></methodparam> + <methodparam><type class="union"><type>OpenSSLCertificate</type><type>string</type><type>null</type></type><parameter>ca_certificate</parameter></methodparam> + <methodparam><type class="union"><type>OpenSSLAsymmetricKey</type><type>OpenSSLCertificate</type><type>array</type><type>string</type></type><parameter>private_key</parameter></methodparam> <methodparam><type>int</type><parameter>days</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>configargs</parameter></methodparam> + <methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>options</parameter><initializer>&null;</initializer></methodparam> <methodparam choice="opt"><type>int</type><parameter>serial</parameter><initializer>0</initializer></methodparam> </methodsynopsis> <para> - <function>openssl_csr_sign</function> создаёт ресурс сертификата x509 + <function>openssl_csr_sign</function> создаёт сертификат x509 из заданного CSR. </para> ¬e.openssl.cnf; @@ -43,21 +42,21 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>cacert</parameter></term> + <term><parameter>ca_certificate</parameter></term> <listitem> <para> - Создаваемый сертификат будет подписан <parameter>cacert</parameter>. - Если <parameter>cacert</parameter> задан как &null;, то будет сгенерирован + Создаваемый сертификат будет подписан <parameter>ca_certificate</parameter>. + Если <parameter>ca_certificate</parameter> задан как &null;, то будет сгенерирован самоподписанный сертификат. </para> </listitem> </varlistentry> <varlistentry> - <term><parameter>priv_key</parameter></term> + <term><parameter>private_key</parameter></term> <listitem> <para> - <parameter>priv_key</parameter> - секретный ключ, соответствующий - <parameter>cacert</parameter>. + <parameter>private_key</parameter> - секретный ключ, соответствующий + <parameter>ca_certificate</parameter>. </para> </listitem> </varlistentry> @@ -70,12 +69,12 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>configargs</parameter></term> + <term><parameter>options</parameter></term> <listitem> <para> - Можно тонко настроить подпись CSR с помощью <parameter>configargs</parameter>. + Можно тонко настроить подпись CSR с помощью <parameter>options</parameter>. Подробности смотрите в описании функции <function>openssl_csr_new</function>, - в разделе посвящённом параметру <parameter>configargs</parameter>. + в разделе посвящённом параметру <parameter>options</parameter>. </para> </listitem> </varlistentry> @@ -95,10 +94,54 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Возвращает ресурс сертификата x509, либо &false;, если что-то пошло не так. + Возвращает <classname>OpenSSLCertificate</classname> в случае успешного выполнения или &false; в случае возникновения ошибки. </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + On success, this function returns an <classname>OpenSSLCertificate</classname> instance now; + previously, a &resource; of type <literal>OpenSSL X.509</literal> was returned. + </entry> + </row> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>csr</parameter> теперь принимает экземпляр <classname>OpenSSLCertificateSigningRequest</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>ca_certificate</parameter> теперь принимает экземпляр <classname>OpenSSLCertificate</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>private_key</parameter> теперь принимает экземпляр <classname>OpenSSLAsymmetricKey</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -139,7 +182,6 @@ while (($e = openssl_error_string()) !== false) { </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-decrypt.xml b/reference/openssl/functions/openssl-decrypt.xml index b634d9a8f..baefc62df 100644 --- a/reference/openssl/functions/openssl-decrypt.xml +++ b/reference/openssl/functions/openssl-decrypt.xml @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - <refentry xml:id="function.openssl-decrypt" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>openssl_decrypt</refname> @@ -14,8 +13,8 @@ <methodsynopsis> <type class="union"><type>string</type><type>false</type></type><methodname>openssl_decrypt</methodname> <methodparam><type>string</type><parameter>data</parameter></methodparam> - <methodparam><type>string</type><parameter>method</parameter></methodparam> - <methodparam><type>string</type><parameter>key</parameter></methodparam> + <methodparam><type>string</type><parameter>cipher_algo</parameter></methodparam> + <methodparam><type>string</type><parameter>passphrase</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam> <methodparam choice="opt"><type>string</type><parameter>iv</parameter><initializer>""</initializer></methodparam> <methodparam choice="opt"><type>string</type><parameter>tag</parameter><initializer>""</initializer></methodparam> @@ -41,7 +40,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>method</parameter></term> + <term><parameter>cipher_algo</parameter></term> <listitem> <para> Метод шифрования. Список доступных методов можно получить с помощью функции @@ -50,7 +49,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>key</parameter></term> + <term><parameter>passphrase</parameter></term> <listitem> <para> Ключ. @@ -116,7 +115,7 @@ &reftitle.errors; <para> Выдаёт ошибку уровня <constant>E_WARNING</constant>, если в параметр - <parameter>method</parameter> передан неизвестный алгоритм шифрования. + <parameter>cipher_algo</parameter> передан неизвестный алгоритм шифрования. </para> <para> Выдаёт ошибку уровня <constant>E_WARNING</constant>, если в параметр @@ -154,7 +153,6 @@ </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-dh-compute-key.xml b/reference/openssl/functions/openssl-dh-compute-key.xml index f1ec699aa..abff7dad9 100644 --- a/reference/openssl/functions/openssl-dh-compute-key.xml +++ b/reference/openssl/functions/openssl-dh-compute-key.xml @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - <refentry xml:id="function.openssl-dh-compute-key" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>openssl_dh_compute_key</refname> @@ -13,8 +12,8 @@ &reftitle.description; <methodsynopsis> <type class="union"><type>string</type><type>false</type></type><methodname>openssl_dh_compute_key</methodname> - <methodparam><type>string</type><parameter>pub_key</parameter></methodparam> - <methodparam><type>resource</type><parameter>dh_key</parameter></methodparam> + <methodparam><type>string</type><parameter>public_key</parameter></methodparam> + <methodparam><type>OpenSSLAsymmetricKey</type><parameter>private_key</parameter></methodparam> </methodsynopsis> <para> Общий секретный ключ, возвращаемый <function>openssl_dh_compute_key</function> @@ -29,7 +28,7 @@ <para> <variablelist> <varlistentry> - <term><parameter>pub_key</parameter></term> + <term><parameter>public_key</parameter></term> <listitem> <para> Открытый ключ DH удалённой стороны. @@ -37,7 +36,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>dh_key</parameter></term> + <term><parameter>private_key</parameter></term> <listitem> <para> Локальный закрытый ключ DH, соответствующий @@ -56,6 +55,29 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>private_key</parameter> теперь принимает экземпляр <classname>OpenSSLAsymmetricKey</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -198,7 +220,6 @@ echo bin2hex($shared_secret)."\n"; </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-digest.xml b/reference/openssl/functions/openssl-digest.xml index 768af0529..9aa23056f 100644 --- a/reference/openssl/functions/openssl-digest.xml +++ b/reference/openssl/functions/openssl-digest.xml @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - <refentry xml:id="function.openssl-digest" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>openssl_digest</refname> @@ -14,8 +13,8 @@ <methodsynopsis> <type class="union"><type>string</type><type>false</type></type><methodname>openssl_digest</methodname> <methodparam><type>string</type><parameter>data</parameter></methodparam> - <methodparam><type>string</type><parameter>method</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>raw_output</parameter><initializer>&false;</initializer></methodparam> + <methodparam><type>string</type><parameter>digest_algo</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>binary</parameter><initializer>&false;</initializer></methodparam> </methodsynopsis> <para> Вычисляет значение дайджеста для переданных данных с помощью указанного метода. @@ -37,7 +36,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>method</parameter></term> + <term><parameter>digest_algo</parameter></term> <listitem> <para> Метод вычисления дайджеста, например "sha256". Список доступных методов @@ -46,7 +45,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>raw_output</parameter></term> + <term><parameter>binary</parameter></term> <listitem> <para> Если &true;, то будет возвращена необработанная строка. Иначе будет возвращена строка @@ -69,7 +68,7 @@ &reftitle.errors; <para> Выдаёт ошибку уровня <constant>E_WARNING</constant>, если в параметр - <parameter>method</parameter> передан неизвестный метод. + <parameter>digest_algo</parameter> передан неизвестный метод. </para> </refsect1> @@ -83,7 +82,6 @@ </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/simplexml/functions/simplexml-import-dom.xml b/reference/simplexml/functions/simplexml-import-dom.xml index b248a94b9..a2c0102a8 100644 --- a/reference/simplexml/functions/simplexml-import-dom.xml +++ b/reference/simplexml/functions/simplexml-import-dom.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: aur Status: ready --> +<!-- EN-Revision: 2d2492f8d5173b0c8e166e6516746811d7641496 Maintainer: aur Status: ready --> <!-- Reviewed: yes --> <!-- $Revision$ --> <refentry xml:id='function.simplexml-import-dom' xmlns="http://docbook.org/ns/docbook"> @@ -12,7 +12,7 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type class="union"><type>SimpleXMLElement</type><type>false</type></type><methodname>simplexml_import_dom</methodname> + <type class="union"><type>SimpleXMLElement</type><type>null</type></type><methodname>simplexml_import_dom</methodname> <methodparam><type>DOMNode</type><parameter>node</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>class_name</parameter><initializer>"SimpleXMLElement"</initializer></methodparam> </methodsynopsis> @@ -52,9 +52,8 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Возвращает <type>SimpleXMLElement</type> или &false; в случае возникновения ошибки. + Возвращает <type>SimpleXMLElement</type> или &null; в случае возникновения ошибки. </para> - &return.falseproblem; </refsect1> <refsect1 role="examples">
diff --git a/language/exceptions.xml b/language/exceptions.xml index 462f72f62..273d5053e 100644 --- a/language/exceptions.xml +++ b/language/exceptions.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1d58f726462a821d3f926fb61247357f49fa1ce5 Maintainer: irker Status: ready --> +<!-- EN-Revision: 46efcedd4ab2dee962eb80c7fbd552252581225b Maintainer: irker Status: ready --> <!-- Reviewed: yes --> <!-- $Revision$ --> <chapter xml:id="language.exceptions" xmlns="http://docbook.org/ns/docbook"> @@ -27,7 +27,7 @@ class Exception extends Throwable private $trace; // трассировка вызовов методов и функций private $previous; // предыдущее исключение, если исключение вложенное - public function __construct($message = null, $code = 0, Exception $previous = null); + public function __construct($message = null, $code = 0, Throwable $previous = null); final private function __clone(); // запрещает клонирования исключения @@ -73,7 +73,7 @@ class Exception extends Throwable class MyException extends Exception { // Переопределим исключение так, что параметр message станет обязательным - public function __construct($message, $code = 0, Exception $previous = null) { + public function __construct($message, $code = 0, Throwable $previous = null) { // некоторый код // убедитесь, что все передаваемые параметры верны diff --git a/reference/datetime/formats.xml b/reference/datetime/formats.xml index 03f598bee..443f7f1c9 100644 --- a/reference/datetime/formats.xml +++ b/reference/datetime/formats.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: f3bc618211dd65a97eb427aceb9473d3b4a0c3d0 Maintainer: aur Status: ready --> +<!-- EN-Revision: 8440ee35c0219dac8fe3f0a3e3f1e52636492771 Maintainer: aur Status: ready --> <!-- Reviewed: yes --> <!-- $Revision$ --> <chapter xml:id="datetime.formats" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -498,7 +498,7 @@ </row> <row> <entry><literal>ii</literal> (минуты)</entry> - <entry>[0-5][0-9]</entry> + <entry>[0-5]?[0-9]</entry> <entry>"04", "8", "59"</entry> </row> <row> @@ -523,8 +523,8 @@ </row> <row> <entry><literal>ss</literal> (секунды)</entry> - <entry>[0-5][0-9]</entry> - <entry>"04", "8", "59"</entry> + <entry>([0-5]?[0-9])|60</entry> + <entry>"04", "8", "59", "60" (дополнительная секунда)</entry> </row> <row> <entry><literal>SS</literal> (секунды с ведущим нулём)</entry> diff --git a/reference/ev/ev/depth.xml b/reference/ev/ev/depth.xml index a8e9e4794..1c1475b94 100644 --- a/reference/ev/ev/depth.xml +++ b/reference/ev/ev/depth.xml @@ -2,7 +2,7 @@ <!-- $Revision$ --> <!-- EN-Revision: 27d57bc40b3b16d81d6d8876ab5ac3c295875046 Maintainer: rjhdby Status: ready --> <!-- Reviewed: no --> -<refentry xml:id="ev.depth" xmlns="http://docbook.org/ns/docbook"> +<refentry xml:id="ev.depth" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Ev::depth</refname> <refpurpose>Получить глубину рекурсии</refpurpose> diff --git a/reference/ev/ev/run.xml b/reference/ev/ev/run.xml index 303bb8936..270c47cfb 100644 --- a/reference/ev/ev/run.xml +++ b/reference/ev/ev/run.xml @@ -2,7 +2,7 @@ <!-- $Revision$ --> <!-- EN-Revision: 27d57bc40b3b16d81d6d8876ab5ac3c295875046 Maintainer: rjhdby Status: ready --> <!-- Reviewed: no --> -<refentry xml:id="ev.run" xmlns="http://docbook.org/ns/docbook"> +<refentry xml:id="ev.run" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Ev::run</refname> <refpurpose>Начать проверку наличия событий и вызов callback-функций цикла по умолчанию</refpurpose> diff --git a/reference/ev/ev/verify.xml b/reference/ev/ev/verify.xml index 0a1f009ed..d94b57f14 100644 --- a/reference/ev/ev/verify.xml +++ b/reference/ev/ev/verify.xml @@ -2,7 +2,7 @@ <!-- $Revision$ --> <!-- EN-Revision: 27d57bc40b3b16d81d6d8876ab5ac3c295875046 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: sergey --> -<refentry xml:id="ev.verify" xmlns="http://docbook.org/ns/docbook"> +<refentry xml:id="ev.verify" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Ev::verify</refname> <refpurpose>Производит внутреннюю проверку целостности(для отладки)</refpurpose> diff --git a/reference/intl/collator.xml b/reference/intl/collator.xml index 1df6b741d..12f19d1dc 100644 --- a/reference/intl/collator.xml +++ b/reference/intl/collator.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 4724b47c25b48f509355d27291aa6893ad0b40c0 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: 03841ffe3790dfcaef8d60decb6a011774df3727 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: sergey --> <!-- $Revision$ --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.collator" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> @@ -48,9 +48,9 @@ <classsynopsisinfo role="comment">&Methods;</classsynopsisinfo> <xi:include - xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.collator')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" /> + xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.collator')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])" /> <xi:include - xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.collator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> + xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.collator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" /> </classsynopsis> <!-- }}} --> diff --git a/reference/intl/dateformatter.xml b/reference/intl/dateformatter.xml index 648757d33..fae151359 100644 --- a/reference/intl/dateformatter.xml +++ b/reference/intl/dateformatter.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1d137d406b33b8c9e9f470808b14ca5976a29465 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: ce46b05403346a4b21937db0b923173431104145 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: sergey --> <!-- $Revision$ --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.intldateformatter" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> @@ -42,9 +42,9 @@ <classsynopsisinfo role="comment">&Methods;</classsynopsisinfo> <xi:include - xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intldateformatter')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" /> + xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intldateformatter')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])" /> <xi:include - xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intldateformatter')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> + xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intldateformatter')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" /> </classsynopsis> <!-- }}} --> diff --git a/reference/intl/functions/intl-error-name.xml b/reference/intl/functions/intl-error-name.xml index ccb1977ae..253dd87b5 100644 --- a/reference/intl/functions/intl-error-name.xml +++ b/reference/intl/functions/intl-error-name.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: 16152718af3ee6705afde07c3f9cdd4ffb098463 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: sergey --> <!-- $Revision$ --> <refentry xml:id="function.intl-error-name"> @@ -11,9 +11,8 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>string</type> - <methodname>intl_error_name</methodname> - <methodparam><type>int</type><parameter>error_code</parameter></methodparam> + <type>string</type><methodname>intl_error_name</methodname> + <methodparam><type>int</type><parameter>errorCode</parameter></methodparam> </methodsynopsis> <para> Возвращает имя ошибки ICU. @@ -25,7 +24,7 @@ <para> <variablelist> <varlistentry> - <term><parameter>error_code</parameter></term> + <term><parameter>errorCode</parameter></term> <listitem> <para> Код ошибки ICU. diff --git a/reference/intl/functions/intl-is-failure.xml b/reference/intl/functions/intl-is-failure.xml index 32dd9e547..98b2b5a7a 100644 --- a/reference/intl/functions/intl-is-failure.xml +++ b/reference/intl/functions/intl-is-failure.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 14af302c9c0e561fa6f9cdd956268758ba9a89c5 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: 16152718af3ee6705afde07c3f9cdd4ffb098463 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: sergey --> <!-- $Revision$ --> <refentry xml:id="function.intl-is-failure"> @@ -11,9 +11,8 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>bool</type> - <methodname>intl_is_failure</methodname> - <methodparam><type>int</type><parameter>error_code</parameter></methodparam> + <type>bool</type><methodname>intl_is_failure</methodname> + <methodparam><type>int</type><parameter>errorCode</parameter></methodparam> </methodsynopsis> <para> <!-- description goes here --> @@ -25,7 +24,7 @@ <para> <variablelist> <varlistentry> - <term><parameter>error_code</parameter></term> + <term><parameter>errorCode</parameter></term> <listitem> <para> Значение, возвращённое функциями: @@ -88,7 +87,6 @@ true </para> </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/intl/idn/idn-to-ascii.xml b/reference/intl/idn/idn-to-ascii.xml index af183e45a..4837f5052 100644 --- a/reference/intl/idn/idn-to-ascii.xml +++ b/reference/intl/idn/idn-to-ascii.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: b548fc8e5592b577d29aabf9cf2e79d5385ae549 Maintainer: rjhdby Status: ready --> <!-- Reviewed: no --> <!-- $Revision$ --> <refentry xml:id="function.idn-to-ascii" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -13,9 +13,9 @@ <methodsynopsis> <type class="union"><type>string</type><type>false</type></type><methodname>idn_to_ascii</methodname> <methodparam><type>string</type><parameter>domain</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>IDNA_DEFAULT</initializer></methodparam> - <methodparam choice="opt"><type>int</type><parameter>variant</parameter><initializer>INTL_IDNA_VARIANT_UTS46</initializer></methodparam> - <methodparam choice="opt"><type>array</type><parameter role="reference">idna_info</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>IDNA_DEFAULT</constant></initializer></methodparam> + <methodparam choice="opt"><type>int</type><parameter>variant</parameter><initializer><constant>INTL_IDNA_VARIANT_UTS46</constant></initializer></methodparam> + <methodparam choice="opt"><type>array</type><parameter role="reference">idna_info</parameter><initializer>&null;</initializer></methodparam> </methodsynopsis> <para> Эта функция преобразует доменное имя из Unicode в IDNA ASCII. @@ -35,7 +35,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>options</parameter></term> + <term><parameter>flags</parameter></term> <listitem> <para> Опции преобразования - комбинация констант IDNA_* @@ -143,7 +143,6 @@ xn--tst-qla.de </para> </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/intl/idn/idn-to-utf8.xml b/reference/intl/idn/idn-to-utf8.xml index 019ba4e72..8ea2732e6 100644 --- a/reference/intl/idn/idn-to-utf8.xml +++ b/reference/intl/idn/idn-to-utf8.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: b548fc8e5592b577d29aabf9cf2e79d5385ae549 Maintainer: rjhdby Status: ready --> <!-- Reviewed: no --> <!-- $Revision$ --> <refentry xml:id="function.idn-to-utf8" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -13,9 +13,9 @@ <methodsynopsis> <type class="union"><type>string</type><type>false</type></type><methodname>idn_to_utf8</methodname> <methodparam><type>string</type><parameter>domain</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>IDNA_DEFAULT</initializer></methodparam> - <methodparam choice="opt"><type>int</type><parameter>variant</parameter><initializer>INTL_IDNA_VARIANT_UTS46</initializer></methodparam> - <methodparam choice="opt"><type>array</type><parameter role="reference">idna_info</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam> + <methodparam choice="opt"><type>int</type><parameter>variant</parameter><initializer><constant>INTL_IDNA_VARIANT_UTS46</constant></initializer></methodparam> + <methodparam choice="opt"><type>array</type><parameter role="reference">idna_info</parameter><initializer>&null;</initializer></methodparam> </methodsynopsis> <para> Эта функция преобразует доменные имена из формата IDNA ASCII в Unicode, в кодировке UTF-8. @@ -35,7 +35,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>options</parameter></term> + <term><parameter>flags</parameter></term> <listitem> <para> Опции преобразования - комбинация констант IDNA_* @@ -143,7 +143,6 @@ täst.de </para> </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-cipher-iv-length.xml b/reference/openssl/functions/openssl-cipher-iv-length.xml index 54160bdef..222d7246c 100644 --- a/reference/openssl/functions/openssl-cipher-iv-length.xml +++ b/reference/openssl/functions/openssl-cipher-iv-length.xml @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: e41806c30bf6975e452c0d4ce35ab0984c2fa68c Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - <refentry xml:id="function.openssl-cipher-iv-length" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>openssl_cipher_iv_length</refname> @@ -12,8 +11,8 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>int</type><methodname>openssl_cipher_iv_length</methodname> - <methodparam><type>string</type><parameter>method</parameter></methodparam> + <type class="union"><type>int</type><type>false</type></type><methodname>openssl_cipher_iv_length</methodname> + <methodparam><type>string</type><parameter>cipher_algo</parameter></methodparam> </methodsynopsis> <para> Возвращает длину инициализирующего вектора шифра. @@ -24,7 +23,7 @@ &reftitle.parameters; <variablelist> <varlistentry> - <term><parameter>method</parameter></term> + <term><parameter>cipher_algo</parameter></term> <listitem> <para> Метод шифрования. Список потенциальных значений можно получить с помощью @@ -73,7 +72,6 @@ echo $ivlen; </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-csr-export-to-file.xml b/reference/openssl/functions/openssl-csr-export-to-file.xml index 6c93144f7..12a18d304 100644 --- a/reference/openssl/functions/openssl-csr-export-to-file.xml +++ b/reference/openssl/functions/openssl-csr-export-to-file.xml @@ -1,9 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - -<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-csr-export-to-file"> +<refentry xml:id="function.openssl-csr-export-to-file" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>openssl_csr_export_to_file</refname> <refpurpose>Экспортирует CSR в файл</refpurpose> @@ -13,14 +12,14 @@ &reftitle.description; <methodsynopsis> <type>bool</type><methodname>openssl_csr_export_to_file</methodname> - <methodparam><type>mixed</type><parameter>csr</parameter></methodparam> - <methodparam><type>string</type><parameter>outfilename</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>notext</parameter><initializer>&true;</initializer></methodparam> + <methodparam><type class="union"><type>OpenSSLCertificateSigningRequest</type><type>string</type></type><parameter>csr</parameter></methodparam> + <methodparam><type>string</type><parameter>output_filename</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>no_text</parameter><initializer>&true;</initializer></methodparam> </methodsynopsis> <para> <function>openssl_csr_export_to_file</function> записывает запрос на подпись сертификата <parameter>csr</parameter> в формате PEM - в файл <parameter>outfilename</parameter>. + в файл <parameter>output_filename</parameter>. </para> </refsect1> @@ -30,7 +29,7 @@ <variablelist> &openssl.param.csr; <varlistentry> - <term><parameter>outfilename</parameter></term> + <term><parameter>output_filename</parameter></term> <listitem> <para> Путь к файлу. @@ -38,7 +37,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>notext</parameter></term> + <term><parameter>no_text</parameter></term> <listitem> ¬e.openssl.param-notext; </listitem> @@ -54,6 +53,29 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>csr</parameter> теперь принимает экземпляр <classname>OpenSSLCertificateSigningRequest</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -92,7 +114,6 @@ openssl_csr_export_to_file($csr, 'example-csr.pem'); </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-csr-export.xml b/reference/openssl/functions/openssl-csr-export.xml index 0f997080b..e391102bd 100644 --- a/reference/openssl/functions/openssl-csr-export.xml +++ b/reference/openssl/functions/openssl-csr-export.xml @@ -1,9 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - -<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-csr-export"> +<refentry xml:id="function.openssl-csr-export" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>openssl_csr_export</refname> <refpurpose>Экспортирует CSR в виде строки</refpurpose> @@ -13,13 +12,13 @@ &reftitle.description; <methodsynopsis> <type>bool</type><methodname>openssl_csr_export</methodname> - <methodparam><type>mixed</type><parameter>csr</parameter></methodparam> - <methodparam><type>string</type><parameter role="reference">out</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>notext</parameter><initializer>&true;</initializer></methodparam> + <methodparam><type class="union"><type>OpenSSLCertificateSigningRequest</type><type>string</type></type><parameter>csr</parameter></methodparam> + <methodparam><type>OpenSSLAsymmetricKey</type><parameter role="reference">output</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>no_text</parameter><initializer>&true;</initializer></methodparam> </methodsynopsis> <para> <function>openssl_csr_export</function> записывает запрос на подпись сертификата - <parameter>csr</parameter> в формате PEM в переменную <parameter>out</parameter>, + <parameter>csr</parameter> в формате PEM в переменную <parameter>output</parameter>, которая передаётся по ссылке. </para> </refsect1> @@ -30,7 +29,7 @@ <variablelist> &openssl.param.csr; <varlistentry> - <term><parameter>out</parameter></term> + <term><parameter>output</parameter></term> <listitem> <para> в случае успеха, в этой переменной будет сохранён CSR в формате PEM. @@ -38,7 +37,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>notext</parameter></term> + <term><parameter>no_text</parameter></term> <listitem> ¬e.openssl.param-notext; </listitem> @@ -54,6 +53,29 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>csr</parameter> теперь принимает экземпляр <classname>OpenSSLCertificateSigningRequest</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -94,7 +116,6 @@ echo $csr_string; </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-csr-get-public-key.xml b/reference/openssl/functions/openssl-csr-get-public-key.xml index abdc0a846..fe70c3dd9 100644 --- a/reference/openssl/functions/openssl-csr-get-public-key.xml +++ b/reference/openssl/functions/openssl-csr-get-public-key.xml @@ -1,9 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - -<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-csr-get-public-key"> +<refentry xml:id="function.openssl-csr-get-public-key" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>openssl_csr_get_public_key</refname> <refpurpose>Возвращает открытый ключ CSR</refpurpose> @@ -12,9 +11,9 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>resource</type><methodname>openssl_csr_get_public_key</methodname> - <methodparam><type>mixed</type><parameter>csr</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>use_shortnames</parameter><initializer>&true;</initializer></methodparam> + <type class="union"><type>OpenSSLAsymmetricKey</type><type>false</type></type><methodname>openssl_csr_get_public_key</methodname> + <methodparam><type class="union"><type>OpenSSLCertificateSigningRequest</type><type>string</type></type><parameter>csr</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>short_names</parameter><initializer>&true;</initializer></methodparam> </methodsynopsis> <para> <function>openssl_csr_get_public_key</function> извлекает открытый ключ @@ -29,7 +28,7 @@ <variablelist> &openssl.param.csr; <varlistentry> - <term><parameter>use_shortnames</parameter></term> + <term><parameter>short_names</parameter></term> <listitem> <warning> <para> @@ -45,10 +44,40 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Возвращает идентификатор ресурса ключа или &false;. + Возвращает <classname>OpenSSLAsymmetricKey</classname> в случае успешного выполнения или &false; в случае возникновения ошибки. </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + В случае успешного выполнения возвращает экземпляр <classname>OpenSSLAsymmetricKey</classname>; + ранее возвращался ресурс (&resource;) типа <literal>OpenSSL key</literal>. + </entry> + </row> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>csr</parameter> теперь принимает экземпляр <classname>OpenSSLCertificateSigningRequest</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -90,7 +119,6 @@ echo $info['key']; </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-csr-get-subject.xml b/reference/openssl/functions/openssl-csr-get-subject.xml index 042965547..08e90a195 100644 --- a/reference/openssl/functions/openssl-csr-get-subject.xml +++ b/reference/openssl/functions/openssl-csr-get-subject.xml @@ -1,9 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - -<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-csr-get-subject"> +<refentry xml:id="function.openssl-csr-get-subject" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>openssl_csr_get_subject</refname> <refpurpose>Возвращает субъект CSR</refpurpose> @@ -13,8 +12,8 @@ &reftitle.description; <methodsynopsis> <type class="union"><type>array</type><type>false</type></type><methodname>openssl_csr_get_subject</methodname> - <methodparam><type>mixed</type><parameter>csr</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>use_shortnames</parameter><initializer>&true;</initializer></methodparam> + <methodparam><type class="union"><type>OpenSSLCertificateSigningRequest</type><type>string</type></type><parameter>csr</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>short_names</parameter><initializer>&true;</initializer></methodparam> </methodsynopsis> <para> <function>openssl_csr_get_subject</function> возвращает известную об субъекте @@ -29,7 +28,7 @@ <variablelist> &openssl.param.csr; <varlistentry> - <term><parameter>use_shortnames</parameter></term> + <term><parameter>short_names</parameter></term> <listitem> <para> <parameter>shortnames</parameter> определяет, как данные индексируются в массиве, @@ -51,6 +50,29 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>csr</parameter> теперь принимает экземпляр <classname>OpenSSLCertificateSigningRequest</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -112,7 +134,6 @@ Array </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-csr-new.xml b/reference/openssl/functions/openssl-csr-new.xml index 6b1f78f3b..2837c8a2c 100644 --- a/reference/openssl/functions/openssl-csr-new.xml +++ b/reference/openssl/functions/openssl-csr-new.xml @@ -1,9 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - -<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-csr-new"> +<refentry xml:id="function.openssl-csr-new" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>openssl_csr_new</refname> <refpurpose>Генерирует CSR</refpurpose> @@ -12,16 +11,16 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>mixed</type><methodname>openssl_csr_new</methodname> - <methodparam><type>array</type><parameter>dn</parameter></methodparam> - <methodparam><type>resource</type><parameter role="reference">privkey</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>configargs</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>extraattribs</parameter></methodparam> + <type class="union"><type>OpenSSLCertificateSigningRequest</type><type>false</type></type><methodname>openssl_csr_new</methodname> + <methodparam><type>array</type><parameter>distinguished_names</parameter></methodparam> + <methodparam><type>OpenSSLAsymmetricKey</type><parameter role="reference">private_key</parameter></methodparam> + <methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>options</parameter><initializer>&null;</initializer></methodparam> + <methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>extra_attributes</parameter><initializer>&null;</initializer></methodparam> </methodsynopsis> <para> <function>openssl_csr_new</function> создаёт новый запрос на подпись сертификата (Certificate Signing Request или CSR) основываясь на информации - указанной в параметре <parameter>dn</parameter>. + указанной в параметре <parameter>distinguished_names</parameter>. </para> ¬e.openssl.cnf; </refsect1> @@ -31,7 +30,7 @@ <para> <variablelist> <varlistentry> - <term><parameter>dn</parameter></term> + <term><parameter>distinguished_names</parameter></term> <listitem> <para> Уникальное имя (Distinguished Name) или поля субъекта для использования в @@ -40,10 +39,10 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>privkey</parameter></term> + <term><parameter>private_key</parameter></term> <listitem> <para> - Параметр <parameter>privkey</parameter> должен быть задан закрытым ключом + Параметр <parameter>private_key</parameter> должен быть задан закрытым ключом ранее сгенерированным функцией <function>openssl_pkey_new</function> (или полученный с помощью любой другой функции семейства openssl_pkey). Соответствующая открытая часть ключа будет использована для @@ -52,24 +51,24 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>configargs</parameter></term> + <term><parameter>options</parameter></term> <listitem> <para> По умолчанию для инициализации запроса используется информация из вашего системного <literal>openssl.conf</literal>. Вы можете указать секцию конфигурационного файла путём задания ключа <literal>config_section_section</literal> в - <parameter>configargs</parameter>. Также вы можете задать альтернативный + <parameter>options</parameter>. Также вы можете задать альтернативный файл конфигурации openssl путём задания ключа <literal>config</literal> значением пути до него. - Соответствие ключей, указанных в <parameter>configargs</parameter> + Соответствие ключей, указанных в <parameter>options</parameter> ключам из <literal>openssl.conf</literal> представлено ниже. <table> <title>Переопределение конфигурации</title> <tgroup cols="3"> <thead> <row> - <entry>Ключ <parameter>configargs</parameter></entry> + <entry>Ключ <parameter>options</parameter></entry> <entry>Тип</entry> <entry>Соответствие в <literal>openssl.conf</literal></entry> <entry>Описание</entry> @@ -151,12 +150,12 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>extraattribs</parameter></term> + <term><parameter>extra_attributes</parameter></term> <listitem> <para> - <parameter>extraattribs</parameter> используется для указания дополнительных - опций для CSR. И <parameter>dn</parameter>, и - <parameter>extraattribs</parameter> являются ассоциативными массивами, ключи + <parameter>extra_attributes</parameter> используется для указания дополнительных + опций для CSR. И <parameter>distinguished_names</parameter>, и + <parameter>extra_attributes</parameter> являются ассоциативными массивами, ключи которых преобразуются в OI-ы и применяются к соответствующим частям запроса. </para> @@ -185,9 +184,23 @@ </thead> <tbody> <row> + <entry>8.0.0</entry> + <entry> + <parameter>csr</parameter> теперь принимает экземпляр <classname>OpenSSLCertificateSigningRequest</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>private_key</parameter> теперь принимает экземпляр <classname>OpenSSLAsymmetricKey</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL key</literal>. + </entry> + </row> + <row> <entry>7.1.0</entry> <entry> - Параметр <parameter>configargs</parameter> теперь поддерживает + Параметр <parameter>options</parameter> теперь поддерживает <literal>curve_name</literal>. </entry> </row> @@ -285,7 +298,6 @@ openssl_pkey_export_to_file($private_key, 'ecc-private.key'); </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-csr-sign.xml b/reference/openssl/functions/openssl-csr-sign.xml index 82791e65c..18367fbbc 100644 --- a/reference/openssl/functions/openssl-csr-sign.xml +++ b/reference/openssl/functions/openssl-csr-sign.xml @@ -1,9 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: e41806c30bf6975e452c0d4ce35ab0984c2fa68c Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: c7d18f5a16306694c33a5170b35457c13e39fc92 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - -<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-csr-sign"> +<refentry xml:id="function.openssl-csr-sign" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>openssl_csr_sign</refname> <refpurpose>Подписать CSR с помощью другого сертификата (или им же) и создать сертификат</refpurpose> @@ -12,16 +11,16 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>resource</type><methodname>openssl_csr_sign</methodname> - <methodparam><type>mixed</type><parameter>csr</parameter></methodparam> - <methodparam><type>mixed</type><parameter>cacert</parameter></methodparam> - <methodparam><type>mixed</type><parameter>priv_key</parameter></methodparam> + <type class="union"><type>OpenSSLCertificate</type><type>false</type></type><methodname>openssl_csr_sign</methodname> + <methodparam><type class="union"><type>OpenSSLCertificateSigningRequest</type><type>string</type></type><parameter>csr</parameter></methodparam> + <methodparam><type class="union"><type>OpenSSLCertificate</type><type>string</type><type>null</type></type><parameter>ca_certificate</parameter></methodparam> + <methodparam><type class="union"><type>OpenSSLAsymmetricKey</type><type>OpenSSLCertificate</type><type>array</type><type>string</type></type><parameter>private_key</parameter></methodparam> <methodparam><type>int</type><parameter>days</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>configargs</parameter></methodparam> + <methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>options</parameter><initializer>&null;</initializer></methodparam> <methodparam choice="opt"><type>int</type><parameter>serial</parameter><initializer>0</initializer></methodparam> </methodsynopsis> <para> - <function>openssl_csr_sign</function> создаёт ресурс сертификата x509 + <function>openssl_csr_sign</function> создаёт сертификат x509 из заданного CSR. </para> ¬e.openssl.cnf; @@ -43,21 +42,21 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>cacert</parameter></term> + <term><parameter>ca_certificate</parameter></term> <listitem> <para> - Создаваемый сертификат будет подписан <parameter>cacert</parameter>. - Если <parameter>cacert</parameter> задан как &null;, то будет сгенерирован + Создаваемый сертификат будет подписан <parameter>ca_certificate</parameter>. + Если <parameter>ca_certificate</parameter> задан как &null;, то будет сгенерирован самоподписанный сертификат. </para> </listitem> </varlistentry> <varlistentry> - <term><parameter>priv_key</parameter></term> + <term><parameter>private_key</parameter></term> <listitem> <para> - <parameter>priv_key</parameter> - секретный ключ, соответствующий - <parameter>cacert</parameter>. + <parameter>private_key</parameter> - секретный ключ, соответствующий + <parameter>ca_certificate</parameter>. </para> </listitem> </varlistentry> @@ -70,12 +69,12 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>configargs</parameter></term> + <term><parameter>options</parameter></term> <listitem> <para> - Можно тонко настроить подпись CSR с помощью <parameter>configargs</parameter>. + Можно тонко настроить подпись CSR с помощью <parameter>options</parameter>. Подробности смотрите в описании функции <function>openssl_csr_new</function>, - в разделе посвящённом параметру <parameter>configargs</parameter>. + в разделе посвящённом параметру <parameter>options</parameter>. </para> </listitem> </varlistentry> @@ -95,10 +94,54 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Возвращает ресурс сертификата x509, либо &false;, если что-то пошло не так. + Возвращает <classname>OpenSSLCertificate</classname> в случае успешного выполнения или &false; в случае возникновения ошибки. </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + On success, this function returns an <classname>OpenSSLCertificate</classname> instance now; + previously, a &resource; of type <literal>OpenSSL X.509</literal> was returned. + </entry> + </row> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>csr</parameter> теперь принимает экземпляр <classname>OpenSSLCertificateSigningRequest</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>ca_certificate</parameter> теперь принимает экземпляр <classname>OpenSSLCertificate</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>private_key</parameter> теперь принимает экземпляр <classname>OpenSSLAsymmetricKey</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -139,7 +182,6 @@ while (($e = openssl_error_string()) !== false) { </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-decrypt.xml b/reference/openssl/functions/openssl-decrypt.xml index b634d9a8f..baefc62df 100644 --- a/reference/openssl/functions/openssl-decrypt.xml +++ b/reference/openssl/functions/openssl-decrypt.xml @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - <refentry xml:id="function.openssl-decrypt" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>openssl_decrypt</refname> @@ -14,8 +13,8 @@ <methodsynopsis> <type class="union"><type>string</type><type>false</type></type><methodname>openssl_decrypt</methodname> <methodparam><type>string</type><parameter>data</parameter></methodparam> - <methodparam><type>string</type><parameter>method</parameter></methodparam> - <methodparam><type>string</type><parameter>key</parameter></methodparam> + <methodparam><type>string</type><parameter>cipher_algo</parameter></methodparam> + <methodparam><type>string</type><parameter>passphrase</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam> <methodparam choice="opt"><type>string</type><parameter>iv</parameter><initializer>""</initializer></methodparam> <methodparam choice="opt"><type>string</type><parameter>tag</parameter><initializer>""</initializer></methodparam> @@ -41,7 +40,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>method</parameter></term> + <term><parameter>cipher_algo</parameter></term> <listitem> <para> Метод шифрования. Список доступных методов можно получить с помощью функции @@ -50,7 +49,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>key</parameter></term> + <term><parameter>passphrase</parameter></term> <listitem> <para> Ключ. @@ -116,7 +115,7 @@ &reftitle.errors; <para> Выдаёт ошибку уровня <constant>E_WARNING</constant>, если в параметр - <parameter>method</parameter> передан неизвестный алгоритм шифрования. + <parameter>cipher_algo</parameter> передан неизвестный алгоритм шифрования. </para> <para> Выдаёт ошибку уровня <constant>E_WARNING</constant>, если в параметр @@ -154,7 +153,6 @@ </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-dh-compute-key.xml b/reference/openssl/functions/openssl-dh-compute-key.xml index f1ec699aa..abff7dad9 100644 --- a/reference/openssl/functions/openssl-dh-compute-key.xml +++ b/reference/openssl/functions/openssl-dh-compute-key.xml @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - <refentry xml:id="function.openssl-dh-compute-key" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>openssl_dh_compute_key</refname> @@ -13,8 +12,8 @@ &reftitle.description; <methodsynopsis> <type class="union"><type>string</type><type>false</type></type><methodname>openssl_dh_compute_key</methodname> - <methodparam><type>string</type><parameter>pub_key</parameter></methodparam> - <methodparam><type>resource</type><parameter>dh_key</parameter></methodparam> + <methodparam><type>string</type><parameter>public_key</parameter></methodparam> + <methodparam><type>OpenSSLAsymmetricKey</type><parameter>private_key</parameter></methodparam> </methodsynopsis> <para> Общий секретный ключ, возвращаемый <function>openssl_dh_compute_key</function> @@ -29,7 +28,7 @@ <para> <variablelist> <varlistentry> - <term><parameter>pub_key</parameter></term> + <term><parameter>public_key</parameter></term> <listitem> <para> Открытый ключ DH удалённой стороны. @@ -37,7 +36,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>dh_key</parameter></term> + <term><parameter>private_key</parameter></term> <listitem> <para> Локальный закрытый ключ DH, соответствующий @@ -56,6 +55,29 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>private_key</parameter> теперь принимает экземпляр <classname>OpenSSLAsymmetricKey</classname>; + ранее принимался ресурс (&resource;) типа <literal>OpenSSL X.509 CSR</literal>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -198,7 +220,6 @@ echo bin2hex($shared_secret)."\n"; </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/openssl/functions/openssl-digest.xml b/reference/openssl/functions/openssl-digest.xml index 768af0529..9aa23056f 100644 --- a/reference/openssl/functions/openssl-digest.xml +++ b/reference/openssl/functions/openssl-digest.xml @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: rjhdby Status: ready --> +<!-- EN-Revision: d1e3ea622e5d4f542cd36eca59a9f22aa0142633 Maintainer: rjhdby Status: ready --> <!-- Reviewed: yes Maintainer: lex --> - <refentry xml:id="function.openssl-digest" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>openssl_digest</refname> @@ -14,8 +13,8 @@ <methodsynopsis> <type class="union"><type>string</type><type>false</type></type><methodname>openssl_digest</methodname> <methodparam><type>string</type><parameter>data</parameter></methodparam> - <methodparam><type>string</type><parameter>method</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>raw_output</parameter><initializer>&false;</initializer></methodparam> + <methodparam><type>string</type><parameter>digest_algo</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>binary</parameter><initializer>&false;</initializer></methodparam> </methodsynopsis> <para> Вычисляет значение дайджеста для переданных данных с помощью указанного метода. @@ -37,7 +36,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>method</parameter></term> + <term><parameter>digest_algo</parameter></term> <listitem> <para> Метод вычисления дайджеста, например "sha256". Список доступных методов @@ -46,7 +45,7 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>raw_output</parameter></term> + <term><parameter>binary</parameter></term> <listitem> <para> Если &true;, то будет возвращена необработанная строка. Иначе будет возвращена строка @@ -69,7 +68,7 @@ &reftitle.errors; <para> Выдаёт ошибку уровня <constant>E_WARNING</constant>, если в параметр - <parameter>method</parameter> передан неизвестный метод. + <parameter>digest_algo</parameter> передан неизвестный метод. </para> </refsect1> @@ -83,7 +82,6 @@ </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/simplexml/functions/simplexml-import-dom.xml b/reference/simplexml/functions/simplexml-import-dom.xml index b248a94b9..a2c0102a8 100644 --- a/reference/simplexml/functions/simplexml-import-dom.xml +++ b/reference/simplexml/functions/simplexml-import-dom.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: aur Status: ready --> +<!-- EN-Revision: 2d2492f8d5173b0c8e166e6516746811d7641496 Maintainer: aur Status: ready --> <!-- Reviewed: yes --> <!-- $Revision$ --> <refentry xml:id='function.simplexml-import-dom' xmlns="http://docbook.org/ns/docbook"> @@ -12,7 +12,7 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type class="union"><type>SimpleXMLElement</type><type>false</type></type><methodname>simplexml_import_dom</methodname> + <type class="union"><type>SimpleXMLElement</type><type>null</type></type><methodname>simplexml_import_dom</methodname> <methodparam><type>DOMNode</type><parameter>node</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>class_name</parameter><initializer>"SimpleXMLElement"</initializer></methodparam> </methodsynopsis> @@ -52,9 +52,8 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Возвращает <type>SimpleXMLElement</type> или &false; в случае возникновения ошибки. + Возвращает <type>SimpleXMLElement</type> или &null; в случае возникновения ошибки. </para> - &return.falseproblem; </refsect1> <refsect1 role="examples">