diff options
| author | Kenny Root <kroot@google.com> | 2012-08-15 21:42:04 -0700 |
|---|---|---|
| committer | Kenny Root <kroot@google.com> | 2012-08-15 21:50:22 -0700 |
| commit | 106a8928fb4249f2f3d4dba1dddbe73ca5cb3d61 (patch) | |
| tree | 108228bfe472f6126fbd8f56dfe8a8cb98246758 /annotations/generate_annotated_java_files.py | |
| parent | abcf078387f9a89e87d31b53a2683277805a3cb2 (diff) | |
Call ENGINE_add to prevent ENGINEs from unloading
The only user of the OpenSSLEngine interface is a dynamic engine (loaded
from eng_dyn.c), so it will unload the .so when references to it
decrease to zero.
Calling ENGINE_add will add the loaded engine to the list of loaded
engines. The next time ENGINE_by_id is called, it will just use the one
from the list instead of loading the .so again.
You can still control whether the engine is ref-counted or copied with
ENGINE_set_flags(ret, ENGINE_FLAGS_BY_ID_COPY) in the engine
initialization method.
Change-Id: Ic005e9ea22a3c6027e3a5aab2adf41fb7995c1f0
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions
