Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Shout
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
developer
SwiftSSH
Shout
Commits
d06b02c4
Commit
d06b02c4
authored
6 years ago
by
Jake Heiser
Browse files
Options
Downloads
Patches
Plain Diff
Update to Swift 4.2
parent
59702ca3
Branches
Branches containing commit
Tags
0.4.3
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Package.resolved
+8
-8
8 additions, 8 deletions
Package.resolved
Sources/Bindings/Channel.swift
+1
-1
1 addition, 1 deletion
Sources/Bindings/Channel.swift
Sources/Bindings/Error.swift
+1
-1
1 addition, 1 deletion
Sources/Bindings/Error.swift
with
10 additions
and
10 deletions
Package.resolved
+
8
−
8
View file @
d06b02c4
...
...
@@ -2,21 +2,21 @@
"object": {
"pins": [
{
"package": "
CSSH
",
"repositoryURL": "https://github.com/
jakeheis/CSSH
",
"package": "
Socket
",
"repositoryURL": "https://github.com/
IBM-Swift/BlueSocket
",
"state": {
"branch": null,
"revision": "
579a20508ab598f78713a60fed95706efd06bbcb
",
"version": "
1.0.3
"
"revision": "
26c8f4e4e3000421a0c97aaf0c7b5e9aa5475222
",
"version": "
0.12.94
"
}
},
{
"package": "
Socket
",
"repositoryURL": "https://github.com/
IBM-Swift/BlueSocket
",
"package": "
CSSH
",
"repositoryURL": "https://github.com/
jakeheis/CSSH
",
"state": {
"branch": null,
"revision": "
d42af4542b6d5a0114fc6a4aae479c454b52b64a
",
"version": "
0.12.68
"
"revision": "
579a20508ab598f78713a60fed95706efd06bbcb
",
"version": "
1.0.3
"
}
}
]
...
...
This diff is collapsed.
Click to expand it.
Sources/Bindings/Channel.swift
+
1
−
1
View file @
d06b02c4
...
...
@@ -54,7 +54,7 @@ public class Channel {
var
data
=
Data
(
repeating
:
0
,
count
:
Channel
.
bufferSize
)
let
rc
:
Int
=
data
.
withUnsafeMutableBytes
{
(
buffer
:
UnsafeMutablePointer
<
Int8
>
)
in
return
libssh2_channel_read_ex
(
cChannel
,
0
,
buffer
,
data
.
count
)
return
libssh2_channel_read_ex
(
cChannel
,
0
,
buffer
,
Channel
.
bufferSize
)
}
try
LibSSH2Error
.
checkOnRead
(
code
:
Int32
(
rc
),
session
:
cSession
)
...
...
This diff is collapsed.
Click to expand it.
Sources/Bindings/Error.swift
+
1
−
1
View file @
d06b02c4
...
...
@@ -43,7 +43,7 @@ public struct LibSSH2Error: Swift.Error {
var
messagePointer
:
UnsafeMutablePointer
<
Int8
>
?
=
nil
var
length
:
Int32
=
0
libssh2_session_last_error
(
session
,
&
messagePointer
,
&
length
,
0
)
let
message
=
messagePointer
==
nil
?
"Error"
:
String
(
cString
:
messagePointer
!
)
let
message
=
messagePointer
.
flatMap
({
String
.
init
(
cString
:
$0
)
})
??
"Error"
self
.
init
(
code
:
code
,
message
:
message
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment