Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Sikora <piotr@cloudflare.com>2014-07-15 07:31:27 +0400
committerAdam Langley <agl@google.com>2014-07-28 23:00:28 +0400
commitc3e431762aea5cc2f739bb7fbcf0cb55c4f831a3 (patch)
tree2f265adbfeff088077a6d4e50883404bf7c018f1 /include/openssl/err.h
parent987b8f1e715414b0b278a4a0c64ec9c97ad65f58 (diff)
Add OpenSSL-compatible alias for ERR_FLAG_STRING flag.
A lot of applications use ERR_TXT_STRING flag in order to determine whether the error string is printable or not. Change-Id: Ic79cdb55d43fdfac48da5de5e18c0c9c03c8f747 Signed-off-by: Piotr Sikora <piotr@cloudflare.com> Reviewed-on: https://boringssl-review.googlesource.com/1192 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/err.h')
-rw-r--r--include/openssl/err.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openssl/err.h b/include/openssl/err.h
index 891fb3e7..82f51a6d 100644
--- a/include/openssl/err.h
+++ b/include/openssl/err.h
@@ -324,6 +324,9 @@ struct err_error_st {
/* ERR_FLAG_STRING means that the |data| member is a NUL-terminated string that
* can be printed. */
#define ERR_FLAG_STRING 2
+/* ERR_TXT_STRING is provided for compatibility with code that assumes that
+ * it's using OpenSSL. */
+#define ERR_TXT_STRING ERR_FLAG_STRING
/* ERR_FLAG_PUBLIC_MASK is applied to the flags field before it is returned
* from functions like |ERR_get_error_line_data|. */