passepartoutvpn / tunnelkit

VPN client library for Apple platforms.
GNU General Public License v3.0
3 stars 1 forks source link

More issues compiling with latest macOS and XCode #398

Closed Jdgmx closed 9 months ago

Jdgmx commented 9 months ago

Summary

I'm having more issues when compiling with XCode 15.1 and macOS Sonoma 14.2. My project compiled just fine before the latests changes to macOS/XCode and tunnelkit 6.2.0. I'm just building as I have always did.

Steps to reproduce

Build the project.

What is the current bug behavior?

Getting these errors:

SourcePackages/checkouts/tunnelkit/Sources/CTunnelKitOpenVPNProtocol/TLSBox.m:409:18: error: call to undeclared function 'SSL_get1_peer_certificate'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    X509 *cert = SSL_get1_peer_certificate(self.ssl);
SourcePackages/checkouts/tunnelkit/Sources/CTunnelKitOpenVPNProtocol/TLSBox.m:409:18: note: did you mean 'SSL_get_peer_certificate'?
In file included from SourcePackages/checkouts/tunnelkit/Sources/CTunnelKitOpenVPNProtocol/TLSBox.m:37:
Build/Products/Debug/openssl.framework/Headers/ssl.h:1688:14: note: 'SSL_get_peer_certificate' declared here
__owur X509 *SSL_get_peer_certificate(const SSL *s);
             ^
SourcePackages/checkouts/tunnelkit/Sources/CTunnelKitOpenVPNProtocol/TLSBox.m:457:18: error: call to undeclared function 'SSL_get1_peer_certificate'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    X509 *cert = SSL_get1_peer_certificate(self.ssl);

What is the expected correct behavior?

Code compiles correctly.

keeshux commented 9 months ago

Do a full clean, your dependencies are outdated.

Jdgmx commented 9 months ago

Yes, my dependencies were outdated but for some reason I had a fixed version for openssl-apple in my project's package dependencies settings.