-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial translation in openssl/functions
- Loading branch information
1 parent
790f871
commit 1c2219a
Showing
5 changed files
with
735 additions
and
0 deletions.
There are no files selected for viewing
116 changes: 116 additions & 0 deletions
116
reference/openssl/functions/openssl-spki-export-challenge.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: 7f99d5e488d161ce3b12d1dae405a283728933c3 Maintainer: leonardolara Status: ready --> | ||
<refentry xml:id="function.openssl-spki-export-challenge" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>openssl_spki_export_challenge</refname> | ||
<refpurpose>Exporta o desafio associado a uma chave pública assinada e a um desafio</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<methodsynopsis> | ||
<type class="union"><type>string</type><type>false</type></type><methodname>openssl_spki_export_challenge</methodname> | ||
<methodparam><type>string</type><parameter>spki</parameter></methodparam> | ||
</methodsynopsis> | ||
<para> | ||
Exporta o desafio a partir da chave pública assinada codificada e do desafio. | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
<variablelist> | ||
<varlistentry> | ||
<term><parameter>spki</parameter></term> | ||
<listitem> | ||
<para> | ||
Espera uma chave pública assinada válida e um desafio | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
|
||
<refsect1 role="returnvalues"> | ||
&reftitle.returnvalues; | ||
<para> | ||
Retorna a string de desafio associada ou &false; em caso de falha. | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="errors"> | ||
&reftitle.errors; | ||
<para> | ||
Emite um erro de nível <constant>E_WARNING</constant> se um argumento inválido | ||
for passado através do parâmetro <parameter>spki</parameter>. | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="examples"> | ||
&reftitle.examples; | ||
<example xml:id="openssl_spki_export_challenge.example.basic"> | ||
<title>Exemplo de <function>openssl_spki_export_challenge</function></title> | ||
<para> | ||
Extrai a string de desafio associada ou NULL em caso de falha. | ||
</para> | ||
<programlisting role="php"> | ||
<![CDATA[ | ||
<?php | ||
$pkey = openssl_pkey_new('senha secreta'); | ||
$spkac = openssl_spki_new($pkey, 'string de desafio'); | ||
$challenge = openssl_spki_export_challenge(preg_replace('/SPKAC=/', '', $spkac)); | ||
?> | ||
]]> | ||
</programlisting> | ||
</example> | ||
<example xml:id="openssl_spki_export_challenge.example.keygen"> | ||
<title>Exemplo de <function>openssl_spki_export_challenge</function> a partir de <keygen></title> | ||
<para> | ||
Extrai a string de desafio associada emitida do elemento <keygen> | ||
</para> | ||
<programlisting role="php"> | ||
<![CDATA[ | ||
<?php | ||
$challenge = openssl_spki_export_challenge(preg_replace('/SPKAC=/', '', $_POST['spkac'])); | ||
?> | ||
<keygen name="spkac" challenge="string de desafio" keytype="RSA"> | ||
]]> | ||
</programlisting> | ||
</example> | ||
</refsect1> | ||
|
||
<refsect1 role="seealso"> | ||
&reftitle.seealso; | ||
<para> | ||
<simplelist> | ||
<member><function>openssl_spki_new</function></member> | ||
<member><function>openssl_spki_verify</function></member> | ||
<member><function>openssl_spki_export</function></member> | ||
<member><function>openssl_get_md_methods</function></member> | ||
<member><function>openssl_csr_new</function></member> | ||
<member><function>openssl_csr_sign</function></member> | ||
</simplelist> | ||
</para> | ||
</refsect1> | ||
|
||
</refentry> | ||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: 497c40ac164d5873fd87f622dfdeb5206392b446 Maintainer: leonardolara Status: ready --> | ||
<refentry xml:id="function.openssl-spki-export" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>openssl_spki_export</refname> | ||
<refpurpose>Exporta uma chave pública assinada válida e formatada em <acronym>PEM</acronym> e um desafio</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<methodsynopsis> | ||
<type class="union"><type>string</type><type>false</type></type><methodname>openssl_spki_export</methodname> | ||
<methodparam><type>string</type><parameter>spki</parameter></methodparam> | ||
</methodsynopsis> | ||
<para> | ||
Exporta chave pública formatada em <acronym>PEM</acronym> de chave pública assinada codificada e desafio | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
<variablelist> | ||
<varlistentry> | ||
<term><parameter>spki</parameter></term> | ||
<listitem> | ||
<para> | ||
Espera uma chave pública assinada válida e um desafio | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
|
||
<refsect1 role="returnvalues"> | ||
&reftitle.returnvalues; | ||
<para> | ||
Retorna a chave pública formatada em <acronym>PEM</acronym> associada ou &false; em caso de falha. | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="errors"> | ||
&reftitle.errors; | ||
<para> | ||
Emite um erro de nível <constant>E_WARNING</constant> se um argumento inválido | ||
for passado através do parâmetro <parameter>spki</parameter>. | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="examples"> | ||
&reftitle.examples; | ||
<example xml:id="openssl_spki_export.example.basic"> | ||
<title>Exemplo de <function>openssl_spki_export</function></title> | ||
<para> | ||
Extrai a chave pública formatada em <acronym>PEM</acronym> associada ou &null; em caso de falha. | ||
</para> | ||
<programlisting role="php"> | ||
<![CDATA[ | ||
<?php | ||
$pkey = openssl_pkey_new('senha secreta'); | ||
$spkac = openssl_spki_new($pkey, 'string de desafio'); | ||
$pubKey = openssl_spki_export(preg_replace('/SPKAC=/', '', $spkac)); | ||
if ($pubKey) { | ||
echo $pubKey; | ||
} | ||
?> | ||
]]> | ||
</programlisting> | ||
</example> | ||
<example xml:id="openssl_spki_export.example.keygen"> | ||
<title><function>openssl_spki_export</function> example from <keygen></title> | ||
<para> | ||
Extrai a chave pública formatada em <acronym>PEM</acronym> associada emitida pelo elemento <keygen> | ||
</para> | ||
<programlisting role="php"> | ||
<![CDATA[ | ||
<?php | ||
$spkac = openssl_spki_export(preg_replace('/SPKAC=/', '', $_POST['spkac'])); | ||
if ($spkac != NULL) { | ||
echo $spkac; | ||
} else { | ||
echo "Extração de chave pública falhou"; | ||
} | ||
?> | ||
<keygen name="spkac" challenge="string de desafio" keytype="RSA"> | ||
]]> | ||
</programlisting> | ||
</example> | ||
</refsect1> | ||
|
||
<refsect1 role="seealso"> | ||
&reftitle.seealso; | ||
<para> | ||
<simplelist> | ||
<member><function>openssl_spki_new</function></member> | ||
<member><function>openssl_spki_verify</function></member> | ||
<member><function>openssl_spki_export_challenge</function></member> | ||
<member><function>openssl_get_md_methods</function></member> | ||
<member><function>openssl_csr_new</function></member> | ||
<member><function>openssl_csr_sign</function></member> | ||
</simplelist> | ||
</para> | ||
</refsect1> | ||
|
||
</refentry> | ||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
Oops, something went wrong.