• Jérome Perrin's avatar
    x509: gracefully handle ENOMEM when running openssl · 2b0d5043
    Jérome Perrin authored
    prevent this kind of errors when running openssl fail:
    
    ```
    10-12-2018 19:04:02 ERROR     AttributeError: 'NoneType' object has no attribute 'splitlines'
    Traceback (most recent call last):
      File "/opt/re6st/eggs/re6stnet-0.513-py2.7.egg/re6st/cli/node.py", line 428, in main
        s(*args)
      File "/opt/re6st/eggs/re6stnet-0.513-py2.7.egg/re6st/utils.py", line 191, in select
        R[r]()
      File "/opt/re6st/eggs/re6stnet-0.513-py2.7.egg/re6st/tunnel.py", line 399, in handlePeerEvent
        True, crypto.FILETYPE_ASN1)
      File "/opt/re6st/eggs/re6stnet-0.513-py2.7.egg/re6st/x509.py", line 136, in loadVerify
        for x in err.splitlines():
    ```
    
    /reviewed-on !6
    2b0d5043
Name
Last commit
Last update
daemon Loading commit data...
debian Loading commit data...
demo Loading commit data...
docs Loading commit data...
draft Loading commit data...
examples Loading commit data...
re6st Loading commit data...
simulation Loading commit data...
.gitignore Loading commit data...
CHANGES.rst Loading commit data...
COPYING Loading commit data...
MANIFEST.in Loading commit data...
Makefile Loading commit data...
README.rst Loading commit data...
TODO Loading commit data...
re6st-conf Loading commit data...
re6st-registry Loading commit data...
re6stnet Loading commit data...
re6stnet.spec Loading commit data...
setup.py Loading commit data...