File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -250,13 +250,22 @@ class AsyncClient : public AsyncSocketBase
250
250
friend void _tcpsock_dns_found (const char * name, struct ip_addr * ipaddr, void * arg);
251
251
};
252
252
253
+ #if ASYNC_TCP_SSL_ENABLED
254
+ typedef std::function<int (void * arg, const char *filename, uint8_t **buf)> AcSSlFileHandler;
255
+ #endif
256
+
253
257
class AsyncServer : public AsyncSocketBase
254
258
{
255
259
public:
256
260
AsyncServer (IPAddress addr, uint16_t port);
257
261
AsyncServer (uint16_t port);
258
262
~AsyncServer ();
259
263
void onClient (AcConnectHandler cb, void * arg);
264
+ #if ASYNC_TCP_SSL_ENABLED
265
+ // Dummy, so it compiles with ESP Async WebServer library enabled.
266
+ void onSslFileRequest (AcSSlFileHandler cb, void * arg) {};
267
+ void beginSecure (const char *cert, const char *private_key_file, const char *password) {};
268
+ #endif
260
269
void begin ();
261
270
void end ();
262
271
You can’t perform that action at this time.
0 commit comments