blob: 959fb3cdc2ec74974c5e9c66b479ce163ac544da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
diff --git a/test/runtests.jl b/test/runtests.jl
index c4ed089..f2f627f 100644
--- a/test/runtests.jl
+++ b/test/runtests.jl
@@ -237,29 +237,7 @@ let
digest3 = MbedTLS.finish!(md)
@test digest1 ≠ digest3
end
-
-# log_secrets
-mktempdir() do d
-
- f = joinpath(d, "secrets.log")
-
- testhost = "httpbin.org"
- sock = connect(testhost, 443)
-
- ctx = MbedTLS.SSLContext()
- conf = MbedTLS.SSLConfig(true; log_secrets=f)
-
- MbedTLS.setup!(ctx, conf)
- MbedTLS.set_bio!(ctx, sock)
- MbedTLS.hostname!(ctx, testhost)
- MbedTLS.handshake(ctx)
-
- write(ctx, "GET / HTTP/1.1\r\nHost: $testhost\r\n\r\n")
- buf = String(read(ctx, 100))
- @test occursin(r"^HTTP/1.1 200 OK", buf)
- @test occursin(r"^CLIENT_RANDOM [0-9a-f]{64} [0-9a-f]{96}$", read(f, String))
-end
let
include("clntsrvr/clntsrvr.jl")
end
|