Skip to content

Commit

Permalink
Fix uses of StreamSocketSecurityLevel for Swift 4.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
bm-w committed Apr 8, 2018
1 parent b6c733d commit 39d78a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/TSocketTransport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public class TCFSocketTransport: TStreamTransport {
CFWriteStreamSetProperty(writeStream, .shouldCloseNativeSocket, kCFBooleanTrue)

if secure {
CFReadStreamSetProperty(readStream, .socketSecurityLevel, StreamSocketSecurityLevel.negotiatedSSL._rawValue)
CFWriteStreamSetProperty(writeStream, .socketSecurityLevel, StreamSocketSecurityLevel.negotiatedSSL._rawValue)
CFReadStreamSetProperty(readStream, .socketSecurityLevel, StreamSocketSecurityLevel.negotiatedSSL.rawValue)
CFWriteStreamSetProperty(writeStream, .socketSecurityLevel, StreamSocketSecurityLevel.negotiatedSSL.rawValue)
}

inputStream = readStream as InputStream
Expand Down

0 comments on commit 39d78a5

Please sign in to comment.