diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2020-09-15 14:34:15 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2020-09-15 14:34:15 -0400 |
| commit | 054be043b9b819406a91e3c4c4447015c5d90283 (patch) | |
| tree | af580051f7346589471e98a3c90f24163af9c5cc /python | |
| parent | 7bca065af179f88e47d547cbfeff3009bbcd8c22 (diff) | |
more detailed documentation for core_set_license
Diffstat (limited to 'python')
| -rw-r--r-- | python/__init__.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/python/__init__.py b/python/__init__.py index 2d2da238..d26f5a73 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -249,7 +249,20 @@ def core_ui_enabled(): def core_set_license(licenseData): - '''Set the Binary Ninja license data, an alternative to storing a ``license.dat`` file''' + ''' + ``core_set_license`` is used to initialize the core with a license file that doesn't necessarily reside on a file system. This is especially useful for headless environments such as docker where loading the license file via an environment variable allows for greater security of the license file itself. + + :param str licenseData: string containing the full contents of a license file + :return: user plugin path + :rtype: None + :Example: + + >>> import os + >>> core_set_license(os.environ['BNLICENSE']) #Do this before creating any BinaryViews + >>> with open_view("/bin/ls") as bv: + ... print(len(bv.functions)) + 128 + ''' core.BNSetLicense(licenseData) |
