• 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
..
cli Loading commit data...
__init__.py Loading commit data...
cache.py Loading commit data...
ctl.py Loading commit data...
debug.py Loading commit data...
ovpn-client Loading commit data...
ovpn-server Loading commit data...
plib.py Loading commit data...
registry.py Loading commit data...
rina.py Loading commit data...
tunnel.py Loading commit data...
upnpigd.py Loading commit data...
utils.py Loading commit data...
version.py Loading commit data...
x509.py Loading commit data...