mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-30 15:30:31 +00:00
3c0f029d38
- NSScroller use of display fixes - NSMenuView use of display fixes - NSToolbar fixes for delegate based default items - NSToolbarItemView selection drawing - NSControl fixes - NSGraphicsContext behavior fixes - NSBundle pathForResourceFile:inDirectory:, pathsForResourcesOfType:inDirectory fixes, localization table caching - NSAffineTransform decoding - NSString boolValue, intValuem integerValue, longLongValue fixes - NSPathUtilities constants, skeletons - renamed objc_msg_send to objc_msgSendv, objc_msgSendv_stret implementation for Windows (unused) - NSOldXMLReader fixes when disabling exceptions - NSCurrentLocaleIsMetric for windows - Switch Foundation to use -l ws2_32
87 lines
3.7 KiB
Objective-C
87 lines
3.7 KiB
Objective-C
#import <CoreFoundation/CoreFoundation.h>
|
|
#import <CFNetwork/CFNetworkExport.h>
|
|
#import <CFNetwork/CFNetServices.h>
|
|
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamPropertyShouldCloseNativeSocket;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamPropertySocketSecurityLevel;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamPropertySOCKSProxy;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamPropertySSLPeerCertificates;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamPropertySSLPeerTrust;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamPropertySSLSettings;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamPropertyProxyLocalByPass;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamPropertySocketRemoteHost;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamPropertySocketRemoteNetService;
|
|
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSSLLevel;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSSLAllowsExpiredCertificates;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSSLAllowsExpiredRoots;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSSLAllowsAnyRoot;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSSLValidatesCertificateChain;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSSLPeerName;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSSLCertificates;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSSLIsServer;
|
|
|
|
typedef enum {
|
|
kCFStreamSocketSecurityNone = 0,
|
|
kCFStreamSocketSecuritySSLv2,
|
|
kCFStreamSocketSecuritySSLv3,
|
|
kCFStreamSocketSecuritySSLv23,
|
|
kCFStreamSocketSecurityTLSv1
|
|
} CFStreamSocketSecurityProtocol;
|
|
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSocketSecurityLevelNone;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSocketSecurityLevelSSLv2;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSocketSecurityLevelSSLv3;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSocketSecurityLevelTLSv1;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSocketSecurityLevelNegotiatedSSL;
|
|
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamPropertySOCKSProxyHost;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamPropertySOCKSProxyPort;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamPropertySOCKSVersion;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSocketSOCKSVersion4;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamSocketSOCKSVersion5;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamPropertySOCKSUser;
|
|
CFNETWORK_EXPORT const CFStringRef kCFStreamPropertySOCKSPassword;
|
|
|
|
CFNETWORK_EXPORT const CFIndex kCFStreamErrorDomainWinSock;
|
|
|
|
enum {
|
|
kCFStreamErrorSOCKSSubDomainNone = 0,
|
|
kCFStreamErrorSOCKSSubDomainVersionCode = 1,
|
|
kCFStreamErrorSOCKS4SubDomainResponse = 2,
|
|
kCFStreamErrorSOCKS5SubDomainUserPass = 3,
|
|
kCFStreamErrorSOCKS5SubDomainMethod = 4,
|
|
kCFStreamErrorSOCKS5SubDomainResponse = 5
|
|
};
|
|
|
|
/* kCFStreamErrorSOCKSSubDomainNone*/
|
|
enum {
|
|
kCFStreamErrorSOCKS5BadResponseAddr = 1,
|
|
kCFStreamErrorSOCKS5BadState = 2,
|
|
kCFStreamErrorSOCKSUnknownClientVersion = 3
|
|
};
|
|
|
|
|
|
/* kCFStreamErrorSOCKS4SubDomainResponse*/
|
|
enum {
|
|
kCFStreamErrorSOCKS4RequestFailed = 91,
|
|
kCFStreamErrorSOCKS4IdentdFailed = 92,
|
|
kCFStreamErrorSOCKS4IdConflict = 93
|
|
};
|
|
|
|
/* kCFStreamErrorSOCKS5SubDomainMethod*/
|
|
enum {
|
|
kSOCKS5NoAcceptableMethod = 0xFF
|
|
};
|
|
|
|
CFNETWORK_EXPORT Boolean CFSocketStreamPairSetSecurityProtocol (CFReadStreamRef socketReadStream,CFWriteStreamRef socketWriteStream,CFStreamSocketSecurityProtocol securityProtocol);
|
|
|
|
CFNETWORK_EXPORT SInt32 CFSocketStreamSOCKSGetError(CFStreamError* error);
|
|
|
|
CFNETWORK_EXPORT SInt32 CFSocketStreamSOCKSGetErrorSubdomain(CFStreamError* error);
|
|
|
|
CFNETWORK_EXPORT void CFStreamCreatePairWithSocketToCFHost (CFAllocatorRef alloc,CFHostRef host,SInt32 port,CFReadStreamRef *readStream,CFWriteStreamRef *writeStream);
|
|
|
|
CFNETWORK_EXPORT void CFStreamCreatePairWithSocketToNetService (CFAllocatorRef alloc,CFNetServiceRef service,CFReadStreamRef *readStream,CFWriteStreamRef *writeStream);
|
|
|