Commit 1edc34b
authored
PackageCollectionsSigning: correct
This function takes a named argument which is the `EVP_PKEY` and checks
the underlying public key type (expected to be one of RSA or EC).
However, instead of checking the key type of the given public key, it
was always returning the key type of the underlying certificate. This
happened to give the correct result as the current usage always used the
same object to get the key. This corrects that and uses the proper
accessors for the value.BoringSSLCertificate.keyType(of:) (#3679)1 parent 2d7b2bc commit 1edc34b
File tree
1 file changed
+1
-1
lines changed- Sources/PackageCollectionsSigning/Certificate
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
0 commit comments