add an additional async notification communication method based on callback
[openssl.git] / crypto / async / async_locl.h
index 786cf0099c1951a5278ea8149ef060ed271cbb77..85dfcfa6327a9d9c67a897e2cc733a6c7fc795b6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
  *
- * Licensed under the OpenSSL license (the "License").  You may not use
+ * Licensed under the Apache License 2.0 (the "License").  You may not use
  * this file except in compliance with the License.  You can obtain a copy
  * in the file LICENSE in the source distribution or at
  * https://www.openssl.org/source/license.html
 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 #endif
 
-#include <internal/async.h>
+#if defined(_WIN32)
+# include <windows.h>
+#endif
+
+#include "internal/async.h"
 #include <openssl/crypto.h>
 
 typedef struct async_ctx_st async_ctx;
@@ -55,6 +59,9 @@ struct async_wait_ctx_st {
     struct fd_lookup_st *fds;
     size_t numadd;
     size_t numdel;
+    ASYNC_callback_fn callback;
+    void *callback_arg;
+    int status;
 };
 
 DEFINE_STACK_OF(ASYNC_JOB)