Skip to content

Commit a40bab8

Browse files
committed
build: add OPENSSL_API_COMPAT macro
This commit adds the OPENSSL_API_COMPAT macro and sets it to version 1.1.1 of OpenSSL when linking with a shared OpenSSL library. The motivation for this is that when linking against OpenSSL 3.x there are a lot of deprecation warnings and this allows them to be avoided. When we later upgrade the code base to 3.x this value can then be updated.
1 parent 0a2f16b commit a40bab8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

node.gypi

+5-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,11 @@
382382
],
383383
}],
384384
],
385-
}]]
385+
}, {
386+
# Set the 1.1.1 as the API compability level until to avoid the
387+
# deprecation warnings when using OpenSSL 3.x.
388+
'defines': ['OPENSSL_API_COMPAT=0x1010107fL'],
389+
}]]
386390

387391
}, {
388392
'defines': [ 'HAVE_OPENSSL=0' ]

0 commit comments

Comments
 (0)