Make it possible to refer to ERR_R_UI_LIB

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3542)
diff --git a/crypto/err/err.c b/crypto/err/err.c
index 37637a7..4d83024 100644
--- a/crypto/err/err.c
+++ b/crypto/err/err.c
@@ -107,6 +107,7 @@
     {ERR_R_PKCS7_LIB, "PKCS7 lib"},
     {ERR_R_X509V3_LIB, "X509V3 lib"},
     {ERR_R_ENGINE_LIB, "ENGINE lib"},
+    {ERR_R_UI_LIB, "UI lib"},
     {ERR_R_ECDSA_LIB, "ECDSA lib"},
 
     {ERR_R_NESTED_ASN1_ERROR, "nested asn1 error"},
diff --git a/include/openssl/err.h b/include/openssl/err.h
index e60640b..4020f42 100644
--- a/include/openssl/err.h
+++ b/include/openssl/err.h
@@ -181,6 +181,7 @@
 # define ERR_R_PKCS7_LIB ERR_LIB_PKCS7/* 33 */
 # define ERR_R_X509V3_LIB ERR_LIB_X509V3/* 34 */
 # define ERR_R_ENGINE_LIB ERR_LIB_ENGINE/* 38 */
+# define ERR_R_UI_LIB    ERR_LIB_UI/* 40 */
 # define ERR_R_ECDSA_LIB ERR_LIB_ECDSA/* 42 */
 
 # define ERR_R_NESTED_ASN1_ERROR                 58