Add an export for the length of a private key

poljar/cmake_sas
David Baker 2018-10-02 19:21:05 +01:00
parent 8635d68ba8
commit e521ee84c5
1 changed files with 1 additions and 0 deletions

View File

@ -466,6 +466,7 @@ olm_exports["get_library_version"] = restore_stack(function() {
Module['onRuntimeInitialized'] = function() {
OLM_ERROR = Module['_olm_error']();
olm_exports["PRIVATE_KEY_LENGTH"] = Module['_olm_pk_private_key_length']();
if (onInitSuccess) onInitSuccess();
};