]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
err: add unable to get lock errors
authorPauli <pauli@openssl.org>
Wed, 23 Jun 2021 04:17:59 +0000 (14:17 +1000)
committerPauli <pauli@openssl.org>
Thu, 24 Jun 2021 05:51:48 +0000 (15:51 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15871)

crypto/err/err.c
include/openssl/err.h.in

index 9b1a15d5bdf8bb6ec8f65691a777ad17520e840b..60a9b02d19aaed3af021042649a02a8b0c5e248e 100644 (file)
@@ -127,6 +127,8 @@ static ERR_STRING_DATA ERR_str_reasons[] = {
     {ERR_R_FETCH_FAILED, "fetch failed"},
 
     {ERR_R_INVALID_PROPERTY_DEFINITION, "invalid property definition"},
+    {ERR_R_UNABLE_TO_GET_READ_LOCK, "unable to get read lock"},
+    {ERR_R_UNABLE_TO_GET_WRITE_LOCK, "unable to get write lock"},
     {0, NULL},
 };
 #endif
index 4bc5d1eea56e02eaa300cf4173d7f3b85ae781a9..306656a2c102e23245575e54418b93feb4fb7dc9 100644 (file)
@@ -358,6 +358,8 @@ static ossl_unused ossl_inline int ERR_COMMON_ERROR(unsigned long errcode)
 # define ERR_R_UNSUPPORTED                       (268|ERR_RFLAG_COMMON)
 # define ERR_R_FETCH_FAILED                      (269|ERR_RFLAG_COMMON)
 # define ERR_R_INVALID_PROPERTY_DEFINITION       (270|ERR_RFLAG_COMMON)
+# define ERR_R_UNABLE_TO_GET_READ_LOCK           (271|ERR_R_FATAL)
+# define ERR_R_UNABLE_TO_GET_WRITE_LOCK          (272|ERR_R_FATAL)
 
 typedef struct ERR_string_data_st {
     unsigned long error;