MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / update_license

Function update_license

python/enterprise.py:247–257  ·  view source on GitHub ↗

Acquire or refresh a floating license from the Enterprise server. .. note:: You must authenticate with the Enterprise server before calling this. :param int duration: Desired length of license checkout, in seconds. :param bool _cache: Deprecated but left in for compatibility

(duration, _cache=True)

Source from the content-addressed store, hash-verified

245
246
247def update_license(duration, _cache=True):
248 """
249 Acquire or refresh a floating license from the Enterprise server.
250
251 .. note:: You must authenticate with the Enterprise server before calling this.
252
253 :param int duration: Desired length of license checkout, in seconds.
254 :param bool _cache: Deprecated but left in for compatibility
255 """
256 if not core.BNUpdateEnterpriseServerLicense(duration):
257 raise RuntimeError(last_error())
258
259
260def release_license():

Callers 1

acquireMethod · 0.85

Calls 1

last_errorFunction · 0.85

Tested by

no test coverage detected