Skip to content

Commit

Permalink
minor ssl test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozg committed Apr 5, 2024
1 parent 6731a36 commit c3ffe25
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/lua-openssl.supp
Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,37 @@
obj:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
fun:BN_bin2bn
}

{
BIO_new_bio_pair
Memcheck:Leak
match-leak-kinds: indirect
fun:malloc
fun:CRYPTO_zalloc
obj:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
fun:BIO_new
fun:BIO_new_bio_pair
obj:*
}

{
BIO_new_bio_pair
Memcheck:Leak
match-leak-kinds: indirect
fun:malloc
obj:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
fun:BIO_ctrl
fun:BIO_new_bio_pair
obj:*
}

{
BIO_new_bio_pair
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:CRYPTO_zalloc
fun:BIO_new
fun:BIO_new_bio_pair
obj:*
}
5 changes: 3 additions & 2 deletions test/8.ssl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -601,12 +601,13 @@ function TestSSL:testSNI()
srv:want()
until (rs and cs) or (rs == nil or cs == nil)

local sbio = bio.filter('ssl', ssl)
sbio:close()
-- FIXME: bio ssl filter
local sbio = bio.filter('ssl', cli, 0)

cli:clear()
cli:shutdown()

sbio:close()
bs:close()
bc:close()

Expand Down

0 comments on commit c3ffe25

Please sign in to comment.