From 2ee2b74cc7b78d2fd3c15dab08adb76fee6249f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C4=8Cestm=C3=ADr=20Kalina?= Date: Fri, 2 Dec 2022 16:53:57 +0100 Subject: [PATCH] crypto/err: expand on error code generation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Čestmír Kalina Reviewed-by: Paul Dale Reviewed-by: Richard Levitte Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/19823) --- crypto/err/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crypto/err/README.md b/crypto/err/README.md index 78085b37799..477dffa2ad3 100644 --- a/crypto/err/README.md +++ b/crypto/err/README.md @@ -42,3 +42,14 @@ The generated C error code file `xxx_err.c` will load the header files `stdio.h`, `openssl/err.h` and `openssl/xxx.h` so the header file must load any additional header files containing any definitions it uses. + +Adding new error codes +====================== + +Instead of manually adding error codes into `crypto/err/openssl.txt`, +it is recommended to leverage `make update` for error code generation. +The target will process relevant sources and generate error codes for +any *used* error codes. + +If an error code is added manually into `crypto/err/openssl.txt`, +subsequent `make update` has no effect. -- 2.47.3