karastojko / mailio

mailio is a cross platform C++ library for MIME format and SMTP, POP3 and IMAP protocols. It is based on standard C++ 17 and Boost library.
Other
372 stars 98 forks source link

Allow external initialisation of the SSL context for smtps #175

Open FillipMatthew opened 3 weeks ago

FillipMatthew commented 3 weeks ago

fixes karastojko/mailio#173

These are the changes for the smtps class that allow for the creation and initialisation of an SSL context externally to the library so that users can setup their SSL certificates or other settings that are not accessible when the context is kept private.

The default was also changed to use peer verification by default.

These changes should be easy to also apply to the other classes that need them.