diff options
| author | kn <> | 2022-09-06 10:22:31 +0000 |
|---|---|---|
| committer | kn <> | 2022-09-06 10:22:31 +0000 |
| commit | bbf7852034c553a89677623e9143415936a0a52c (patch) | |
| tree | c06dad03e384534b4a3c61a979cf0dab55bf7806 /src | |
| parent | 1c8585bc0b01126bec60e2c255834e74628926a2 (diff) | |
| download | openbsd-bbf7852034c553a89677623e9143415936a0a52c.tar.gz openbsd-bbf7852034c553a89677623e9143415936a0a52c.tar.bz2 openbsd-bbf7852034c553a89677623e9143415936a0a52c.zip | |
Remove more mkerr.pl remnants, missed in previous
Noticed by jsg
Feedback OK jsg
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/ERR.3 | 57 |
1 files changed, 3 insertions, 54 deletions
diff --git a/src/lib/libcrypto/man/ERR.3 b/src/lib/libcrypto/man/ERR.3 index b1be67a037..e6b1031a14 100644 --- a/src/lib/libcrypto/man/ERR.3 +++ b/src/lib/libcrypto/man/ERR.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: ERR.3,v 1.9 2022/07/12 14:42:49 kn Exp $ | 1 | .\" $OpenBSD: ERR.3,v 1.10 2022/09/06 10:22:31 kn Exp $ |
| 2 | .\" OpenSSL 186bb907 Apr 13 11:05:13 2015 -0700 | 2 | .\" OpenSSL 186bb907 Apr 13 11:05:13 2015 -0700 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> and | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> and |
| @@ -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: July 12 2022 $ | 52 | .Dd $Mdocdate: September 6 2022 $ |
| 53 | .Dt ERR 3 | 53 | .Dt ERR 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| @@ -113,61 +113,10 @@ to the | |||
| 113 | .Fn ERR_load_crypto_strings | 113 | .Fn ERR_load_crypto_strings |
| 114 | function (in | 114 | function (in |
| 115 | .Sy /usr/src/lib/libcrypto/err/err_all.c ) . | 115 | .Sy /usr/src/lib/libcrypto/err/err_all.c ) . |
| 116 | Finally, add an entry | 116 | Finally, add |
| 117 | .Pp | ||
| 118 | .Dl L XXX xxx.h xxx_err.c | ||
| 119 | .Pp | ||
| 120 | to | ||
| 121 | .Sy /usr/src/lib/libcrypto/err/openssl.ec , | ||
| 122 | and add | ||
| 123 | .Pa xxx_err.c | 117 | .Pa xxx_err.c |
| 124 | to the | 118 | to the |
| 125 | .Pa Makefile . | 119 | .Pa Makefile . |
| 126 | Running | ||
| 127 | .Sy make errors | ||
| 128 | will then generate a file | ||
| 129 | .Pa xxx_err.c , | ||
| 130 | and add all error codes used in the library to | ||
| 131 | .Pa xxx.h . | ||
| 132 | .Pp | ||
| 133 | Additionally the library include file must have a certain form. | ||
| 134 | Typically it will initially look like this: | ||
| 135 | .Bd -literal -offset indent | ||
| 136 | #ifndef HEADER_XXX_H | ||
| 137 | #define HEADER_XXX_H | ||
| 138 | |||
| 139 | #ifdef __cplusplus | ||
| 140 | extern "C" { | ||
| 141 | #endif | ||
| 142 | |||
| 143 | /* Include files */ | ||
| 144 | |||
| 145 | #include <openssl/bio.h> | ||
| 146 | #include <openssl/x509.h> | ||
| 147 | |||
| 148 | /* Macros, structures and function prototypes */ | ||
| 149 | |||
| 150 | /* BEGIN ERROR CODES */ | ||
| 151 | .Ed | ||
| 152 | .Pp | ||
| 153 | The | ||
| 154 | .Sy BEGIN ERROR CODES | ||
| 155 | sequence is used by the error code generation script as the point to | ||
| 156 | place new error codes. | ||
| 157 | Any text after this point will be overwritten when | ||
| 158 | .Sy make errors | ||
| 159 | is run. | ||
| 160 | The closing #endif etc. will be automatically added by the script. | ||
| 161 | .Pp | ||
| 162 | The generated C error code file | ||
| 163 | .Pa xxx_err.c | ||
| 164 | will load the header files | ||
| 165 | .In stdio.h , | ||
| 166 | .In openssl/err.h | ||
| 167 | and | ||
| 168 | .In openssl/xxx.h | ||
| 169 | so the header file must load any additional header files containing any | ||
| 170 | definitions it uses. | ||
| 171 | .Sh USING ERROR CODES IN EXTERNAL LIBRARIES | 120 | .Sh USING ERROR CODES IN EXTERNAL LIBRARIES |
| 172 | It is also possible to use OpenSSL's error code scheme in external | 121 | It is also possible to use OpenSSL's error code scheme in external |
| 173 | libraries. | 122 | libraries. |
