Add SSL iostream stub
This commit adds SSL context to iostream_ctx and a new kind of error for SSL connections. The SSL context is created if the target URI has transport=ssl parameter. If transport=plain or absent, it will be set to NULL and plain streams will be created as before. For other values of the transport parameter, an error is raised. Note, this is just a stub - an attempt to create an SSL context always currently fails with "SSL not available" error. It is supposed to be implemented in EE build. The new kind of error is currently only used for decoding errors from MsgPack and never raised. It will be raised by the actual implementation of SSL stream.
Showing
- src/box/CMakeLists.txt 1 addition, 0 deletionssrc/box/CMakeLists.txt
- src/box/mp_error.cc 3 additions, 0 deletionssrc/box/mp_error.cc
- src/lib/core/CMakeLists.txt 16 additions, 0 deletionssrc/lib/core/CMakeLists.txt
- src/lib/core/iostream.c 32 additions, 4 deletionssrc/lib/core/iostream.c
- src/lib/core/iostream.h 9 additions, 1 deletionsrc/lib/core/iostream.h
- src/lib/core/ssl.c 25 additions, 0 deletionssrc/lib/core/ssl.c
- src/lib/core/ssl.h 50 additions, 0 deletionssrc/lib/core/ssl.h
- src/lib/core/ssl_error.cc 17 additions, 0 deletionssrc/lib/core/ssl_error.cc
- src/lib/core/ssl_error.h 36 additions, 0 deletionssrc/lib/core/ssl_error.h
- src/trivia/config.h.cmake 1 addition, 0 deletionssrc/trivia/config.h.cmake
- test/box-luatest/transport_test.lua 77 additions, 0 deletionstest/box-luatest/transport_test.lua
- test/unit/mp_error.cc 1 addition, 0 deletionstest/unit/mp_error.cc
- test/unit/mp_error.result 3 additions, 2 deletionstest/unit/mp_error.result
Loading