Commits on Source (81)
-
Matěj Cepl authored
I haven’t tested really fix contained in 0.22.5 so I have missed some other files which were missing to run ``setup.py test`` successfully. Fixes #62
f48671f1 -
Matěj Cepl authored
Fixes #50
07ee064e -
The patch originally from http://stackoverflow.com/a/11072709/164233 Fixes #30
ac01b383 -
mitr: These tests assume that at least one of v2 and v3 are available; nowadays both are disabled by default. I’m not sure whether SSLv3 can be reenabled at all.
83ebd480 -
Matěj Cepl authored
Negative logic makes it less readable.
e097dab0 -
Matěj Cepl authored26e6b869
-
46363b2e
-
Matěj Cepl authoredfdbae8a1
-
Matěj Cepl authored
Disallow SSLv2 tests on both Fedora and Debian. Fixes #30
28ffc2cb -
Matěj Cepl authored
Fix tests to make testsuite running in CI I haven’t tested really fix contained in 0.22.5 so I have missed some other files which were missing to run ``setup.py test`` successfully. Fixes #62 See merge request !2
94f5cb41 -
Matěj Cepl authored66fa76dc
-
Matěj Cepl authoredb1c2d568
-
Matěj Cepl authored835a98cc
-
Matěj Cepl authoredf45b71b1
-
Matěj Cepl authored
Fixes #64
f9aa845a -
Matěj Cepl authoredfb3336d0
-
Matěj Cepl authoreddaf41853
-
Matěj Cepl authored
Fixes #61
10625197 -
Miloslav Trmač authored
The underlying PKCS5_PBKDF2_HMAC_SHA1 can generate output of any size, so a fixed on-stack buffer is insufficient. Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1270318 .
9a30b846 -
Matěj Cepl authored
Fix buffer overflow in pkcs5_pbkdf2_hmac_sha1 The underlying `PKCS5_PBKDF2_HMAC_SHA1` can generate output of any size, so a fixed on-stack buffer is insufficient. Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1270318 . See merge request !8
704ff438 -
Craig Rodrigues authored
This syntax was backported to Python 2.6: https://docs.python.org/2/whatsnew/2.6.html#pep-3110-exception-handling-changes
11c327f2 -
Craig Rodrigues authored
See: https://www.python.org/dev/peps/pep-3109/ https://www.python.org/dev/peps/pep-0352/ This syntax has been backported to Python 2.5 and Python 2.6.
31140cf4 -
See: https://www.python.org/dev/peps/pep-3109/ https://www.python.org/dev/peps/pep-0352/ This syntax has been backported to Python 2.5 and Python 2.6.
2dfef7c8 -
Matěj Cepl authored
Fix syntax for raising exceptions for Python 3. [PEP 3109] [PEP 0352] See: https://www.python.org/dev/peps/pep-3109/ https://www.python.org/dev/peps/pep-0352/ This syntax has been backported to Python 2.5 and Python 2.6. See merge request !9
2faf26de -
Matěj Cepl authored
Fix exception handling syntax for Python 3. [PEP-3110] This syntax was backported to Python 2.6: https://docs.python.org/2/whatsnew/2.6.html#pep-3110-exception-handling-changes See merge request !10
5bdfa12a -
4d546fc2
-
The old syntax is an error in Python 3. The new syntax was backported to Python 2.6: https://docs.python.org/3/whatsnew/2.6.html#pep-3127-integer-literal-support-and-syntax
35c52865 -
This is illegal in Python 3. See: https://www.python.org/dev/peps/pep-0237/ The result of PEP 237 is that: Python 2 has int() and long(). Python 3 only has int(). Use the technique outlined here: http://python3porting.com/differences.html#long to make sure that on Python 2, we are using a long where we want to. On Python 3, the int and long types have been merged, and there is only an int type.
227aeb79 -
For Python 2 compatibility, import print_function from the __future__ module. This works as far back as Python 2.6.0a2: https://docs.python.org/2/library/__future__.html
4964fb10 -
Craig Rodrigues authored
In Python 3, backticks can no longer be used as an alias for repr(). See: https://www.python.org/dev/peps/pep-3099/#core-language
eeb1dc6c -
Matěj Cepl authored430958e0
-
Matěj Cepl authored30ef4ab6
-
Matěj Cepl authored8dacd501
-
84bf9d69
-
mitr: Doesn’t OpenSSL disable them by default nowadays? Not sure. mcepl: Well, the question is for how old OpenSSL we want to develop this. Some patches are originally from RHEL-5 … mitr: It’s the other way around: the more versions we want to support, the more tests we need to disable (or, better, autodetect the precise support level, without relying on M2Crypto code, if possible). Blocked by #48
02216b5d -
d0a05f8f
-
Craig Rodrigues authored
In PEP 0290, has_key() was deprecated in Python 2.2 and higher: https://www.python.org/dev/peps/pep-0290/#testing-dictionary-membership https://docs.python.org/2.2/whatsnew/node4.html In Python 3, dict.has_key() was removed: https://docs.python.org/3.0/whatsnew/3.0.html#builtins
18d9ffea -
Matěj Cepl authored
Just run $ find . -name \*.py -exec sed -r -i -e "s/\t/ /g" '{}' \; $ find . -name \*.py -exec sed -r -i -e "s/[ ]+$//" '{}' \;
ef45a18e -
Matěj Cepl authoredecbeca2b
-
9409c0a5
-
Matěj Cepl authored
Separate repository for its content has been created at https://gitlab.com/m2crypto/m2crypto_demo Fixes #74
e9067316 -
Matěj Cepl authored82457933
-
Matěj Cepl authored
Also, add some tests. Fix #81
4d929567 -
Matěj Cepl authored
Remove demo/ subdirectory. Separate repository for its content has been created at https://gitlab.com/m2crypto/m2crypto_demo Fixes #74 See merge request !25
30ea2590 -
Matěj Cepl authored88816789
-
For example, on Ubuntu, this adds /usr/include/x86_64-linux-gnu/ to the include path. See: https://wiki.debian.org/Python/MultiArch
ecc678d5 -
Matěj Cepl authoredd952b1f0
-
Matěj Cepl authored
Fixes #69 and fixes #49 Also, remove fedora_setup.sh.
1df113bb -
Matěj Cepl authoreda92ec197
-
Matěj Cepl authored8e6a43db
-
aeeb47d2
-
Matěj Cepl authored
And fix expected values to new certs. Fix #77
682a3ac9 -
Matěj Cepl authored5dfa6ffb
-
Matěj Cepl authored
Improved SSL.Checker.Checker diagnostics.
24684d29 -
Matěj Cepl authored6b160a84
-
Matěj Cepl authored
See #84, but we should really find a better algorithm, this is just an ugly hack.
9dc55d15 -
Matěj Cepl authored327466d0
-
Matěj Cepl authoreda7e157e0
-
Craig Rodrigues authored
Add multiarch Replaces !24 , fixes #56 , fixes #77 , fixes #69 Leaves open #84 covering it with an ugly workaround (really, just a hack), but I don't how to fix it properly. Using a commit by @rodrigc . Do you (or anybody else in @All ) have any comments on this? Builds in Travis CI https://travis-ci.org/mcepl/M2Crypto/builds/93579062 See merge request !28
4f7b0514 -
Craig Rodrigues authored
Bio context manager All objects derived from ``BIO.BIO`` can now work as a context manager, i.e., it is possible to write: ```python with BIO.MemoryBuffer() as mb: doit = mb.read() ``` See merge request !27
effe7f78 -
Craig Rodrigues authored3d3961a1
-
Craig Rodrigues authored
assertEquals() is a deprecated alias for assertEqual(): https://docs.python.org/3/library/unittest.html#deprecated-aliases The alias exists as far back as Python 2.6: https://hg.python.org/cpython/file/v2.6.2/Lib/unittest.py#l386
a714cff8 -
Craig Rodrigues authored
This code was originally added in 0f195b9f for accomodation of https://docs.python.org/2.6/whatsnew/2.6.html#pep-3118-revised-buffer-protocol
651c0d0c -
Craig Rodrigues authored061745d2
-
Matěj Cepl authored2e839976
-
Matěj Cepl authored2c463123
-
Matěj Cepl authoredff00fe24
-
Matěj Cepl authored
And yes, it is not py3k compatible (which uses SocketIO; we should investigate further what to do about that).
0e3ee858 -
Craig Rodrigues authored
According to: http://python-packaging-user-guide.readthedocs.org/en/latest/current/#packaging-tool-recommendations setuptools is recommended for Python packages. Use the following as guidelines for writing setup.py: https://packaging.python.org/en/latest/distributing/ https://github.com/pypa/sampleproject
f40aac31 -
a8eea44b
-
Craig Rodrigues authoredcdd793d2
-
Matěj Cepl authored86f2abbc
-
Matthew Sullivan authored3e977a80
-
Craig Rodrigues authored
This now specified in setup.py in the setup.setuptools.install_requires variable.
8ad2fea1 -
Matthew Sullivan authoredb8be522c
-
Matěj Cepl authored8bbd1126
-
Konstantin Shemyak authored
Fingerprint is the value of the hash function, which is a bit string, not a number. It is handled as such now.
13a03b69 -
Matěj Cepl authored27862949
-
Matěj Cepl authored
Fixes #89
3cc0bd12 -
Matěj Cepl authoreda1c89d95
-
Matěj Cepl authoredb2385232
.gitlab-ci.yml
0 → 100644
.travis.yml
0 → 100644