aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Zhao <andyzhao@google.com>2022-09-27 14:19:13 -0700
committerGitHub <noreply@github.com>2022-09-27 14:19:13 -0700
commit962b643d6377bb5ab8678e062c100b9d23f53ba9 (patch)
tree048894c18fa6cf296bde72d43e779e40535cd44c
parenta8482d05254831d2db2b00fc6256e00daeab1495 (diff)
downloadgoogleapis-enterprise-certificate-proxy-962b643d6377bb5ab8678e062c100b9d23f53ba9.tar.gz
Chore: Replace any with interface{} (#37)
-rw-r--r--internal/signer/darwin/keychain/keychain.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/signer/darwin/keychain/keychain.go b/internal/signer/darwin/keychain/keychain.go
index 2752f86..fa798d9 100644
--- a/internal/signer/darwin/keychain/keychain.go
+++ b/internal/signer/darwin/keychain/keychain.go
@@ -83,7 +83,7 @@ func cfErrorFromRef(cfErr C.CFErrorRef) *cfError {
return nil
}
c := &cfError{e: cfErr}
- runtime.SetFinalizer(c, func(x any) {
+ runtime.SetFinalizer(c, func(x interface{}) {
C.CFRelease(C.CFTypeRef(x.(*cfError).e))
})
return c
@@ -142,7 +142,7 @@ func newKey(privateKeyRef C.SecKeyRef, certs []*x509.Certificate) (*Key, error)
// This struct now owns the key reference. Retain now and release on
// finalise in case the credential gets forgotten about.
C.CFRetain(C.CFTypeRef(privateKeyRef))
- runtime.SetFinalizer(k, func(x any) {
+ runtime.SetFinalizer(k, func(x interface{}) {
x.(*Key).Close()
})
return k, nil