-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with plugin for pidgin #2
Comments
The last three issues may all be related: If the right TLS library is not compiled in, this may lead to any of the displayed behavior (which aside from the last are all bugs). Not sure about the first, once threepl is loaded it should be possible to add a user. Does anything of interest pop-up when running pidgin with debug output? (i.e. start in terminal with command option -d). Re. CURL issue: Both Ubuntu and Debian by default use OpenSSL AFAIK, so standard configuration should work. Can you verify that is the case on your platform? Otherwise, the CMake options USE_OPENSSL, USE_MBEDTLS or USE_WOLFSSL may have to be changed. |
Thanks for the prompt reply. The debugging option does not reveal anything more useful than My system is using OpenSSL (version 1.1.0g). The relevant entries in CMakeCache.txt are:
Should the plugin be listed in the plugin menu? Actually it is not, but probing threepl.so seems to be successful since there are no related complains in the debug output except for a missing icon:
|
No menu item is expected, until you add an account. Then the account menu should list some Threema-specific options. The missing pixmap message however is a good sign, since the plugin is then being loaded. It could be a few things have changed in the purple APIs in the meanwhile, causing things to stop working. I'll have to look into it. |
I have found the issue: On my system, curl uses the gnutls backend. After having compiled curl with the mbedtls backend and a fix in HttpClientmbedTLS.cpp (the size for parsing the certificate has to be increased by one) the plugin is working now. |
I can't remember exactly and will look into this the next days. |
In my main CMakeLists.txt I have selected mbedTLS and a self compiled CURL lib: # Find any of OpenSSL, mbedTLS or CyaSSL, as these are currently supported for # CURL certificate callbacks option(USE_OPENSSL "Add OpenSSL support" OFF) option(USE_MBEDTLS "Add mbedTLS/PolarSSL support" ON) option(USE_WOLFSSL "Add wolfSSL/cyaSSL support" OFF) if (NOT USE_OPENSSL AND NOT USE_MBEDTLS AND NOT USE_WOLFSSL) message(SEND_ERROR "At least one SSL library is required") endif () # Give the user the possibility to provide the path to a possibly self compiled # CURL lib. Some linux distros have CURL with GnuTLS backend which does not # provide the required CURL certificate callback. Thus CURL has to be manually # compiled with another backend, like, e.g., mbedTLS option(USE_OWN_CURL_LIB "Use manually compiled CURL lib" ON) The CURL lib is self-compiled with mbedTLS, i.e. ./configure --without-ssl --with-mbedtls --prefix $HOME/Software/threema/threepl-ttl/3rdparty/curl --exec-prefix=$HOME/Software/threema/threepl-ttl/3rdparty/curl Thus, I think that there are no dependencies on openssl (or am I missing something?). Running Best |
@ttlmax i know this topic is a little bit old but i am trying to get this working with self compiled CURL. |
myxor, sorry, I missed your port. I have used the following at the beginning fo the file # A self compiled CURL lib has to be installed in /3rdparty/curl, which
# is contained in .gitignore and is not trakced by git
if (USE_OWN_CURL_LIB)
set (CURL_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/3rdparty/curl/include")
set (CURL_LIBRARIES "${CMAKE_SOURCE_DIR}/3rdparty/curl/lib/libcurl.so")
endif () Hope this helps. |
First of all, great project and thanks for providing this.
Unfortunately I have problems running the plugin in pidgin 2.13.0. A connection is established (the connection with openMittsu is interrupted as soon as pidgin connects) but I encounter the following issues:
Maybe it is just some sort of mis-configuration, is there any kind of readme or documentation?
Best, Torsten
The text was updated successfully, but these errors were encountered: