Skip to content

Commit 4c91df6

Browse files
authored
update ziti-tunnel-sdk-c@v1.6.0 (#278)
* log identity cert on enrollment and startup * update ziti-tunnel-sdk-c@v1.6.0
1 parent 3199e7e commit 4c91df6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lib/Ziti.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ import CZitiPrivate
348348
}
349349

350350
let zid = ZitiIdentity(id: subj, ztAPIs: resp.ztAPIs, certs: certs, ca: ca)
351-
log.info("Enrolled id:\(subj) with controller: \(zid.ztAPI)", function:"enroll()")
351+
log.info("Enrolled id:\(subj) with controller: \(zid.ztAPI), cert: \(resp.id.cert)", function:"enroll()")
352352

353353
enrollCallback(zid, nil)
354354
}
@@ -441,6 +441,12 @@ import CZitiPrivate
441441
controllers: ctrls,
442442
id: ziti_id_cfg(cert: certPEMPtr, key: privKeyPEMPtr, ca: caPEMPtr, oidc: nil),
443443
cfg_source: nil)
444+
445+
log.debug("configuring ziti-sdk-c with:\n" +
446+
" id: \(id.id)\n" +
447+
" ztAPIs: \(id.ztAPIs ?? [])\n" +
448+
" cert: \(certPEM)\n" +
449+
" ca: \(id.ca ?? "none")")
444450

445451
var zitiStatus = ziti_context_init(&self.ztx, &zitiCfg)
446452

0 commit comments

Comments
 (0)