summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2018-02-24 23:42:40 +0000
committerschwarze <>2018-02-24 23:42:40 +0000
commit805879b6ec72d79ca47323f19a352a45a1566b71 (patch)
tree9485b2b51ad817fa2e6e2685f6f089bb5691468d
parent866b37d05210e70dce3910ecb52606722b7a342b (diff)
downloadopenbsd-805879b6ec72d79ca47323f19a352a45a1566b71.tar.gz
openbsd-805879b6ec72d79ca47323f19a352a45a1566b71.tar.bz2
openbsd-805879b6ec72d79ca47323f19a352a45a1566b71.zip
In x509.h rev. 1.34 2018/02/22 16:50:30, jsing@ provided
X509_REQ_get_signature_nid(3), in rev. 1.36 2018/02/22 16:58:45 X509_CRL_get_signature_nid(3), and in rev. 1.40 2018/02/22 17:09:28 X509_get0_tbs_sigalg(3). Merge the documentation from OpenSSL.
-rw-r--r--src/lib/libcrypto/man/X509_ALGOR_dup.35
-rw-r--r--src/lib/libcrypto/man/X509_get0_signature.345
2 files changed, 42 insertions, 8 deletions
diff --git a/src/lib/libcrypto/man/X509_ALGOR_dup.3 b/src/lib/libcrypto/man/X509_ALGOR_dup.3
index b1a28e11ba..a4450420a1 100644
--- a/src/lib/libcrypto/man/X509_ALGOR_dup.3
+++ b/src/lib/libcrypto/man/X509_ALGOR_dup.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_ALGOR_dup.3,v 1.5 2016/12/25 22:15:10 schwarze Exp $ 1.\" $OpenBSD: X509_ALGOR_dup.3,v 1.6 2018/02/24 23:42:40 schwarze Exp $
2.\" OpenSSL 4692340e Jun 7 15:49:08 2016 -0400 2.\" OpenSSL 4692340e Jun 7 15:49:08 2016 -0400
3.\" 3.\"
4.\" This file is a derived work. 4.\" This file is a derived work.
@@ -65,7 +65,7 @@
65.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 65.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
66.\" OF THE POSSIBILITY OF SUCH DAMAGE. 66.\" OF THE POSSIBILITY OF SUCH DAMAGE.
67.\" 67.\"
68.Dd $Mdocdate: December 25 2016 $ 68.Dd $Mdocdate: February 24 2018 $
69.Dt X509_ALGOR_DUP 3 69.Dt X509_ALGOR_DUP 3
70.Os 70.Os
71.Sh NAME 71.Sh NAME
@@ -207,6 +207,7 @@ have identical encodings or non-zero otherwise.
207.Sh SEE ALSO 207.Sh SEE ALSO
208.Xr ASN1_TYPE_set 3 , 208.Xr ASN1_TYPE_set 3 ,
209.Xr d2i_X509_ALGOR 3 , 209.Xr d2i_X509_ALGOR 3 ,
210.Xr X509_get0_signature 3 ,
210.Xr X509_PUBKEY_get0_param 3 211.Xr X509_PUBKEY_get0_param 3
211.Sh STANDARDS 212.Sh STANDARDS
212RFC 5280: Internet X.509 Public Key Infrastructure Certificate and 213RFC 5280: Internet X.509 Public Key Infrastructure Certificate and
diff --git a/src/lib/libcrypto/man/X509_get0_signature.3 b/src/lib/libcrypto/man/X509_get0_signature.3
index 2d0f55ebb9..374ee15641 100644
--- a/src/lib/libcrypto/man/X509_get0_signature.3
+++ b/src/lib/libcrypto/man/X509_get0_signature.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_get0_signature.3,v 1.2 2018/02/22 16:26:27 schwarze Exp $ 1.\" $OpenBSD: X509_get0_signature.3,v 1.3 2018/02/24 23:42:40 schwarze Exp $
2.\" selective merge up to: 2.\" selective merge up to:
3.\" OpenSSL man3/X509_get0_signature 2f7a2520 Apr 25 17:28:08 2017 +0100 3.\" OpenSSL man3/X509_get0_signature 2f7a2520 Apr 25 17:28:08 2017 +0100
4.\" 4.\"
@@ -49,14 +49,17 @@
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 51.\"
52.Dd $Mdocdate: February 22 2018 $ 52.Dd $Mdocdate: February 24 2018 $
53.Dt X509_GET0_SIGNATURE 3 53.Dt X509_GET0_SIGNATURE 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
56.Nm X509_get0_signature , 56.Nm X509_get0_signature ,
57.Nm X509_REQ_get0_signature , 57.Nm X509_REQ_get0_signature ,
58.Nm X509_CRL_get0_signature , 58.Nm X509_CRL_get0_signature ,
59.Nm X509_get_signature_nid 59.Nm X509_get0_tbs_sigalg ,
60.Nm X509_get_signature_nid ,
61.Nm X509_REQ_get_signature_nid ,
62.Nm X509_CRL_get_signature_nid
60.Nd signature information 63.Nd signature information
61.Sh SYNOPSIS 64.Sh SYNOPSIS
62.In openssl/x509.h 65.In openssl/x509.h
@@ -78,10 +81,22 @@
78.Fa "const ASN1_BIT_STRING **psig" 81.Fa "const ASN1_BIT_STRING **psig"
79.Fa "const X509_ALGOR **palg" 82.Fa "const X509_ALGOR **palg"
80.Fc 83.Fc
84.Ft const X509_ALGOR *
85.Fo X509_get0_tbs_sigalg
86.Fa "const X509 *x"
87.Fc
81.Ft int 88.Ft int
82.Fo X509_get_signature_nid 89.Fo X509_get_signature_nid
83.Fa "const X509 *x" 90.Fa "const X509 *x"
84.Fc 91.Fc
92.Ft int
93.Fo X509_REQ_get_signature_nid
94.Fa "const X509_REQ *req"
95.Fc
96.Ft int
97.Fo X509_CRL_get_signature_nid
98.Fa "const X509_CRL *crl"
99.Fc
85.Sh DESCRIPTION 100.Sh DESCRIPTION
86.Fn X509_get0_signature , 101.Fn X509_get0_signature ,
87.Fn X509_REQ_get0_signature , 102.Fn X509_REQ_get0_signature ,
@@ -97,12 +112,22 @@ to the signature algorithm of
97or 112or
98.Fa crl , 113.Fa crl ,
99respectively. 114respectively.
115.Fn X509_get0_tbs_sigalg
116returns the signature algorithm in the signed portion of
117.Fa x .
100The values returned are internal pointers 118The values returned are internal pointers
101that must not be freed by the caller. 119that must not be freed by the caller.
102.Pp 120.Pp
103.Fn X509_get_signature_nid 121.Fn X509_get_signature_nid ,
104returns the NID corresponding to the signature algorithm of 122.Fn X509_REQ_get_signature_nid ,
105.Fa x . 123and
124.Fn X509_CRL_get_signature_nid
125return the NID corresponding to the signature algorithm of
126.Fa x ,
127.Fa req ,
128or
129.Fa crl ,
130respectively.
106.Pp 131.Pp
107These functions provide lower level access to the signature 132These functions provide lower level access to the signature
108for cases where an application wishes to analyse or generate a 133for cases where an application wishes to analyse or generate a
@@ -111,6 +136,7 @@ signature in a form where
111is not appropriate, for example in a non-standard or unsupported format. 136is not appropriate, for example in a non-standard or unsupported format.
112.Sh SEE ALSO 137.Sh SEE ALSO
113.Xr OBJ_obj2nid 3 , 138.Xr OBJ_obj2nid 3 ,
139.Xr X509_ALGOR_new 3 ,
114.Xr X509_CRL_get0_by_serial 3 , 140.Xr X509_CRL_get0_by_serial 3 ,
115.Xr X509_CRL_new 3 , 141.Xr X509_CRL_new 3 ,
116.Xr X509_get_pubkey 3 , 142.Xr X509_get_pubkey 3 ,
@@ -125,3 +151,10 @@ is not appropriate, for example in a non-standard or unsupported format.
125and 151and
126.Fn X509_get_signature_nid 152.Fn X509_get_signature_nid
127first appeared in OpenSSL 1.0.2. 153first appeared in OpenSSL 1.0.2.
154.Pp
155.Fn X509_REQ_get0_signature ,
156.Fn X509_CRL_get0_signature ,
157.Fn X509_REQ_get_signature_nid ,
158and
159.Fn X509_CRL_get_signature_nid
160first appeared in OpenSSL 1.1.0.