Skip to content

Commit

Permalink
Merge pull request #88 from 3c7/patches/misp
Browse files Browse the repository at this point in the history
Fixes bug in MISP client
  • Loading branch information
jeromeleonard authored Sep 4, 2017
2 parents 4e6cd23 + 75a72bf commit 4153d6e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions analyzers/MISP/mispclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ def __init__(self, url, key, ssl=True, name='Unnamed'):
if type(url) is list:
for idx, server in enumerate(url):
verify = True
if os.path.isfile(ssl[idx]):
verify = ssl[idx]
if isinstance(ssl, list):
if os.path.isfile(ssl[idx]):
verify = ssl[idx]
elif isinstance(ssl, str):
if os.path.isfile(ssl):
verify = ssl
elif isinstance(ssl, bool):
verify = ssl
self.misp_connections.append(pymisp.PyMISP(url=server,
key=key[idx],
ssl=verify))
Expand Down

0 comments on commit 4153d6e

Please sign in to comment.