pylibressl.lib¶
Various auxiliary routines
Intended only for internal use!
Module Contents¶
Functions¶
Report LibreSSL error w/o passing a string. |
|
|
Retrieve byte string from cdata. |
|
Wrapper for status code processing. |
- pylibressl.lib.initialize_libressl()¶
- pylibressl.lib.get_libressl_error()¶
Report LibreSSL error w/o passing a string.
Unrolls the whole error stack.
- pylibressl.lib.retrieve_bytes(cdata, size)¶
Retrieve byte string from cdata.
- pylibressl.lib.check_status(status_code, action=None)¶
Wrapper for status code processing.
- Parameters
status_code – value, returned by LibreSSL function
action – type of status code verification
- Action list:
None or ‘simple’: check if status_code != 1
‘null’: check if status_code is NULL
‘auth’: check if status_code == 0 (authentication in GCM mode)
‘verify’: return True on 1, False on 0, raise exception on other
‘bio’: check if status code is positive (for BIO read/write)
callable: call it with status_code as argument