5a6d6ece6e
The next commit with make the implementation publicly available as well. For now the API is kept unchanged. The save function API has a serious drawback in that the user must guess what an appropriate buffer size is. Internally so far this didn't matter because we were only using that API for ticket creation, and tickets are written to the SSL output buffer whose size is fixed anyway, but for external users this might not be suitable. Improving that is left for later. Also, so far the functions are defined unconditionally. Whether we want to re-use existing flags or introduce a new one is left for later. Finally, currently suggested usage of calling get_session() then session_save() is memory-inefficient in that get_session() already makes a copy. I don't want to recommend accessing `ssl->session` directly as we want to prohibit direct access to struct member in the future. Providing a clean and efficient way is also left to a later commit. |
||
---|---|---|
.. | ||
mbedtls | ||
.gitignore | ||
CMakeLists.txt |