From 68cbfdb94b38ef7d0a33764baaa415f82c87a2cf Mon Sep 17 00:00:00 2001 From: Nicolas Bareil Date: Fri, 4 May 2018 15:13:59 +0200 Subject: [PATCH] Adds ssl_verify parameter to FireEye engine --- sandboxapi/fireeye.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sandboxapi/fireeye.py b/sandboxapi/fireeye.py index 17d21b9..5dcdc07 100644 --- a/sandboxapi/fireeye.py +++ b/sandboxapi/fireeye.py @@ -10,7 +10,7 @@ class FireEyeAPI(sandboxapi.SandboxAPI): """FireEye Sandbox API wrapper""" - def __init__(self, username, password, url, profile): + def __init__(self, username, password, url, profile, verify_ssl=True): """Initialize the interface to FireEye Sandbox API""" sandboxapi.SandboxAPI.__init__(self) @@ -20,6 +20,7 @@ def __init__(self, username, password, url, profile): self.password = password self.profile = profile or 'winxp-sp3' self.api_token = None + self.verify_ssl = verify_ssl def _request(self, uri, method='GET', params=None, files=None, headers=None, auth=None): """Override the parent _request method.