aboutsummaryrefslogtreecommitdiff
path: root/crypto/async/async_locl.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-02-17 14:14:36 +0000
committerMatt Caswell <matt@openssl.org>2015-11-20 23:32:18 +0000
commit9ec1e03194568630a2e58232d56e9d37dd13ed7d (patch)
tree0e6c1fa2f6895d99d0cdc36733c2b813dd41bedd /crypto/async/async_locl.h
parent501083049590455b1862edd7573fd51bb37bb037 (diff)
downloadopenssl-9ec1e03194568630a2e58232d56e9d37dd13ed7d.zip
openssl-9ec1e03194568630a2e58232d56e9d37dd13ed7d.tar.gz
openssl-9ec1e03194568630a2e58232d56e9d37dd13ed7d.tar.bz2
Add null async implementation
Create a "null" async implementation for platforms that lack support. This just does nothing when called and therefore performs synchronously. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/async/async_locl.h')
-rw-r--r--crypto/async/async_locl.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/async/async_locl.h b/crypto/async/async_locl.h
index fefe62a..4a6cb3e 100644
--- a/crypto/async/async_locl.h
+++ b/crypto/async/async_locl.h
@@ -57,10 +57,7 @@ typedef struct async_ctx_st ASYNC_CTX;
#include "arch/async_win.h"
#include "arch/async_posix.h"
-
-#ifndef ASYNC_ARCH
-# error Failed to detect async arch
-#endif
+#include "arch/async_null.h"
struct async_ctx_st {
ASYNC_FIBRE dispatcher;