Cryptography: UserWarning: implicit cast from 'char *' to a different pointer type

Created on 21 Sep 2016  路  2Comments  路  Source: pyca/cryptography

I upgraded a bunch of packages recently, including cryptography (to 1.5) and cffi (to 1.8.3), and now every time I run ansible I see this warning:

/home/mg/.venv/local/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/backend.py:307: UserWarning: implicit cast from 'char *' to a different pointer type: will be forbidden in the future (check that the types are as you expect; use an explicit ffi.cast() if they are correct)
  buf

(I'm just guessing that cffi is involved in this.)

That line is part of this statement:

        res = self._lib.PKCS5_PBKDF2_HMAC(
            key_material,
            len(key_material),
            salt,
            len(salt),
            iterations,
            evp_md,
            length,
            buf
        )

Most helpful comment

3155 was submitted yesterday to resolve this. It will be in a release later this week.

All 2 comments

3155 was submitted yesterday to resolve this. It will be in a release later this week.

(Resolved in 1.5.1)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

freedge picture freedge  路  22Comments

reaperhulk picture reaperhulk  路  42Comments

glyph picture glyph  路  46Comments

TrollNation picture TrollNation  路  20Comments

alex picture alex  路  28Comments