aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2019-01-23 11:08:06 +0100
committerPéter Dimitrov <[email protected]>2019-01-28 09:39:47 +0100
commit05d80e2ca5b5703b3928af8ef8ca1160c7a2062f (patch)
tree37a832ea963de61748e70a638b0cec9f4b043433 /lib/ssl/src
parentcf7cfd600cec515d464b113013e4554e55a8dc11 (diff)
downloadotp-05d80e2ca5b5703b3928af8ef8ca1160c7a2062f.tar.gz
otp-05d80e2ca5b5703b3928af8ef8ca1160c7a2062f.tar.bz2
otp-05d80e2ca5b5703b3928af8ef8ca1160c7a2062f.zip
ssl: Update function build_content
Change-Id: I91c5866f1400c3ad9c7eab1292c3ceb32a482c70
Diffstat (limited to 'lib/ssl/src')
-rw-r--r--lib/ssl/src/tls_handshake_1_3.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ssl/src/tls_handshake_1_3.erl b/lib/ssl/src/tls_handshake_1_3.erl
index 8dc5e86971..44fa7303f1 100644
--- a/lib/ssl/src/tls_handshake_1_3.erl
+++ b/lib/ssl/src/tls_handshake_1_3.erl
@@ -320,9 +320,8 @@ digitally_sign(THash, Context, HashAlgo, PrivateKey = #'RSAPrivateKey'{}) ->
build_content(Context, THash) ->
- <<" ",
- " ",
- Context/binary,?BYTE(0),THash/binary>>.
+ Prefix = binary:copy(<<32>>, 64),
+ <<Prefix/binary,Context/binary,?BYTE(0),THash/binary>>.
%%====================================================================
%% Handle handshake messages