Skip to content

Commit 31757af

Browse files
committed
fix: fix tests build on Windows
1 parent 25fcc4f commit 31757af

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

include/dpp/http_server.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace dpp {
3434
* plaintext or SSL incoming request, and passes that request to a callback
3535
* to generate the response.
3636
*/
37-
struct http_server : public socket_listener<http_server_request> {
37+
struct DPP_EXPORT http_server : public socket_listener<http_server_request> {
3838

3939
/**
4040
* @brief Request handler callback to use for all incoming HTTP(S) requests

include/dpp/socket.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,7 @@ struct DPP_EXPORT raii_socket {
190190
~raii_socket();
191191
};
192192

193+
extern template DPP_EXPORT bool raii_socket::set_option<int>(int level, int name, int value);
194+
193195

194196
}

include/dpp/ssl_context.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ struct wrapped_ssl_ctx;
3939
* @param public_key Public key PEM pathname for server contexts
4040
* @return wrapped SSL context
4141
*/
42-
wrapped_ssl_ctx* generate_ssl_context(uint16_t port = 0, const std::string &private_key = "", const std::string &public_key = "");
42+
DPP_EXPORT wrapped_ssl_ctx* generate_ssl_context(uint16_t port = 0, const std::string &private_key = "", const std::string &public_key = "");
4343

4444
/**
4545
* @brief Release an SSL context
4646
* @warning Only do this if you are certain no SSL connections remain that use this context.
4747
* As OpenSSL is a C library it is impossible for us to track this on its behalf. Be careful!
4848
* @param port port number to release
4949
*/
50-
void release_ssl_context(uint16_t port = 0);
50+
DPP_EXPORT void release_ssl_context(uint16_t port = 0);
5151

5252
};

0 commit comments

Comments
 (0)