summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2018-03-18 10:22:09 +0000
committerschwarze <>2018-03-18 10:22:09 +0000
commit93551066da4405c7e070acc4f1811fa018881e1a (patch)
tree4c8792f51ee686ecd8e9c280a72cfea364e5aa4a /src
parent1f61ad11e4b88ba60fa96ceae6f31781ae4999c9 (diff)
downloadopenbsd-93551066da4405c7e070acc4f1811fa018881e1a.tar.gz
openbsd-93551066da4405c7e070acc4f1811fa018881e1a.tar.bz2
openbsd-93551066da4405c7e070acc4f1811fa018881e1a.zip
In x509.h rev. 1.43 2018/03/17 14:55:39, jsing@ provided
X509_PUBKEY_get0(3). Merge the documentation from OpenSSL.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/X509_PUBKEY_new.321
1 files changed, 16 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/X509_PUBKEY_new.3 b/src/lib/libcrypto/man/X509_PUBKEY_new.3
index 2ffc44b3ef..41bd355627 100644
--- a/src/lib/libcrypto/man/X509_PUBKEY_new.3
+++ b/src/lib/libcrypto/man/X509_PUBKEY_new.3
@@ -1,5 +1,5 @@
1.\" $OpenBSD: X509_PUBKEY_new.3,v 1.6 2018/02/14 02:15:46 schwarze Exp $ 1.\" $OpenBSD: X509_PUBKEY_new.3,v 1.7 2018/03/18 10:22:09 schwarze Exp $
2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 2.\" full merge up to: 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>.
5.\" Copyright (c) 2016 The OpenSSL Project. All rights reserved. 5.\" Copyright (c) 2016 The OpenSSL Project. All rights reserved.
@@ -48,13 +48,14 @@
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: February 14 2018 $ 51.Dd $Mdocdate: March 18 2018 $
52.Dt X509_PUBKEY_NEW 3 52.Dt X509_PUBKEY_NEW 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
55.Nm X509_PUBKEY_new , 55.Nm X509_PUBKEY_new ,
56.Nm X509_PUBKEY_free , 56.Nm X509_PUBKEY_free ,
57.Nm X509_PUBKEY_set , 57.Nm X509_PUBKEY_set ,
58.Nm X509_PUBKEY_get0 ,
58.Nm X509_PUBKEY_get , 59.Nm X509_PUBKEY_get ,
59.Nm d2i_PUBKEY , 60.Nm d2i_PUBKEY ,
60.Nm i2d_PUBKEY , 61.Nm i2d_PUBKEY ,
@@ -79,6 +80,10 @@
79.Fa "EVP_PKEY *pkey" 80.Fa "EVP_PKEY *pkey"
80.Fc 81.Fc
81.Ft EVP_PKEY * 82.Ft EVP_PKEY *
83.Fo X509_PUBKEY_get0
84.Fa "X509_PUBKEY *key"
85.Fc
86.Ft EVP_PKEY *
82.Fo X509_PUBKEY_get 87.Fo X509_PUBKEY_get
83.Fa "X509_PUBKEY *key" 88.Fa "X509_PUBKEY *key"
84.Fc 89.Fc
@@ -167,10 +172,15 @@ is not
167.Dv NULL , 172.Dv NULL ,
168any existing public key structure will be freed. 173any existing public key structure will be freed.
169.Pp 174.Pp
170.Fn X509_PUBKEY_get 175.Fn X509_PUBKEY_get0
171returns the public key contained in 176returns the public key contained in
172.Fa key . 177.Fa key .
173The reference 178The returned value is an internal pointer which must not be freed after use.
179.Pp
180.Fn X509_PUBKEY_get
181is similar to
182.Fn X509_PUBKEY_get0
183except that the reference
174count on the returned key is incremented so it must be freed using 184count on the returned key is incremented so it must be freed using
175.Xr EVP_PKEY_free 3 185.Xr EVP_PKEY_free 3
176after use. 186after use.
@@ -240,6 +250,7 @@ and sets an error code that can be obtained by
240.Xr ERR_get_error 3 . 250.Xr ERR_get_error 3 .
241Otherwise it returns a pointer to the newly allocated structure. 251Otherwise it returns a pointer to the newly allocated structure.
242.Pp 252.Pp
253.Fn X509_PUBKEY_get0 ,
243.Fn X509_PUBKEY_get , 254.Fn X509_PUBKEY_get ,
244.Fn d2i_PUBKEY , 255.Fn d2i_PUBKEY ,
245.Fn d2i_PUBKEY_bio , 256.Fn d2i_PUBKEY_bio ,