Commit 7f41ffd
committed
build: fix compiling against openssl with no-psk
fixes #36464
Node 15 prior to this commit will not compile if openssl is built with
no-psk. Compiling emits an error like this:
```
crypto_tls.cc:(.text+0x4c27): undefined reference to `node::crypto::TLSWrap::SetCACerts(node::crypto::SecureContext*)'
```
Blame on crypto_tls.cc shows the file was created in a refactor. Before
that refactor SetCACerts was defined outside OPENSSL_NO_PSK ifndef
https://github.com/nodejs/node/blob/6751b6dc3da102f259b74b7453032edadc7a37ca/src/crypto/crypto_ssl.cc#L8391 parent e2b954b commit 7f41ffd
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1339 | 1339 | | |
1340 | 1340 | | |
1341 | 1341 | | |
1342 | | - | |
1343 | | - | |
1344 | 1342 | | |
1345 | 1343 | | |
1346 | 1344 | | |
| |||
1355 | 1353 | | |
1356 | 1354 | | |
1357 | 1355 | | |
| 1356 | + | |
| 1357 | + | |
1358 | 1358 | | |
1359 | 1359 | | |
1360 | 1360 | | |
| |||
0 commit comments