Python and SSL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Illo de' Illis

    Python and SSL

    While I was coding a software which needs to set up a SSL transaction
    with a client using an underlying proprietary protocol, I found
    that the _ssl module works only in SSL client mode. Moreover it is
    impossible to write a select()-based polling algorithm with it since
    I can't query SSLObject for any available data in input (this occurs
    only for nonblocking sockets of course), or alternatively I can't
    push the characters I read back into the OpenSSL BIO cache.
    Since the patch to apply to _ssl for this stuff to work is trivial,
    I would like to know whether somebody is doing that.

    Ciao,
    Illo.

    --
    De hierboven vermelde uitspraken behoren volledig toe aan mezelf en
    vertegenwoordig en niet de uitspraken, praktijken, of interpretaties
    van gelijk welke derde persoon of officiele instantie.
  • John J. Lee

    #2
    Re: Python and SSL

    Illo de' Illis <illo@students. cs.unibo.it> writes:
    [color=blue]
    > While I was coding a software which needs to set up a SSL transaction
    > with a client using an underlying proprietary protocol, I found
    > that the _ssl module works only in SSL client mode. Moreover it is[/color]
    [...]

    Don't know if it does what you want, but have you found m2crypto?


    John

    Comment

    Working...