On Wednesday 20 August 2008, Dirk Meyer wrote: > Jason Tackaberry wrote: > > On Sun, 2008-08-17 at 09:02 +0200, Dirk Meyer wrote: > >> Any other lib providing this is fine by me but not using TLS is no > >> option. > > > > Did you look at m2crypto? > > And on pyopenssl. But I may need TLS-SRP which is not supported by > these two (it is by openssl but not by pyopenssl). tlslite provides > everything I need and much more. The homepage says: "TLS Lite is pure > Python, however it can access OpenSSL, cryptlib, pycrypto, and GMPY > for faster crypto operations". So if cryptlib is optional to make it > faster, you could skip it.
It is optional for some crypto methods, however other methods
unconditionally depend on them, such as
tlslite.api.X509().getCommonName():
def getCommonName(self):
"""Get the Subject's Common Name from the certificate.
The cryptlib_py module must be installed in order to use this
function.
[...]
"""
import cryptlib_py
import array
From a packager's point of view this is rather hard to solve, because
dependencies of tlslite are dependent on the context of the application
*using* tlslite. The only safe way is to hardcode that dependency.
I am currently working around that issue by not adding tlslite as a hard
dependency of kaa-base. This will pose a problem as soon as any Freevo
actually uses those TLS parts. If none of the other TLS python bindings
provide the needed features (which I have full understanding for), I
can still either remove non-x86(_64) support, or remove those parts
using tlslite through kaa.
If you mention such plugins in an announcement, that'd be appreciated!
Robert
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
