MYPrivateKey.h
changeset 26 d9c2a06d4e4e
parent 13 6fd9177eb6da
     1.1 --- a/MYPrivateKey.h	Sun Apr 19 00:01:41 2009 -0700
     1.2 +++ b/MYPrivateKey.h	Wed Jul 01 14:19:13 2009 -0700
     1.3 @@ -49,15 +49,6 @@
     1.4  //@{
     1.5  #if !TARGET_OS_IPHONE
     1.6  
     1.7 -/** Creates a self-signed identity certificate using this key-pair.
     1.8 -    The attributes describe the certificate's metadata, including its expiration date and the
     1.9 -    subject's name. Keys for the dictionary are given below; the only mandatory one is
    1.10 -    kMYIdentityCommonNameKey.
    1.11 -    The resulting identity certificate includes X.509 extended attributes allowing it to be
    1.12 -    used for SSL connections. (Plug: See my MYNetwork library for an easy way to run SSL
    1.13 -    servers and clients.) */
    1.14 -- (MYIdentity*) createSelfSignedIdentityWithAttributes: (NSDictionary*)attributes;
    1.15 -
    1.16  /** Exports the private key as a data blob, so that it can be stored as a backup, or transferred
    1.17      to another computer. Since the key is sensitive, it must be exported in encrypted form
    1.18      using a user-chosen passphrase. This method will display a standard alert panel, run by
    1.19 @@ -94,15 +85,3 @@
    1.20  //@}
    1.21  
    1.22  @end
    1.23 -
    1.24 -
    1.25 -/* Attribute keys for creating identities: */
    1.26 -
    1.27 -#define kMYIdentityCommonNameKey    @"Common Name"      // NSString. Required!
    1.28 -#define kMYIdentityGivenNameKey     @"Given Name"
    1.29 -#define kMYIdentitySurnameKey       @"Surname"
    1.30 -#define kMYIdentityDescriptionKey   @"Description"
    1.31 -#define kMYIdentityEmailAddressKey  @"Email Address"
    1.32 -#define kMYIdentityValidFromKey     @"Valid From"       // NSDate. Defaults to the current date/time
    1.33 -#define kMYIdentityValidToKey       @"Valid To"         // NSDate. Defaults to one year from ValidFrom
    1.34 -#define kMYIdentitySerialNumberKey  @"Serial Number"    // NSNumber. Defaults to 1