Skip to content

Commit 7544e9a

Browse files
committed
SupportsTLS1PRF should report true for OpenSSL 1.x
1 parent 816703e commit 7544e9a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tls1prf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
func SupportsTLS1PRF() bool {
1515
return vMajor > 1 ||
16-
(vMajor >= 1 && vMinor > 1)
16+
(vMajor >= 1 && vMinor >= 1)
1717
}
1818

1919
func TLS1PRF(secret, label, seed []byte, keyLen int, h func() hash.Hash) ([]byte, error) {

tls1prf_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ var tls1prfTests = []tls1prfTest{
147147

148148
func TestTLS1PRF(t *testing.T) {
149149
if !openssl.SupportsTLS1PRF() {
150-
t.Skip("TLS 1.2 PRF is not supported")
150+
t.Skip("TLS PRF is not supported")
151151
}
152152
for _, tt := range tls1prfTests {
153153
tt := tt

0 commit comments

Comments
 (0)