Skip to content

Commit aa10de9

Browse files
committed
Add openssl
1 parent 5e1c371 commit aa10de9

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

Package.resolved

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"object": {
3+
"pins": [
4+
{
5+
"package": "OpenSSL",
6+
"repositoryURL": "https://github.com/krzyzanowskim/OpenSSL",
7+
"state": {
8+
"branch": null,
9+
"revision": "0faf71a188bcfdf0245cab42886b9b240ca71c52",
10+
"version": "1.1.2200"
11+
}
12+
}
13+
]
14+
},
15+
"version": 1
16+
}

Package.swift

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ let package = Package(
1212
],
1313
dependencies: [
1414
// Dependencies declare other packages that this package depends on.
15-
// .package(url: /* package url */, from: "1.0.0"),
15+
.package(url: "https://github.com/krzyzanowskim/OpenSSL", from: "1.0.0"),
1616
],
1717
targets: [
1818
.target(
1919
name: "IperfCLib",
20-
dependencies: [],
20+
dependencies: [
21+
.product(name: "OpenSSL", package: "openssl")
22+
],
2123
path: "Sources/IperfCLib"
2224
),
2325
.target(

Sources/IperfCLib/include/iperf_config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
/* #undef HAVE_SO_MAX_PACING_RATE */
6969

7070
/* OpenSSL Is Available */
71-
/* #undef HAVE_SSL */
71+
#define HAVE_SSL 1
7272

7373
/* Define to 1 if you have the <stdint.h> header file. */
7474
#define HAVE_STDINT_H 1

sync.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ git clone --quiet --depth 1 --single-branch "$REPO_URL" --branch "$TAG" "$CHECKO
1414
echo "Configuring the source files"
1515
pushd "$PWD"
1616
cd "$CHECKOUT_PATH"
17-
# ./configure --without-openssl > /dev/null
17+
./configure > /dev/null
1818
popd
1919

2020
echo "Copying relevant source files"

0 commit comments

Comments
 (0)