Fixed iPhone OS build. (issue 3)
MYCertificate now checks validity of self-signed certs loaded from the keychain (because the Security framework doesn't validate self-signed certs.)
Whew, lots and lots of changes accumulated over the past few weeks. Mostly fixes for bugs I discovered while retrofitting Cloudy to use MYCrypto.
Changed the X.509 version number in generated certs from 1 to 3, so that SecCertificateCreateFromData on iPhone will accept them. :-/
* More work on iPhone compatibility. * Restored the signature-verification code to MYCertInfo, which I'd removed earlier. I now need it to verify self-signed certs, since the Security framework won't do it for me. * Merged MYCertificate-iPhone.m into MYCertificate.m since there's more shared code now.
A snapshot taken during the long, agonizing crawl toward getting everything running on iPhone.
Added a few comments. That is all.
* Created class MYCertificateRequest, factored out of MYCertificateInfo. * Added method to create a MYIdentity directly from a MYCertificateRequest. * Added raw modulus+exponent accessor and initializer for MYPublicKey. * Removed obsolete MYCertGen code, and the MYPrivateKey identity-creation method that used it.
Factored out the name accessors of MYParsedCertificate into a new class MYCertificateName, so that both subject and issuer can be accessed. A bit of other cleanup too.
Whew! MYParsedCertificate can now generate certs from scratch. Also added improvements and fixes to the BER/DER codecs.