summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2018-02-15 00:15:29 +0000
committerschwarze <>2018-02-15 00:15:29 +0000
commit1bfd232132d7c24eee16a32a6ab6acc9e9bf1bc9 (patch)
treee42cd0846dbb24745274f8eb09a4b7fc03a1dd1b /src/lib
parent0e96b32166e48552b13a1ae7d14c24c0c2293283 (diff)
downloadopenbsd-1bfd232132d7c24eee16a32a6ab6acc9e9bf1bc9.tar.gz
openbsd-1bfd232132d7c24eee16a32a6ab6acc9e9bf1bc9.tar.bz2
openbsd-1bfd232132d7c24eee16a32a6ab6acc9e9bf1bc9.zip
In asn1.h rev. 1.44 2018/02/14 16:46:04, jsing@
provided ASN1_STRING_get0_data(3). Merge the corresponding documentation from OpenSSL.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/ASN1_STRING_length.333
1 files changed, 25 insertions, 8 deletions
diff --git a/src/lib/libcrypto/man/ASN1_STRING_length.3 b/src/lib/libcrypto/man/ASN1_STRING_length.3
index 398d49eee4..255daec9c6 100644
--- a/src/lib/libcrypto/man/ASN1_STRING_length.3
+++ b/src/lib/libcrypto/man/ASN1_STRING_length.3
@@ -1,6 +1,5 @@
1.\" $OpenBSD: ASN1_STRING_length.3,v 1.7 2018/02/12 15:45:12 schwarze Exp $ 1.\" $OpenBSD: ASN1_STRING_length.3,v 1.8 2018/02/15 00:15:29 schwarze Exp $
2.\" full merge up to: OpenSSL 99d63d46 Tue Jun 21 07:03:34 2016 -0400 2.\" full merge up to: OpenSSL 61f805c1 Jan 16 01:01:46 2018 +0800
3.\" selective merge up to: OpenSSL 61f805c1 Jan 16 01:01:46 2018 +0800
4.\" 3.\"
5.\" This file is a derived work. 4.\" This file is a derived work.
6.\" The changes are covered by the following Copyright and license: 5.\" The changes are covered by the following Copyright and license:
@@ -67,13 +66,14 @@
67.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 66.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
68.\" OF THE POSSIBILITY OF SUCH DAMAGE. 67.\" OF THE POSSIBILITY OF SUCH DAMAGE.
69.\" 68.\"
70.Dd $Mdocdate: February 12 2018 $ 69.Dd $Mdocdate: February 15 2018 $
71.Dt ASN1_STRING_LENGTH 3 70.Dt ASN1_STRING_LENGTH 3
72.Os 71.Os
73.Sh NAME 72.Sh NAME
74.Nm ASN1_STRING_cmp , 73.Nm ASN1_STRING_cmp ,
75.Nm ASN1_STRING_data , 74.Nm ASN1_STRING_data ,
76.Nm ASN1_STRING_dup , 75.Nm ASN1_STRING_dup ,
76.Nm ASN1_STRING_get0_data ,
77.Nm ASN1_STRING_length , 77.Nm ASN1_STRING_length ,
78.Nm ASN1_STRING_length_set , 78.Nm ASN1_STRING_length_set ,
79.Nm ASN1_STRING_set , 79.Nm ASN1_STRING_set ,
@@ -95,6 +95,10 @@
95.Fo ASN1_STRING_dup 95.Fo ASN1_STRING_dup
96.Fa "ASN1_STRING *a" 96.Fa "ASN1_STRING *a"
97.Fc 97.Fc
98.Ft const unsigned char *
99.Fo ASN1_STRING_get0_data
100.Fa "const ASN1_STRING *x"
101.Fc
98.Ft int 102.Ft int
99.Fo ASN1_STRING_length 103.Fo ASN1_STRING_length
100.Fa "ASN1_STRING *x" 104.Fa "ASN1_STRING *x"
@@ -131,14 +135,23 @@ and
131.Fa b . 135.Fa b .
132.Pp 136.Pp
133.Fn ASN1_STRING_data 137.Fn ASN1_STRING_data
134returns an internal pointer to the data of 138is similar to
135.Fa x . 139.Fn ASN1_STRING_get0_data
136It should not be freed or modified in any way. 140except that the returned value is not constant.
141This function is deprecated.
142Applications should use
143.Fn ASN1_STRING_get0_data
144instead.
137.Pp 145.Pp
138.Fn ASN1_STRING_dup 146.Fn ASN1_STRING_dup
139copies 147copies
140.Fa a . 148.Fa a .
141.Pp 149.Pp
150.Fn ASN1_STRING_get0_data
151returns an internal pointer to the data of
152.Fa x .
153It should not be freed or modified in any way.
154.Pp
142.Fn ASN1_STRING_length 155.Fn ASN1_STRING_length
143returns the length attribute of 156returns the length attribute of
144.Fa x , 157.Fa x ,
@@ -220,6 +233,8 @@ types: the relevant INTEGER or ENUMERATED utility functions should
220be used instead. 233be used instead.
221.Pp 234.Pp
222In general it cannot be assumed that the data returned by 235In general it cannot be assumed that the data returned by
236.Fn ASN1_STRING_get0_data
237and
223.Fn ASN1_STRING_data 238.Fn ASN1_STRING_data
224is NUL terminated, and it may contain embedded NUL characters. 239is NUL terminated, and it may contain embedded NUL characters.
225The format of the data depends on the string type: 240The format of the data depends on the string type:
@@ -246,7 +261,9 @@ In contrast to
246the sign of the return value does not indicate lexicographical ordering. 261the sign of the return value does not indicate lexicographical ordering.
247.Pp 262.Pp
248.Fn ASN1_STRING_data 263.Fn ASN1_STRING_data
249returns an internal pointer to the data of 264and
265.Fn ASN1_STRING_get0_data
266return an internal pointer to the data of
250.Fa x . 267.Fa x .
251.Pp 268.Pp
252.Fn ASN1_STRING_dup 269.Fn ASN1_STRING_dup