@@ -62,11 +62,11 @@ test({ psk: USERS.UserA, identity: 'UserA' }, { minVersion: 'TLSv1.3' });
|
62 | 62 | test({ psk: USERS.UserB, identity: 'UserB' }); |
63 | 63 | test({ psk: USERS.UserB, identity: 'UserB' }, { minVersion: 'TLSv1.3' }); |
64 | 64 | // Unrecognized user should fail handshake |
65 | | -const expectedHandshakeErr = common.hasOpenSSL32 ? |
| 65 | +const expectedHandshakeErr = common.hasOpenSSL(3, 2) ? |
66 | 66 | 'ERR_SSL_SSL/TLS_ALERT_HANDSHAKE_FAILURE' : 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE'; |
67 | 67 | test({ psk: USERS.UserB, identity: 'UserC' }, {}, expectedHandshakeErr); |
68 | 68 | // Recognized user but incorrect secret should fail handshake |
69 | | -const expectedIllegalParameterErr = common.hasOpenSSL32 ? |
| 69 | +const expectedIllegalParameterErr = common.hasOpenSSL(3, 2) ? |
70 | 70 | 'ERR_SSL_SSL/TLS_ALERT_ILLEGAL_PARAMETER' : 'ERR_SSL_SSLV3_ALERT_ILLEGAL_PARAMETER'; |
71 | 71 | test({ psk: USERS.UserA, identity: 'UserB' }, {}, expectedIllegalParameterErr); |
72 | 72 | test({ psk: USERS.UserB, identity: 'UserB' }); |