summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2016-12-15 22:24:45 +0000
committerschwarze <>2016-12-15 22:24:45 +0000
commitdf4b62802b03e41a2b5b4f8343fcf1631e0f304d (patch)
tree11209aed34713fd4afafcdc0c940965156908164 /src/lib
parentf8b9bcc6c0e67256ec3302522606313e3d516ec4 (diff)
downloadopenbsd-df4b62802b03e41a2b5b4f8343fcf1631e0f304d.tar.gz
openbsd-df4b62802b03e41a2b5b4f8343fcf1631e0f304d.tar.bz2
openbsd-df4b62802b03e41a2b5b4f8343fcf1631e0f304d.zip
Add a STANDARDS section and mention the relevant section of the standard.
Link to X509_ALGOR_new(3) because one of the functions uses X509_ALGOR. Delete a sentence about a function we don't have. Delete another sentence that says nothing new. Remove some macros that we don't normally use.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/X509_PUBKEY_new.327
1 files changed, 9 insertions, 18 deletions
diff --git a/src/lib/libcrypto/man/X509_PUBKEY_new.3 b/src/lib/libcrypto/man/X509_PUBKEY_new.3
index 7ed923ac21..cd178a1ee0 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.2 2016/12/05 16:38:24 jmc Exp $ 1.\" $OpenBSD: X509_PUBKEY_new.3,v 1.3 2016/12/15 22:24:45 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 5 2016 $ 51.Dd $Mdocdate: December 15 2016 $
52.Dt X509_PUBKEY_NEW 3 52.Dt X509_PUBKEY_NEW 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -133,9 +133,8 @@
133.Sh DESCRIPTION 133.Sh DESCRIPTION
134The 134The
135.Vt X509_PUBKEY 135.Vt X509_PUBKEY
136structure represents the ASN.1 136structure represents the ASN.1 SubjectPublicKeyInfo structure defined
137.Sy SubjectPublicKeyInfo 137in RFC 5280 section 4.1 and used in certificates and certificate
138structure defined in RFC 5280 and used in certificates and certificate
139requests. 138requests.
140.Pp 139.Pp
141.Fn X509_PUBKEY_new 140.Fn X509_PUBKEY_new
@@ -180,9 +179,7 @@ and
180.Fn i2d_PUBKEY 179.Fn i2d_PUBKEY
181decode and encode an 180decode and encode an
182.Vt EVP_PKEY 181.Vt EVP_PKEY
183structure using 182structure using SubjectPublicKeyInfo format.
184.Sy SubjectPublicKeyInfo
185format.
186They otherwise follow the conventions of other ASN.1 functions such as 183They otherwise follow the conventions of other ASN.1 functions such as
187.Xr d2i_X509 3 . 184.Xr d2i_X509 3 .
188.Pp 185.Pp
@@ -234,16 +231,6 @@ it can be set to
234.Dv NULL . 231.Dv NULL .
235All of the retrieved pointers are internal and must not be freed after 232All of the retrieved pointers are internal and must not be freed after
236the call. 233the call.
237.Pp
238The
239.Vt X509_PUBKEY
240functions can be used to encode and decode public keys in a standard
241format.
242.Pp
243In many cases applications will not call the
244.Vt X509_PUBKEY
245functions directly: they will instead call wrapper functions such as
246.Xr X509_get0_pubkey 3 .
247.Sh RETURN VALUES 234.Sh RETURN VALUES
248If the allocation fails, 235If the allocation fails,
249.Fn X509_PUBKEY_new 236.Fn X509_PUBKEY_new
@@ -271,4 +258,8 @@ return 1 for success and 0 if an error occurred.
271.Sh SEE ALSO 258.Sh SEE ALSO
272.Xr d2i_X509 3 , 259.Xr d2i_X509 3 ,
273.Xr ERR_get_error 3 , 260.Xr ERR_get_error 3 ,
261.Xr X509_ALGOR_new 3 ,
274.Xr X509_get_pubkey 3 262.Xr X509_get_pubkey 3
263.Sh STANDARDS
264RFC 5280: Internet X.509 Public Key Infrastructure Certificate and
265Certificate Revocation List (CRL) Profile