]> tinc-vpn.org Git - tinc/commitdiff
Fix building if there is no openssl/engine.h
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 4 Apr 2026 14:59:08 +0000 (16:59 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 4 Apr 2026 14:59:08 +0000 (16:59 +0200)
src/openssl/crypto.c

index 3960c3e8433c6830bdbf8788a9748254ff4a80ee..44c7be57a6a4133c5cf0681a939e6f0bf08bbfbf 100644 (file)
@@ -20,7 +20,9 @@
 #include "../system.h"
 
 #include <openssl/rand.h>
+#if OPENSSL_VERSION_MAJOR < 3
 #include <openssl/engine.h>
+#endif
 
 #include "../crypto.h"