diff options
| author | schwarze <> | 2018-02-15 00:15:29 +0000 |
|---|---|---|
| committer | schwarze <> | 2018-02-15 00:15:29 +0000 |
| commit | efa302e0a959c535c55227e6ef68c29fc4d93b6f (patch) | |
| tree | e42cd0846dbb24745274f8eb09a4b7fc03a1dd1b /src | |
| parent | ce5d68a29b9e09bd63725c5810e4079bd54a2f8b (diff) | |
| download | openbsd-efa302e0a959c535c55227e6ef68c29fc4d93b6f.tar.gz openbsd-efa302e0a959c535c55227e6ef68c29fc4d93b6f.tar.bz2 openbsd-efa302e0a959c535c55227e6ef68c29fc4d93b6f.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')
| -rw-r--r-- | src/lib/libcrypto/man/ASN1_STRING_length.3 | 33 |
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 |
| 134 | returns an internal pointer to the data of | 138 | is similar to |
| 135 | .Fa x . | 139 | .Fn ASN1_STRING_get0_data |
| 136 | It should not be freed or modified in any way. | 140 | except that the returned value is not constant. |
| 141 | This function is deprecated. | ||
| 142 | Applications should use | ||
| 143 | .Fn ASN1_STRING_get0_data | ||
| 144 | instead. | ||
| 137 | .Pp | 145 | .Pp |
| 138 | .Fn ASN1_STRING_dup | 146 | .Fn ASN1_STRING_dup |
| 139 | copies | 147 | copies |
| 140 | .Fa a . | 148 | .Fa a . |
| 141 | .Pp | 149 | .Pp |
| 150 | .Fn ASN1_STRING_get0_data | ||
| 151 | returns an internal pointer to the data of | ||
| 152 | .Fa x . | ||
| 153 | It should not be freed or modified in any way. | ||
| 154 | .Pp | ||
| 142 | .Fn ASN1_STRING_length | 155 | .Fn ASN1_STRING_length |
| 143 | returns the length attribute of | 156 | returns the length attribute of |
| 144 | .Fa x , | 157 | .Fa x , |
| @@ -220,6 +233,8 @@ types: the relevant INTEGER or ENUMERATED utility functions should | |||
| 220 | be used instead. | 233 | be used instead. |
| 221 | .Pp | 234 | .Pp |
| 222 | In general it cannot be assumed that the data returned by | 235 | In general it cannot be assumed that the data returned by |
| 236 | .Fn ASN1_STRING_get0_data | ||
| 237 | and | ||
| 223 | .Fn ASN1_STRING_data | 238 | .Fn ASN1_STRING_data |
| 224 | is NUL terminated, and it may contain embedded NUL characters. | 239 | is NUL terminated, and it may contain embedded NUL characters. |
| 225 | The format of the data depends on the string type: | 240 | The format of the data depends on the string type: |
| @@ -246,7 +261,9 @@ In contrast to | |||
| 246 | the sign of the return value does not indicate lexicographical ordering. | 261 | the sign of the return value does not indicate lexicographical ordering. |
| 247 | .Pp | 262 | .Pp |
| 248 | .Fn ASN1_STRING_data | 263 | .Fn ASN1_STRING_data |
| 249 | returns an internal pointer to the data of | 264 | and |
| 265 | .Fn ASN1_STRING_get0_data | ||
| 266 | return 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 |
