diff options
Diffstat (limited to 'OpenSSL/_util.py')
-rw-r--r-- | OpenSSL/_util.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSSL/_util.py b/OpenSSL/_util.py index cf13666..de292be 100644 --- a/OpenSSL/_util.py +++ b/OpenSSL/_util.py @@ -8,6 +8,13 @@ lib = binding.lib def text(charp): + """ + Get a native string type representing of the given CFFI ``char*`` object. + + :param charp: A C-style string represented using CFFI. + + :return: :class:`str` + """ return native(ffi.string(charp)) |