File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1379,17 +1379,16 @@ TLS-read-handshake-message: function [
1379
1379
ctx/server-random
1380
1380
]
1381
1381
1382
- message-hash: checksum /method message hash-algorithm
1383
- ;?? message-hash
1384
-
1385
1382
either hash-algorithm = 'md5_sha1 [
1386
1383
;__private_rsa_verify_hash_md5sha1
1387
1384
log-error "legacy __private_rsa_verify_hash_md5sha1 not implemented yet!"
1388
- ;halt
1385
+ return *Alert /Decode_error
1389
1386
][
1390
1387
log-more "Checking signature using RSA"
1391
1388
if any [
1392
1389
error? err: try [
1390
+ message-hash: checksum /method message hash-algorithm
1391
+ ;?? message-hash
1393
1392
;decrypt the `signature` with server's public key
1394
1393
rsa-key: apply :rsa-init ctx/server-certs/1/public-key/rsaEncryption
1395
1394
signature: rsa/verify rsa-key signature
You can’t perform that action at this time.
0 commit comments