MYCertificateInfo.h
changeset 27 d0aadddb9c64
parent 22 058394513f33
     1.1 --- a/MYCertificateInfo.h	Sat Jun 06 15:36:35 2009 -0700
     1.2 +++ b/MYCertificateInfo.h	Tue Jul 21 10:13:08 2009 -0700
     1.3 @@ -14,6 +14,7 @@
     1.4  {
     1.5      @private
     1.6      NSArray *_root;
     1.7 +    NSData *_data;
     1.8  }
     1.9  
    1.10  /** Initialize by parsing X.509 certificate data.
    1.11 @@ -35,6 +36,10 @@
    1.12  /** Returns YES if the issuer is the same as the subject. (Aka a "self-signed" certificate.) */
    1.13  @property (readonly) BOOL isRoot;
    1.14  
    1.15 +/** Verifies the certificate's signature, using the given public key.
    1.16 +    If the certificate is root/self-signed, use the cert's own subject public key. */
    1.17 +- (BOOL) verifySignatureWithKey: (MYPublicKey*)issuerPublicKey;
    1.18 +
    1.19  @end
    1.20  
    1.21