unbit / vpn-ws

A VPN system over websockets
MIT License
605 stars 100 forks source link

some frameworks are deprecated #25

Open Sajjad-Taghinezhad opened 2 years ago

Sajjad-Taghinezhad commented 2 years ago

when building on macOS 12.4, got this error

src/ssl.c:83:22: error: 'SSLCreateContext' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Werror,-Wdeprecated-declarations]

kSSLClientSide kSSLStreamType SSLSetProtocolVersionMin ... SSLClose

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:1689:1: note: 'SSLRead' has been explicitly marked deprecated here SSLRead (SSLContextRef context, ^

src/ssl.c:188:2: error: 'SSLClose' is deprecated: first deprecated in macOS 10.15 - No longer supported. Use Network.framework. [-Werror,-Wdeprecated-declarations]

and so more