Skip to content

Commit

Permalink
Don't allocate new RSA keys when signing (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynne committed Apr 15, 2024
1 parent ee06dd4 commit c2595b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/JWTKit/RSA/RSAKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public final class RSAKey: OpenSSLKey {
let type: KeyType

internal var c: OpaquePointer {
return CJWTKitBoringSSL_EVP_PKEY_get1_RSA(self.cRaw)
CJWTKitBoringSSL_EVP_PKEY_get0_RSA(self.cRaw)
}

let cRaw: OpaquePointer
Expand Down

0 comments on commit c2595b9

Please sign in to comment.