diff options
Diffstat (limited to 'src/lib/libcrypto/man/ASN1_STRING_length.3')
-rw-r--r-- | src/lib/libcrypto/man/ASN1_STRING_length.3 | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/lib/libcrypto/man/ASN1_STRING_length.3 b/src/lib/libcrypto/man/ASN1_STRING_length.3 index f43d61819f..2c797481d7 100644 --- a/src/lib/libcrypto/man/ASN1_STRING_length.3 +++ b/src/lib/libcrypto/man/ASN1_STRING_length.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: ASN1_STRING_length.3,v 1.5 2016/11/10 11:44:52 schwarze Exp $ | 1 | .\" $OpenBSD: ASN1_STRING_length.3,v 1.6 2016/12/25 22:15:10 schwarze Exp $ |
2 | .\" OpenSSL 99d63d46 Tue Jun 21 07:03:34 2016 -0400 | 2 | .\" OpenSSL 99d63d46 Tue Jun 21 07:03:34 2016 -0400 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Dr. Stephen Henson. | 4 | .\" This file was written by Dr. Stephen Henson. |
@@ -49,7 +49,7 @@ | |||
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: November 10 2016 $ | 52 | .Dd $Mdocdate: December 25 2016 $ |
53 | .Dt ASN1_STRING_LENGTH 3 | 53 | .Dt ASN1_STRING_LENGTH 3 |
54 | .Os | 54 | .Os |
55 | .Sh NAME | 55 | .Sh NAME |
@@ -182,12 +182,11 @@ and the functions call the | |||
182 | .Vt ASN1_STRING | 182 | .Vt ASN1_STRING |
183 | equivalents. | 183 | equivalents. |
184 | .Vt ASN1_STRING | 184 | .Vt ASN1_STRING |
185 | is also used for some | 185 | is also used for some CHOICE types which consist entirely of primitive |
186 | .Sy CHOICE | 186 | string types such as |
187 | types which consist entirely of primitive string types such as | 187 | .Vt DirectoryString |
188 | .Sy DirectoryString | ||
189 | and | 188 | and |
190 | .Sy Time . | 189 | .Vt Time . |
191 | .Pp | 190 | .Pp |
192 | These functions should | 191 | These functions should |
193 | .Em not | 192 | .Em not |
@@ -195,19 +194,20 @@ be used to examine or modify | |||
195 | .Vt ASN1_INTEGER | 194 | .Vt ASN1_INTEGER |
196 | or | 195 | or |
197 | .Vt ASN1_ENUMERATED | 196 | .Vt ASN1_ENUMERATED |
198 | types: the relevant | 197 | types: the relevant INTEGER or ENUMERATED utility functions should |
199 | .Sy INTEGER | 198 | be used instead. |
200 | or | ||
201 | .Sy ENUMERATED | ||
202 | utility functions should be used instead. | ||
203 | .Pp | 199 | .Pp |
204 | In general it cannot be assumed that the data returned by | 200 | In general it cannot be assumed that the data returned by |
205 | .Fn ASN1_STRING_data | 201 | .Fn ASN1_STRING_data |
206 | is NUL terminated, and it may contain embedded NUL characters. | 202 | is NUL terminated, and it may contain embedded NUL characters. |
207 | The actual format of the data will depend on the actual string type itself: | 203 | The actual format of the data will depend on the actual string type itself: |
208 | for example for an IA5String the data will be ASCII, | 204 | for example for an |
209 | for a BMPString two bytes per character in big endian format, | 205 | .Vt IA5String |
210 | UTF8String will be in UTF8 format. | 206 | the data will be ASCII, for a |
207 | .Vt BMPString | ||
208 | two bytes per character in big endian format, and a | ||
209 | .Vt UTF8String | ||
210 | will be in UTF8 format. | ||
211 | .Pp | 211 | .Pp |
212 | Similar care should be take to ensure the data is in the correct format | 212 | Similar care should be take to ensure the data is in the correct format |
213 | when calling | 213 | when calling |