Add App::removeServerName

This commit is contained in:
Alex Hultman
2020-08-17 03:55:31 +02:00
parent d14d31ce47
commit 77aced05f8
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -45,6 +45,12 @@ public:
return std::move(*this);
}
TemplatedApp &&removeServerName(std::string hostname_pattern) {
us_socket_context_remove_server_name(SSL, (struct us_socket_context_t *) httpContext, hostname_pattern.c_str());
return std::move(*this);
}
/* Returns the SSL_CTX of this app, or nullptr. */
void *getNativeHandle() {
return us_socket_context_get_native_handle(SSL, (struct us_socket_context_t *) httpContext);