To add a new error code, you only need to use it in the source code and then run the error generation script. The script will automatically define it in the header and update the error database.
Use the Error Code:
EVP_R_NEW_ERROR_CODE). It must start with the correct library prefix (e.g., EVP_R_, SSL_R_).Run the Error Generator:
evp, ssl).go run util/make_errors.go evp
#define to the appropriate header in include/openssl..errordata file in crypto/err.