diff options
| author | cvs2svn <admin@example.com> | 2021-08-18 16:06:57 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2021-08-18 16:06:57 +0000 |
| commit | d56c8fa8260d226f98b26f017b45b9c2b135f38d (patch) | |
| tree | 348178b41617813cc93787187984a734ef8379ca /src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3 | |
| parent | 18b9c1bcab7c37d8c5bd05b8e0d14d0c59d96650 (diff) | |
| download | openbsd-tb_20210818.tar.gz openbsd-tb_20210818.tar.bz2 openbsd-tb_20210818.zip | |
This commit was manufactured by cvs2git to create tag 'tb_20210818'.tb_20210818
Diffstat (limited to 'src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3')
| -rw-r--r-- | src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3 | 101 |
1 files changed, 0 insertions, 101 deletions
diff --git a/src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3 b/src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3 deleted file mode 100644 index c4ae6c9bfa..0000000000 --- a/src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3 +++ /dev/null | |||
| @@ -1,101 +0,0 @@ | |||
| 1 | .\" $OpenBSD: ASN1_STRING_TABLE_add.3,v 1.4 2019/06/14 13:59:32 schwarze Exp $ | ||
| 2 | .\" OpenSSL ASN1_STRING_TABLE_add.pod 7b608d08 Jul 27 01:18:50 2017 +0800 | ||
| 3 | .\" | ||
| 4 | .\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> | ||
| 5 | .\" | ||
| 6 | .\" Permission to use, copy, modify, and distribute this software for any | ||
| 7 | .\" purpose with or without fee is hereby granted, provided that the above | ||
| 8 | .\" copyright notice and this permission notice appear in all copies. | ||
| 9 | .\" | ||
| 10 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 11 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 12 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 13 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 14 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 15 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 16 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 17 | .\" | ||
| 18 | .Dd $Mdocdate: June 14 2019 $ | ||
| 19 | .Dt ASN1_STRING_TABLE_ADD 3 | ||
| 20 | .Os | ||
| 21 | .Sh NAME | ||
| 22 | .Nm ASN1_STRING_TABLE_add , | ||
| 23 | .Nm ASN1_STRING_TABLE_get , | ||
| 24 | .Nm ASN1_STRING_TABLE_cleanup | ||
| 25 | .Nd maintain the global ASN.1 string table | ||
| 26 | .Sh SYNOPSIS | ||
| 27 | .In openssl/asn1.h | ||
| 28 | .Ft int | ||
| 29 | .Fo ASN1_STRING_TABLE_add | ||
| 30 | .Fa "int nid" | ||
| 31 | .Fa "long minsize" | ||
| 32 | .Fa "long maxsize" | ||
| 33 | .Fa "unsigned long mask" | ||
| 34 | .Fa "unsigned long flags" | ||
| 35 | .Fc | ||
| 36 | .Ft ASN1_STRING_TABLE * | ||
| 37 | .Fo ASN1_STRING_TABLE_get | ||
| 38 | .Fa "int nid" | ||
| 39 | .Fc | ||
| 40 | .Ft void | ||
| 41 | .Fn ASN1_STRING_TABLE_cleanup void | ||
| 42 | .Sh DESCRIPTION | ||
| 43 | The ASN.1 string table is a unique global object. | ||
| 44 | Each entry is of the type | ||
| 45 | .Vt ASN1_STRING_TABLE | ||
| 46 | and contains information about one NID object. | ||
| 47 | Some entries are predefined according to RFC 3280 appendix A.1. | ||
| 48 | .Pp | ||
| 49 | The function | ||
| 50 | .Fn ASN1_STRING_TABLE_add | ||
| 51 | changes the existing entry for | ||
| 52 | .Fa nid | ||
| 53 | or, if there is none, allocates a new entry. | ||
| 54 | Each field of the entry is modified according to the function argument | ||
| 55 | of the same name. | ||
| 56 | The | ||
| 57 | .Fa minsize | ||
| 58 | and | ||
| 59 | .Fa maxsize | ||
| 60 | arguments overwrite the existing fields unless they are \-1. | ||
| 61 | The | ||
| 62 | .Fa mask | ||
| 63 | argument always overwrites the existing field. | ||
| 64 | The bits set in the | ||
| 65 | .Fa flags | ||
| 66 | argument are OR'ed into the existing field. | ||
| 67 | No useful flags are currently defined, so passing 0 is recommended. | ||
| 68 | .Pp | ||
| 69 | The function | ||
| 70 | .Fn ASN1_STRING_TABLE_get | ||
| 71 | retrieves the entry for | ||
| 72 | .Fa nid . | ||
| 73 | .Pp | ||
| 74 | The function | ||
| 75 | .Fn ASN1_STRING_TABLE_cleanup | ||
| 76 | removes and frees all entries except the predefined ones. | ||
| 77 | .Sh RETURN VALUES | ||
| 78 | The | ||
| 79 | .Fn ASN1_STRING_TABLE_add | ||
| 80 | function returns 1 if successful; otherwise 0 is returned | ||
| 81 | and an error code can be retrieved with | ||
| 82 | .Xr ERR_get_error 3 . | ||
| 83 | .Pp | ||
| 84 | .Fn ASN1_STRING_TABLE_get | ||
| 85 | returns a valid | ||
| 86 | .Vt ASN1_STRING_TABLE | ||
| 87 | structure or | ||
| 88 | .Dv NULL | ||
| 89 | if nothing is found. | ||
| 90 | .Sh SEE ALSO | ||
| 91 | .Xr ASN1_OBJECT_new 3 , | ||
| 92 | .Xr OBJ_nid2obj 3 | ||
| 93 | .Sh HISTORY | ||
| 94 | .Fn ASN1_STRING_TABLE_add , | ||
| 95 | .Fn ASN1_STRING_TABLE_get , | ||
| 96 | and | ||
| 97 | .Fn ASN1_STRING_TABLE_cleanup | ||
| 98 | first appeared in OpenSSL 0.9.5 and have been available since | ||
| 99 | .Ox 2.7 . | ||
| 100 | .Sh BUGS | ||
| 101 | Most aspects of the semantics considerably differ from OpenSSL. | ||
