Hello community,

here is the log from the commit of package python-cryptography for 
openSUSE:Factory checked in at 2015-04-25 09:52:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cryptography (Old)
 and      /work/SRC/openSUSE:Factory/.python-cryptography.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cryptography"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cryptography/python-cryptography.changes  
2015-04-10 09:51:34.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-cryptography.new/python-cryptography.changes 
    2015-04-25 11:23:21.000000000 +0200
@@ -1,0 +2,7 @@
+Thu Apr 23 06:38:42 UTC 2015 - mci...@suse.cz
+
+- Update to 0.8.2:
+  * Fixed a race condition when initializing the OpenSSL or CommonCrypto 
backends
+    in a multi-threaded scenario.
+
+-------------------------------------------------------------------

Old:
----
  cryptography-0.8.1.tar.gz
  cryptography-0.8.1.tar.gz.asc
  cryptography_vectors-0.8.1.tar.gz
  cryptography_vectors-0.8.1.tar.gz.asc

New:
----
  cryptography-0.8.2.tar.gz
  cryptography-0.8.2.tar.gz.asc
  cryptography_vectors-0.8.2.tar.gz
  cryptography_vectors-0.8.2.tar.gz.asc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-cryptography.spec ++++++
--- /var/tmp/diff_new_pack.n1nzsn/_old  2015-04-25 11:23:22.000000000 +0200
+++ /var/tmp/diff_new_pack.n1nzsn/_new  2015-04-25 11:23:22.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python-cryptography
-Version:        0.8.1
+Version:        0.8.2
 Release:        0
 Summary:        Python library which exposes cryptographic recipes and 
primitives
 License:        Apache-2.0

++++++ cryptography-0.8.1.tar.gz -> cryptography-0.8.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cryptography-0.8.1/CHANGELOG.rst 
new/cryptography-0.8.2/CHANGELOG.rst
--- old/cryptography-0.8.1/CHANGELOG.rst        2015-03-20 16:22:05.000000000 
+0100
+++ new/cryptography-0.8.2/CHANGELOG.rst        2015-04-11 03:52:07.000000000 
+0200
@@ -1,6 +1,12 @@
 Changelog
 =========
 
+0.8.2 - 2015-04-10
+~~~~~~~~~~~~~~~~~~
+
+* Fixed a race condition when initializing the OpenSSL or CommonCrypto backends
+  in a multi-threaded scenario.
+
 0.8.1 - 2015-03-20
 ~~~~~~~~~~~~~~~~~~
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cryptography-0.8.1/PKG-INFO 
new/cryptography-0.8.2/PKG-INFO
--- old/cryptography-0.8.1/PKG-INFO     2015-03-20 16:22:51.000000000 +0100
+++ new/cryptography-0.8.2/PKG-INFO     2015-04-11 03:52:54.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: cryptography
-Version: 0.8.1
+Version: 0.8.2
 Summary: cryptography is a package which provides cryptographic recipes and 
primitives to Python developers.
 Home-page: https://github.com/pyca/cryptography
 Author: The cryptography developers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cryptography-0.8.1/src/cryptography/__about__.py 
new/cryptography-0.8.2/src/cryptography/__about__.py
--- old/cryptography-0.8.1/src/cryptography/__about__.py        2015-03-20 
16:22:05.000000000 +0100
+++ new/cryptography-0.8.2/src/cryptography/__about__.py        2015-04-11 
03:52:07.000000000 +0200
@@ -14,7 +14,7 @@
                " and primitives to Python developers.")
 __uri__ = "https://github.com/pyca/cryptography";
 
-__version__ = "0.8.1"
+__version__ = "0.8.2"
 
 __author__ = "The cryptography developers"
 __email__ = "cryptography-...@python.org"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cryptography-0.8.1/src/cryptography/hazmat/bindings/commoncrypto/binding.py 
new/cryptography-0.8.2/src/cryptography/hazmat/bindings/commoncrypto/binding.py
--- 
old/cryptography-0.8.1/src/cryptography/hazmat/bindings/commoncrypto/binding.py 
    2015-03-18 02:56:36.000000000 +0100
+++ 
new/cryptography-0.8.2/src/cryptography/hazmat/bindings/commoncrypto/binding.py 
    2015-04-11 03:52:07.000000000 +0200
@@ -4,6 +4,8 @@
 
 from __future__ import absolute_import, division, print_function
 
+import threading
+
 from cryptography.hazmat.bindings.utils import (
     build_ffi_for_binding, load_library_for_binding,
 )
@@ -35,6 +37,7 @@
         ],
     )
     lib = None
+    _init_lock = threading.Lock()
 
     def __init__(self):
         self._ensure_ffi_initialized()
@@ -44,8 +47,10 @@
         if cls.lib is not None:
             return
 
-        cls.lib = load_library_for_binding(
-            cls.ffi,
-            module_prefix=cls._module_prefix,
-            modules=cls._modules,
-        )
+        with cls._init_lock:
+            if cls.lib is None:
+                cls.lib = load_library_for_binding(
+                    cls.ffi,
+                    module_prefix=cls._module_prefix,
+                    modules=cls._modules,
+                )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cryptography-0.8.1/src/cryptography/hazmat/bindings/openssl/binding.py 
new/cryptography-0.8.2/src/cryptography/hazmat/bindings/openssl/binding.py
--- old/cryptography-0.8.1/src/cryptography/hazmat/bindings/openssl/binding.py  
2015-03-18 02:54:37.000000000 +0100
+++ new/cryptography-0.8.2/src/cryptography/hazmat/bindings/openssl/binding.py  
2015-04-11 03:52:00.000000000 +0200
@@ -98,6 +98,7 @@
 
     _locks = None
     _lock_cb_handle = None
+    _init_lock = threading.Lock()
     _lock_init_lock = threading.Lock()
 
     ffi = build_ffi_for_binding(
@@ -117,14 +118,16 @@
         if cls.lib is not None:
             return
 
-        cls.lib = load_library_for_binding(
-            cls.ffi,
-            cls._module_prefix,
-            cls._modules,
-        )
+        with cls._init_lock:
+            if cls.lib is None:
+                cls.lib = load_library_for_binding(
+                    cls.ffi,
+                    cls._module_prefix,
+                    cls._modules,
+                )
 
-        res = cls.lib.Cryptography_add_osrandom_engine()
-        assert res != 0
+                res = cls.lib.Cryptography_add_osrandom_engine()
+                assert res != 0
 
     @classmethod
     def init_static_locks(cls):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cryptography-0.8.1/src/cryptography.egg-info/PKG-INFO 
new/cryptography-0.8.2/src/cryptography.egg-info/PKG-INFO
--- old/cryptography-0.8.1/src/cryptography.egg-info/PKG-INFO   2015-03-20 
16:22:51.000000000 +0100
+++ new/cryptography-0.8.2/src/cryptography.egg-info/PKG-INFO   2015-04-11 
03:52:54.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: cryptography
-Version: 0.8.1
+Version: 0.8.2
 Summary: cryptography is a package which provides cryptographic recipes and 
primitives to Python developers.
 Home-page: https://github.com/pyca/cryptography
 Author: The cryptography developers

++++++ cryptography_vectors-0.8.1.tar.gz -> cryptography_vectors-0.8.2.tar.gz 
++++++
/work/SRC/openSUSE:Factory/python-cryptography/cryptography_vectors-0.8.1.tar.gz
 
/work/SRC/openSUSE:Factory/.python-cryptography.new/cryptography_vectors-0.8.2.tar.gz
 differ: char 5, line 1


Reply via email to