diff options
author | Raimo Niskanen <[email protected]> | 2019-01-30 11:31:53 +0100 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2019-02-13 14:03:18 +0100 |
commit | 3b31ab5eae6a15f4361098bac20e94e2c018066e (patch) | |
tree | 548970171f21f5827c7f25d188453350cf48d640 /lib/ssl/src/ssl_record.hrl | |
parent | 96209481ad9b1879e1736294a9c9b5c6d853631b (diff) | |
download | otp-3b31ab5eae6a15f4361098bac20e94e2c018066e.tar.gz otp-3b31ab5eae6a15f4361098bac20e94e2c018066e.tar.bz2 otp-3b31ab5eae6a15f4361098bac20e94e2c018066e.zip |
Optimize TLS record parsing with Okasaki queue
Diffstat (limited to 'lib/ssl/src/ssl_record.hrl')
-rw-r--r-- | lib/ssl/src/ssl_record.hrl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_record.hrl b/lib/ssl/src/ssl_record.hrl index ed007f58d7..a927fba0de 100644 --- a/lib/ssl/src/ssl_record.hrl +++ b/lib/ssl/src/ssl_record.hrl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2007-2016. All Rights Reserved. +%% Copyright Ericsson AB 2007-2019. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -140,6 +140,8 @@ -define(ALERT, 21). -define(HANDSHAKE, 22). -define(APPLICATION_DATA, 23). +-define(KNOWN_RECORD_TYPE(Type), + (is_integer(Type) andalso (20 =< (Type)) andalso ((Type) =< 23))). -define(MAX_PLAIN_TEXT_LENGTH, 16384). -define(MAX_COMPRESSED_LENGTH, (?MAX_PLAIN_TEXT_LENGTH+1024)). -define(MAX_CIPHER_TEXT_LENGTH, (?MAX_PLAIN_TEXT_LENGTH+2048)). |