File tree 1 file changed +2
-24
lines changed
1 file changed +2
-24
lines changed Original file line number Diff line number Diff line change @@ -1474,7 +1474,7 @@ TLS-parse-handshake-message: function [
1474
1474
]
1475
1475
log-more ["Received" length? ctx/server-certs "server certificates." ]
1476
1476
;? ctx/server-certs
1477
- if error? try [
1477
+ try /except [
1478
1478
;?? ctx/server-certs/1/public-key
1479
1479
;?? ctx/server-certs/1
1480
1480
key: ctx/server-certs/1/public-key
@@ -1503,34 +1503,16 @@ TLS-parse-handshake-message: function [
1503
1503
ECDHE_RSA
1504
1504
ECDHE_ECDSA [
1505
1505
;? msg/buffer
1506
- if error? err: try [
1506
+ try /except [
1507
1507
binary/read msg [
1508
1508
s: INDEX
1509
1509
ECCurveType: UI8
1510
1510
ECCurve: UI16 ; IANA CURVE NUMBER
1511
1511
pub_key: UI8BYTES
1512
1512
e: INDEX
1513
1513
]
1514
- ;@@ TODO: remove this if there will not be any issues!
1515
- ;if not empty? msg/buffer [
1516
- ; binary/read msg [
1517
- ; hash-algorithm: UI8
1518
- ; sign-algorithm: UI8
1519
- ; der: UI16BYTES
1520
- ; ]
1521
- ; log-info [
1522
- ; "Algorithms-> hash:" *HashAlgorithm/name hash-algorithm "(" hash-algorithm ")"
1523
- ; "sign:" *ClientCertificateType/name sign-algorithm "(" sign-algorithm ")"
1524
- ; ]
1525
- ; ;? sign-algorithm ; should be 1027 (ecdsa_secp256r1_sha256)
1526
- ; if sign-algorithm = *SignatureAlgorithm/ecdsa
1527
- ; der: system/codecs/der/decode der
1528
- ; ?? der
1529
- ; ]
1530
- ;]
1531
1514
][
1532
1515
log-error "Error reading elyptic curve"
1533
- ? err
1534
1516
return *Alert/User_cancelled
1535
1517
]
1536
1518
@@ -1544,10 +1526,6 @@ TLS-parse-handshake-message: function [
1544
1526
]
1545
1527
log-more ["R[" ctx/seq-read "] Elyptic curve type:" ECCurve "=>" curve]
1546
1528
log-more ["R[" ctx/seq-read "] Elyptic curve data:" pub_key]
1547
- ;@@ TODO: remove this if there will not be any issues!
1548
- ;if der [
1549
- ; log-more ["R[" ctx/seq-read "] Elyptic curve signature:" mold der]
1550
- ;]
1551
1529
]
1552
1530
DHE_DSS
1553
1531
DHE_RSA [
You can’t perform that action at this time.
0 commit comments