summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2016-12-28 14:06:06 +0000
committerschwarze <>2016-12-28 14:06:06 +0000
commit67e6d06a9ebf2b15210170404d90e40af3a4aa05 (patch)
treee1be41c310e3749c0df01a47507304055b194cc0 /src
parenta422a45452769d10a4d4249e8e8f1d7561972dd0 (diff)
downloadopenbsd-67e6d06a9ebf2b15210170404d90e40af3a4aa05.tar.gz
openbsd-67e6d06a9ebf2b15210170404d90e40af3a4aa05.tar.bz2
openbsd-67e6d06a9ebf2b15210170404d90e40af3a4aa05.zip
Minor cleanup:
Improve the one-line description. Use the standard wordings in some places. Complete the RETURN VALUES section.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/X509_PUBKEY_new.336
1 files changed, 19 insertions, 17 deletions
diff --git a/src/lib/libcrypto/man/X509_PUBKEY_new.3 b/src/lib/libcrypto/man/X509_PUBKEY_new.3
index 0475fe65b2..7ed3e68b2e 100644
--- a/src/lib/libcrypto/man/X509_PUBKEY_new.3
+++ b/src/lib/libcrypto/man/X509_PUBKEY_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_PUBKEY_new.3,v 1.4 2016/12/25 22:15:10 schwarze Exp $ 1.\" $OpenBSD: X509_PUBKEY_new.3,v 1.5 2016/12/28 14:06:06 schwarze Exp $
2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400
3.\" 3.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
@@ -48,7 +48,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 50.\"
51.Dd $Mdocdate: December 25 2016 $ 51.Dd $Mdocdate: December 28 2016 $
52.Dt X509_PUBKEY_NEW 3 52.Dt X509_PUBKEY_NEW 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -64,7 +64,7 @@
64.Nm i2d_PUBKEY_bio , 64.Nm i2d_PUBKEY_bio ,
65.Nm X509_PUBKEY_set0_param , 65.Nm X509_PUBKEY_set0_param ,
66.Nm X509_PUBKEY_get0_param 66.Nm X509_PUBKEY_get0_param
67.Nd SubjectPublicKeyInfo public key functions 67.Nd X.509 SubjectPublicKeyInfo structure
68.Sh SYNOPSIS 68.Sh SYNOPSIS
69.In openssl/x509.h 69.In openssl/x509.h
70.Ft X509_PUBKEY * 70.Ft X509_PUBKEY *
@@ -152,7 +152,7 @@ If
152.Fa a 152.Fa a
153is a 153is a
154.Dv NULL 154.Dv NULL
155pointer, nothing is done. 155pointer, no action occurs.
156.Pp 156.Pp
157.Fn X509_PUBKEY_set 157.Fn X509_PUBKEY_set
158sets the public key in 158sets the public key in
@@ -183,19 +183,14 @@ decode and encode an
183structure using 183structure using
184.Vt SubjectPublicKeyInfo 184.Vt SubjectPublicKeyInfo
185format. 185format.
186They otherwise follow the conventions of other ASN.1 functions such as 186For details about the semantics, examples, caveats, and bugs, see
187.Xr d2i_X509 3 . 187.Xr ASN1_item_d2i 3 .
188.Pp
189.Fn d2i_PUBKEY_bio , 188.Fn d2i_PUBKEY_bio ,
190.Fn d2i_PUBKEY_fp , 189.Fn d2i_PUBKEY_fp ,
191.Fn i2d_PUBKEY_bio 190.Fn i2d_PUBKEY_bio
192and 191and
193.Fn i2d_PUBKEY_fp 192.Fn i2d_PUBKEY_fp
194are similar to 193are similar except they decode or encode using a
195.Fn d2i_PUBKEY
196and
197.Fn i2d_PUBKEY
198except they decode or encode using a
199.Vt BIO 194.Vt BIO
200or 195or
201.Vt FILE 196.Vt FILE
@@ -243,22 +238,29 @@ returns
243.Dv NULL 238.Dv NULL
244and sets an error code that can be obtained by 239and sets an error code that can be obtained by
245.Xr ERR_get_error 3 . 240.Xr ERR_get_error 3 .
246.Pp
247Otherwise it returns a pointer to the newly allocated structure. 241Otherwise it returns a pointer to the newly allocated structure.
248.Pp 242.Pp
249.Fn X509_PUBKEY_get0 243.Fn X509_PUBKEY_get ,
244.Fn d2i_PUBKEY ,
245.Fn d2i_PUBKEY_bio ,
250and 246and
251.Fn X509_PUBKEY_get 247.Fn d2i_PUBKEY_fp
252return a pointer to an 248return a pointer to an
253.Vt EVP_PKEY 249.Vt EVP_PKEY
254structure or 250structure or
255.Dv NULL 251.Dv NULL
256if an error occurs. 252if an error occurs.
257.Pp 253.Pp
254.Fn i2d_PUBKEY
255returns the number of bytes successfully encoded or a negative value
256if an error occurs.
257.Pp
258.Fn X509_PUBKEY_set , 258.Fn X509_PUBKEY_set ,
259.Fn X509_PUBKEY_set0_param 259.Fn X509_PUBKEY_set0_param ,
260.Fn X509_PUBKEY_get0_param ,
261.Fn i2d_PUBKEY_fp ,
260and 262and
261.Fn X509_PUBKEY_get0_param 263.Fn i2d_PUBKEY_bio
262return 1 for success and 0 if an error occurred. 264return 1 for success and 0 if an error occurred.
263.Sh SEE ALSO 265.Sh SEE ALSO
264.Xr d2i_X509 3 , 266.Xr d2i_X509 3 ,