com doc/zh: sync to en: s/configarg/option/ because configarg was renamed to options.: reference/openssl/functions/openssl-pkey-new.xml

[email protected] (Bole Chen) Tue, 16 Feb 2021 03:28:10 +0000
Newsgroups php.doc.zh
Message-ID <[email protected]>
Commit:    f0a2727026ca31e274d5c48b0dbbed4cbc05d11e=0AAuthor:    Bole Chen =
<[email protected]>         Tue, 16 Feb 2021 11:28:10 +0800=0AParents:   3610=
e84f24d94ea29b818173197d1701f71bb723=0ABranches:  master=0A=0ALink:       h=
ttp://git.php.net/?p=3Ddoc/zh.git;a=3Dcommitdiff;h=3Df0a2727026ca31e274d5c4=
8b0dbbed4cbc05d11e=0A=0ALog:=0Async to en: s/configarg/option/ because conf=
igarg was renamed to options.=0A=0AChanged paths:=0A  M  reference/openssl/=
functions/openssl-pkey-new.xml=0A=0A=0ADiff:=0Adiff --git a/reference/opens=
sl/functions/openssl-pkey-new.xml b/reference/openssl/functions/openssl-pke=
y-new.xml=0Aindex c03c2613..c20fc3f7 100644=0A--- a/reference/openssl/funct=
ions/openssl-pkey-new.xml=0A+++ b/reference/openssl/functions/openssl-pkey-=
new.xml=0A@@ -1,22 +1,21 @@=0A <?xml version=3D"1.0" encoding=3D"utf-8"?>=
=0A <!-- $Revision$ -->=0A-<!-- EN-Revision: 5d5a8ef9cbe225d53f1b66b6ae3695=
11d0f6170a Maintainer: duanxiaoqiang Status: ready -->=0A+<!-- EN-Revision:=
 2e02eeb87167732c245530d970b79061b8aaa24a Maintainer: duanxiaoqiang Status:=
 ready -->=0A <!-- Reviewed: no -->=0A-=0A-<refentry xmlns=3D"http://docboo=
k.org/ns/docbook" xml:id=3D"function.openssl-pkey-new">=0A+<refentry xml:id=
=3D"function.openssl-pkey-new" xmlns=3D"http://docbook.org/ns/docbook">=0A =
 <refnamediv>=0A   <refname>openssl_pkey_new</refname>=0A   <refpurpose>=
=E7=94=9F=E6=88=90=E4=B8=80=E4=B8=AA=E6=96=B0=E7=9A=84=E7=A7=81=E9=92=A5</r=
efpurpose>=0A  </refnamediv>=0A- =0A+=0A  <refsect1 role=3D"description">=
=0A   &reftitle.description;=0A   <methodsynopsis>=0A-   <type>resource</ty=
pe><methodname>openssl_pkey_new</methodname>=0A-   <methodparam choice=3D"o=
pt"><type>array</type><parameter>configargs</parameter></methodparam>=0A+  =
 <type class=3D"union"><type>OpenSSLAsymmetricKey</type><type>false</type><=
/type><methodname>openssl_pkey_new</methodname>=0A+   <methodparam choice=
=3D"opt"><type class=3D"union"><type>array</type><type>null</type></type><p=
arameter>options</parameter><initializer>&null;</initializer></methodparam>=
=0A   </methodsynopsis>=0A   <para>=0A-   <function>openssl_pkey_new</funct=
ion> =E7=94=9F=E6=88=90=E4=B8=80=E4=B8=AA=E6=96=B0=E7=9A=84=E7=A7=81=
=E9=92=A5=E5=92=8C=E5=85=AC=E9=92=A5=E5=AF=B9=E3=80=82=E9=80=9A=E8=BF=87 <f=
unction>openssl_pkey_get_public</function> =E5=87=BD=E6=95=B0=E8=8E=B7=
=E5=8F=96=E8=AF=A5=E5=AF=86=E9=92=A5=E7=9A=84=E5=85=AC=E5=85=B1=E7=BB=84=
=E4=BB=B6=E3=80=82=0A+   <function>openssl_pkey_new</function> =E7=94=9F=
=E6=88=90=E4=B8=80=E4=B8=AA=E6=96=B0=E7=9A=84=E7=A7=81=E9=92=A5=E5=92=8C=
=E5=85=AC=E9=92=A5=E5=AF=B9=E3=80=82=E5=A6=82=E4=BD=95=E8=8E=B7=E5=8F=96=
=E8=AF=A5=E5=AF=86=E9=92=A5=E7=9A=84=E5=85=AC=E5=85=B1=E7=BB=84=E4=BB=B6=
=E5=8F=82=E8=A7=81=E4=BB=A5=E4=B8=8B=E7=A4=BA=E4=BE=8B=E3=80=82=0A   </para=
>=0A   &note.openssl.cnf;=0A  </refsect1>=0A@@ -26,10 +25,12 @@=0A   <para>=
=0A    <variablelist>=0A     <varlistentry>=0A-     <term><parameter>config=
args</parameter></term>=0A+     <term><parameter>options</parameter></term>=
=0A      <listitem>=0A       <para>=0A-       =E4=BD=A0=E5=8F=AF=E4=BB=
=A5=E4=BD=BF=E7=94=A8<parameter>configargs</parameter>=E5=8F=82=E6=95=B0=
=E5=BE=AE=E8=B0=83=E5=AF=86=E9=92=A5=E7=9A=84=E7=94=9F=E6=88=90=EF=BC=88=
=E6=AF=94=E5=A6=82=E6=8C=87=E5=AE=9A=E4=BD=8D=E6=95=B0=EF=BC=89=E3=80=82=
=E6=9F=A5=E7=9C=8B<function>openssl_csr_new</function>=E8=8E=B7=E5=8F=96=
=E6=9B=B4=E5=A4=9A=E5=85=B3=E4=BA=8E<parameter>configargs</parameter>=
=E7=9A=84=E4=BF=A1=E6=81=AF=E3=80=82=0A+       =E4=BD=A0=E5=8F=AF=E4=BB=
=A5=E4=BD=BF=E7=94=A8 <parameter>options</parameter> =E5=8F=82=E6=95=B0=
=E5=BE=AE=E8=B0=83=E5=AF=86=E9=92=A5=E7=9A=84=E7=94=9F=E6=88=90=EF=BC=88=
=E6=AF=94=E5=A6=82=E6=8C=87=E5=AE=9A=E4=BD=8D=E6=95=B0=EF=BC=89=E3=80=82=
=E6=9F=A5=E7=9C=8B=0A+       <function>openssl_csr_new</function> =E8=8E=
=B7=E5=8F=96=E6=9B=B4=E5=A4=9A=E5=85=B3=E4=BA=8E=0A+       <parameter>optio=
ns</parameter> =E7=9A=84=E4=BF=A1=E6=81=AF=E3=80=82=0A       </para>=0A    =
  </listitem>=0A     </varlistentry>=0A@@ -40,7 +41,7 @@=0A  <refsect1 role=
=3D"returnvalues">=0A   &reftitle.returnvalues;=0A   <para>=0A-   =E6=88=
=90=E5=8A=9F=EF=BC=8C=E8=BF=94=E5=9B=9Epkey=E7=9A=84=E8=B5=84=E6=BA=90=
=E6=A0=87=E8=AF=86=E7=AC=A6=EF=BC=8C=E9=94=99=E8=AF=AF=E5=88=99=E8=BF=94=
=E5=9B=9E &false; =E3=80=82=0A+   =E6=88=90=E5=8A=9F=E6=97=B6=E8=BF=94=
=E5=9B=9E <classname>OpenSSLAsymmetricKey</classname> =E5=AE=9E=E4=BE=8B=
=EF=BC=8C=E9=94=99=E8=AF=AF=E5=88=99=E8=BF=94=E5=9B=9E &false; =E3=80=82=0A=
   </para>=0A  </refsect1>=0A =0A@@ -56,6 +57,13 @@=0A     </thead>=0A     =
<tbody>=0A      <row>=0A+      <entry>8.0.0</entry>=0A+      <entry>=0A+   =
    =E6=88=90=E5=8A=9F=E6=97=B6=E6=AD=A4=E5=87=BD=E6=95=B0=E4=BC=9A=
=E8=BF=94=E5=9B=9E <classname>OpenSSLAsymmetricKey</classname> =E7=9A=84=
=E5=AE=9E=E4=BE=8B=EF=BC=9B=E5=9C=A8=E4=B9=8B=E5=89=8D=E7=89=88=E6=9C=AC=
=E4=B8=AD=EF=BC=8C=E5=88=99=E4=BC=9A=E8=BF=94=E5=9B=9E=E7=B1=BB=E4=BC=BC=
=E4=B8=BA=0A+       <literal>OpenSSL key</literal> =E7=9A=84 &resource;=
=E3=80=82=0A+      </entry>=0A+     </row>=0A+     <row>=0A       <entry>7.=
1.0</entry>=0A       <entry>=E6=B7=BB=E5=8A=A0=E4=BA=86 <parameter>curve_na=
me</parameter> =E9=85=8D=E7=BD=AE=E5=8F=82=E6=95=B0=E4=BD=BF=E5=BE=97=
=E5=8F=AF=E4=BB=A5=E5=88=9B=E5=BB=BA EC =E5=AF=86=E9=92=A5=E3=80=82</entry>=
=0A      </row>=0A@@ -64,8 +72,40 @@=0A   </informaltable>=0A  </refsect1>=
=0A =0A-</refentry>=0A+ <refsect1 role=3D"examples">=0A+  &reftitle.example=
s;=0A+  <example xml:id=3D"function.openssl-pkey-new.example.public-key">=
=0A+   <title>Obtain the public key from a private key</title>=0A+   <progr=
amlisting role=3D"php">=0A+<![CDATA[=0A+<?php=0A+$private_key =3D openssl_p=
key_new();=0A+$public_key_pem =3D openssl_pkey_get_details($private_key)['k=
ey'];=0A+echo $public_key_pem;=0A+$public_key =3D openssl_pkey_get_public($=
public_key_pem);=0A+var_dump($public_key);=0A+?>=0A+]]>=0A+   </programlist=
ing>=0A+   &example.outputs.similar;=0A+   <screen>=0A+<![CDATA[=0A+-----BE=
GIN PUBLIC KEY-----=0A+MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArZFsmN2P=
6rx1Xt7YV95o=0A+gcdlal0k3ryiIhFNzjwtRNNTXfEfBr6lUuaIJYQ8/XqEBX0hpcfuuF6tTRl=
onA3t=0A+WLME0QFD93YVsAaXcy76YqjjqcRRodIBphAbYyyMI/lXkQAdn7kbAmr7neSOsMYJ=
=0A+El9Wo4Hl4oG6e52ZnYHyqW9dxh4hX93eupR2TmcCdVf+r9xoHewP0KJYSHt7vDUX=0A+AQl=
WYcQiWHIadFsmL0orr6mutlXFReoHbesgKY9/3YLOu0JfxflSjIZ2JeL1NTl1=0A+MsmODsUwgA=
UrwnWKKx+eQUP5g3GnSB3dPkRh9zRVRiLNWbCugyjrf3e6DgQWrW7j=0A+pwIDAQAB=0A+-----=
END PUBLIC KEY-----=0A+resource(5) of type (OpenSSL key)=0A+]]>=0A+   </scr=
een>=0A+  </example>=0A+ </refsect1>=0A =0A+</refentry>=0A <!-- Keep this c=
omment at the end of the file=0A Local variables:=0A mode: sgml=0A