This repository was archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Use a custom PFX reader/writer on Unix OSes #42226
Merged
Merged
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
154ab21
Move PfxAsn to Common for sharing with X509Certificates
bartonjs 31d5a9c
Move VerifyMac logic to PfxAsn.manual.cs
bartonjs ad73818
Move EncryptedDataAsn to src/Common
bartonjs 6ba2d9d
Loader works (all tests pass)
bartonjs 81da280
Both import and export pass, Windows should build again
bartonjs c23c6ff
Re-enable some disabled PFX tests for Linux
bartonjs 347f2f0
Start prepping for move to shared Unix
bartonjs e74a9f6
Make the PFX exporter have no specific PAL references
bartonjs 9f5820e
Re-enable a bunch of tests on macOS
bartonjs 12771bc
Fix macOS compile
bartonjs 01624d8
Change ExportPublicKeyAsPkcs12 to expect success on macOS
bartonjs b1ef2da
Apple p12 export uses UnixExportProvider (modulo SafePasswordHandle)
bartonjs 7f47141
Factor out UnixPkcs12Reader
bartonjs 1783a5a
With some native changes, most of the cert tests pass now
bartonjs 2388510
Remove exportable from X509MoveToKeychain
bartonjs 52e8701
Add native support
bartonjs 443c862
Reading char2-explicit works
bartonjs d7ce17e
Writing Char2-explicit ECPrivateKey works
bartonjs 4fd38f6
Reading and writing im/explicit char-2 works in all formats
bartonjs d7a7c59
Im/export of explicit prime works for all formats
bartonjs 4b4017d
Fix exception
bartonjs 3a50954
Merge commit 'bbc47bb872adc78099ff47e9ec6d65d92b1a2fce' into custom_p…
bartonjs fa0cc8f
Merge commit 'a7ee8cdccce7d2607d58f9b93ce319209a238f7a' into custom_p…
bartonjs 4d2876a
Merge remote-tracking branch 'dotnet/master' into custom_pfx_loader_rb
bartonjs a94d543
Fix bad merge
bartonjs a259952
Simplify SafePasswordHandle
bartonjs d2881db
Commit asn.xml generated changes
bartonjs dfee702
Address missed namespace renames.
bartonjs bac76db
Remove remaining explicit EC parameters prototype code
bartonjs 23ea49b
Fix stale method doc
bartonjs d9d8711
Some missed namespace updates
bartonjs 23ce0e3
Revert unnecessary method
bartonjs d6680b5
Self-review cleanup
bartonjs 667bbd4
Make the empty collection exception message nicer
bartonjs f2da56e
Start defining complex PFX tests
bartonjs bd5d0df
Add more tests
bartonjs 93550fd
Correctly handle reading no mac with null-vs-empty password
bartonjs f4efc90
Merge remote-tracking branch 'dotnet/master' into custom_pfx_loader_rb
bartonjs bf02f6f
Add more PFX loader tests
bartonjs 34d7ec1
Shroud the invalid keys
bartonjs d513909
More tests to increase coverage
bartonjs 43738bd
Add a fallback PFX detector on macOS
bartonjs d250146
Address a tripping assert (yay comprehensive tests)
bartonjs 2fbbc76
Add a test for corrupt certs (ccov)
bartonjs 942aa74
Make tests take into account Apple's private key matching
bartonjs ba7a183
Make reference correctly release if CFStringCreateFromSpan throws
bartonjs 8c6f2c4
Run import in both exportable and not
bartonjs 0302bec
Speed up the tests a bit
bartonjs 1bff605
Handle public/private mismatch during exportable import on macOS
bartonjs edf52e8
Add a test for multiple import in a non-canonical form
bartonjs 511a0de
Self-review cleanup
bartonjs fa5db2a
Add missing CFRelease
bartonjs 9ea3428
Address some differences between Windows 8.1 and Windows 10
bartonjs fe28861
Fix tests on macOS for duplicate item entry
bartonjs 5f1416c
Simplify ownership of cfPassphrase in X509ImportCertificate
bartonjs 4bf42f8
Avoid double-release on double-Dispose of ApplePkcs12CertLoader
bartonjs 1839b21
Save pfxAsn to a local until after the potential throw
bartonjs 107e630
Make GrowIfNeeded prefer the local to the ref.
bartonjs 5143fb9
Break up UnixPkcs12Reader.Decrypt
bartonjs 0df06c4
Dispose the old pal after making a new one.
bartonjs ae4f02a
Fix nasty arraypool imbalance
bartonjs d985688
Clarify some array rental lifetimes
bartonjs 8efbfdb
Properly return temporary decryption buffers on null-vs-empty fallback
bartonjs aa0b23d
Handle rare "wrong failure" reason in Empty/Null_NoMac
bartonjs 2f25a31
Move the Win10 PFX failure changover back a few builds
bartonjs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.