summaryrefslogtreecommitdiffstats
path: root/cryptoapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'cryptoapi.c')
-rw-r--r--cryptoapi.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/cryptoapi.c b/cryptoapi.c
index 275fec9..9324b27 100644
--- a/cryptoapi.c
+++ b/cryptoapi.c
@@ -27,13 +27,18 @@
* LITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+#include "syshead.h"
+
+#ifdef WIN32
+
+#include <openssl/ssl.h>
+#include <openssl/err.h>
#include <windows.h>
#include <wincrypt.h>
#include <stdio.h>
#include <ctype.h>
#include <assert.h>
-#include <openssl/ssl.h>
-#include <openssl/err.h>
#ifdef __MINGW32_VERSION
/* MinGW w32api is incomplete when it comes to CryptoAPI, as per version 3.1
@@ -461,3 +466,7 @@ int SSL_CTX_use_CryptoAPI_certificate(SSL_CTX *ssl_ctx, const char *cert_prop)
}
return 0;
}
+
+#else
+static void dummy (void) {}
+#endif /* WIN32 */