Skip to content

Commit a8bc4f3

Browse files
committed
Update comments
1 parent 9fdcfd1 commit a8bc4f3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/FoundationNetworking/URLSession/libcurl/EasyHandle.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ extension _EasyHandle {
223223
} else {
224224
// When no certificate file has been specified, assemble all the certificate files
225225
// from the Android certificate store and writes them to a single `cacerts.pem` file
226-
//
226+
227227
// See https://github.com/apple/swift-nio-ssl/blob/main/Sources/NIOSSL/AndroidCABundle.swift
228228
let certsFolders = [
229229
"/apex/com.android.conscrypt/cacerts", // >= Android14
@@ -274,7 +274,9 @@ extension _EasyHandle {
274274
try! fs.close()
275275

276276
aggregateCertPath.withCString { pathPtr in
277-
// note that it would be nice to use CFURLSessionOptionCAPATH instead (https://curl.se/libcurl/c/CURLOPT_CAPATH.html), but it requires a special command to hash the directory contents, which we cannot
277+
// note that it would be nice to use CFURLSessionOptionCAPATH instead
278+
// (see https://curl.se/libcurl/c/CURLOPT_CAPATH.html)
279+
// but it requires `c_rehash` to be run on the folder, which Android doesn't do
278280
try! CFURLSession_easy_setopt_ptr(rawHandle, CFURLSessionOptionCAINFO, UnsafeMutablePointer(mutating: pathPtr)).asError()
279281
}
280282
return

0 commit comments

Comments
 (0)