Skip to content

Commit 06425a7

Browse files
committed
FIX: occasional HTTPS read fails when server used ECDHE_ECDSA key method
1 parent a298707 commit 06425a7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/mezz/codec-der.reb

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ register-codec [
121121
;data: enbase data 2
122122
]
123123
INTEGER [
124+
;@@ TODO: review if the null skipping is correct!
124125
if data/1 = 0 [data: next data]
125126
]
126127
]

src/mezz/prot-tls.reb

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
REBOL [
22
title: "REBOL3 TLSv1.2 protocol scheme"
3-
name: 'tls
4-
type: 'module
3+
name: tls
4+
type: module
55
author: rights: ["Richard 'Cyphre' Smolak" "Oldes" "Brian Dickens (Hostilefork)"]
66
version: 0.7.4
77
history: [
@@ -1599,7 +1599,8 @@ TLS-parse-handshake-message: function [
15991599
rsa_fixed_dh [
16001600
log-more "Checking signature using RSA_fixed_DH"
16011601
der: decode 'der signature
1602-
signature: join der/2/2 der/2/4
1602+
;@@ Review: der codec skips null char, which is needed here (reason for `head` calls)!
1603+
signature: join head der/2/2 head der/2/4
16031604
;? ctx/pub-key
16041605
;? signature
16051606
;? ctx/pub-key

0 commit comments

Comments
 (0)