martinpaljak/M2Crypto — pull request #14 by kovalenko-igor (2014-03-07 18:08:49+00:00)
Title: Bugs 13109, 13083 fixed

Before:

In [1]: from M2Crypto import SSL, m2, Engine

In [2]: Engine.load_dynamic()

In [3]: ctx = SSL.Context()

In [4]: SSL.m2.engine_init(m2.engine_by_id("gost"))
Out[4]: 1

In [5]: SSL.m2.ssl_ctx_set_cipher_list(ctx.ctx, 'GOST2001-GOST89-GOST89')
Out[5]: 0

After:

In [1]: from M2Crypto import m2, SSL

In [2]: m2.openssl_add_all_algorithms_conf()

In [3]: m2.ssl_library_init()
Out[3]: 1

In [4]: ctx = SSL.Context()

In [5]: SSL.m2.ssl_ctx_set_cipher_list(ctx.ctx, 'GOST2001-GOST89-GOST89')
Out[5]: 1