TLS error when try to use QNetwork

FabioZumbi12

New Member
Hi,
I am new on obs plugins and i am facing an error when trying to use QNetwork to send post/get requisitions to Twitch api: TLS not found.
I am using the obs plugin template

What this mean, theres no native TLS support on OBS or do i need to copy ssl dlls to my plugin work?
Can someone help?
 

itkt

New Member
I'm also new to developing OBS plugins, so I got stumped on this too. What I found out was OBS doesn't ship with QNetwork and OpenSSL. They use mbedTLS instead so I would use that
 

FabioZumbi12

New Member
I got it working movingo to libcurl/libobs with this imports:


Code:
find_package(libobs REQUIRED)
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE OBS::libobs)
 

itkt

New Member
Yepp I also just discovered it's default curl with OpenSSL. Yesterday I lazily searched the repo for "tls" and saw mbedTLS so I thought that was it. I also completely misinterpreted a commit message in a closed PR that says "OBS does not ship OpenSSL and has a curl helper already to use."

Thanks for pointing out libobs, I probably would not have noticed that
 
Top