summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-08-02 21:38:37 +0100
committerDr. Stephen Henson <steve@openssl.org>2016-08-04 17:34:28 +0100
commit20fc103f782bb0bcd41d211c6423187b02146b9d (patch)
tree1114ec92316d1f4288810078bcfd8849d80d4617 /include
parentacc00492130d53d2d6a25bbe5409240aeba98420 (diff)
Limit status message sisze in ts_get_status_check
Thanks to Shi Lei for reporting this issue. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'include')
-rw-r--r--include/openssl/ts.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openssl/ts.h b/include/openssl/ts.h
index db8247482b..cd8f373c4c 100644
--- a/include/openssl/ts.h
+++ b/include/openssl/ts.h
@@ -346,6 +346,9 @@ int TS_RESP_CTX_set_clock_precision_digits(TS_RESP_CTX *ctx,
/* At most we accept usec precision. */
# define TS_MAX_CLOCK_PRECISION_DIGITS 6
+/* Maximum status message length */
+# define TS_MAX_STATUS_LENGTH (1024 * 1024)
+
/* No flags are set by default. */
void TS_RESP_CTX_add_flags(TS_RESP_CTX *ctx, int flags);