mirror of
https://github.com/darlinghq/darling-security.git
synced 2024-11-23 12:09:41 +00:00
Fix a probable typo in Apple's code?
Maybe they changed `DERParseSequenceContent` after making libDER closed-source, and therefore this would be an issue with us using the last released libDER sources. This fixes certificate parsing and it was just a simple reversion to the old function call, which is why I think it was a typo in their updated code.
This commit is contained in:
parent
af59a6bc86
commit
c188d1f130
@ -1742,7 +1742,11 @@ static bool SecCertificateParse(SecCertificateRef certificate)
|
||||
|
||||
/* sequence we're given: encoded DERSubjPubKeyInfo */
|
||||
DERSubjPubKeyInfo pubKeyInfo;
|
||||
#ifdef DARLING
|
||||
drtn = DERParseSequence(&tbsCert.subjectPubKey,
|
||||
#else
|
||||
drtn = DERParseSequenceContent(&tbsCert.subjectPubKey,
|
||||
#endif
|
||||
DERNumSubjPubKeyInfoItemSpecs, DERSubjPubKeyInfoItemSpecs,
|
||||
&pubKeyInfo, sizeof(pubKeyInfo));
|
||||
require_noerr_quiet(drtn, badCert);
|
||||
|
Loading…
Reference in New Issue
Block a user