[Python-modules-commits] [python-bcrypt] 01/09: Import python-bcrypt_3.1.1.orig.tar.xz

Daniel Stender stender at moszumanska.debian.org
Sat Dec 3 09:52:59 UTC 2016


This is an automated email from the git hooks/post-receive script.

stender pushed a commit to branch master
in repository python-bcrypt.

commit df9dc2c7cf7a3d129596bad89e4301a9d0b83de9
Author: Daniel Stender <stender at debian.org>
Date:   Sat Dec 3 10:20:08 2016 +0100

    Import python-bcrypt_3.1.1.orig.tar.xz
---
 PKG-INFO                     | 6 +++++-
 README.rst                   | 4 ++++
 src/bcrypt.egg-info/PKG-INFO | 6 +++++-
 src/bcrypt/__about__.py      | 2 +-
 src/bcrypt/__init__.py       | 4 ++--
 5 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/PKG-INFO b/PKG-INFO
index fbb8815..dba40e4 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: bcrypt
-Version: 3.1.0
+Version: 3.1.1
 Summary: Modern password hashing for your software and your servers
 Home-page: https://github.com/pyca/bcrypt/
 Author: The Python Cryptographic Authority developers
@@ -45,6 +45,10 @@ Description: bcrypt
         Changelog
         =========
         
+        3.1.1
+        -----
+        * Resolved a ``UserWarning`` when used with ``cffi`` 1.8.3.
+        
         3.1.0
         -----
         * Added support for ``checkpw``, a convenience method for verifying a password.
diff --git a/README.rst b/README.rst
index bd5e967..ce04af0 100644
--- a/README.rst
+++ b/README.rst
@@ -37,6 +37,10 @@ For Fedora and RHEL-derivatives, the following command will ensure that the requ
 Changelog
 =========
 
+3.1.1
+-----
+* Resolved a ``UserWarning`` when used with ``cffi`` 1.8.3.
+
 3.1.0
 -----
 * Added support for ``checkpw``, a convenience method for verifying a password.
diff --git a/src/bcrypt.egg-info/PKG-INFO b/src/bcrypt.egg-info/PKG-INFO
index fbb8815..dba40e4 100644
--- a/src/bcrypt.egg-info/PKG-INFO
+++ b/src/bcrypt.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: bcrypt
-Version: 3.1.0
+Version: 3.1.1
 Summary: Modern password hashing for your software and your servers
 Home-page: https://github.com/pyca/bcrypt/
 Author: The Python Cryptographic Authority developers
@@ -45,6 +45,10 @@ Description: bcrypt
         Changelog
         =========
         
+        3.1.1
+        -----
+        * Resolved a ``UserWarning`` when used with ``cffi`` 1.8.3.
+        
         3.1.0
         -----
         * Added support for ``checkpw``, a convenience method for verifying a password.
diff --git a/src/bcrypt/__about__.py b/src/bcrypt/__about__.py
index c7674a6..f0e9882 100644
--- a/src/bcrypt/__about__.py
+++ b/src/bcrypt/__about__.py
@@ -26,7 +26,7 @@ __title__ = "bcrypt"
 __summary__ = "Modern password hashing for your software and your servers"
 __uri__ = "https://github.com/pyca/bcrypt/"
 
-__version__ = "3.1.0"
+__version__ = "3.1.1"
 
 __author__ = "The Python Cryptographic Authority developers"
 __email__ = "cryptography-dev at python.org"
diff --git a/src/bcrypt/__init__.py b/src/bcrypt/__init__.py
index abc9d75..cd779a6 100644
--- a/src/bcrypt/__init__.py
+++ b/src/bcrypt/__init__.py
@@ -47,7 +47,7 @@ def gensalt(rounds=12, prefix=b"2b"):
         raise ValueError("Invalid rounds")
 
     salt = os.urandom(16)
-    output = _bcrypt.ffi.new("unsigned char[]", 30)
+    output = _bcrypt.ffi.new("char[]", 30)
     _bcrypt.lib.encode_base64(output, salt, len(salt))
 
     return (
@@ -79,7 +79,7 @@ def hashpw(password, salt):
     # passing it into the C library.
     original_salt, salt = salt, _normalize_re.sub(b"$2b$", salt)
 
-    hashed = _bcrypt.ffi.new("unsigned char[]", 128)
+    hashed = _bcrypt.ffi.new("char[]", 128)
     retval = _bcrypt.lib.bcrypt_hashpass(password, salt, hashed, len(hashed))
 
     if retval != 0:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-bcrypt.git



More information about the Python-modules-commits mailing list