MYDEREncoder.h
author Jens Alfke <jens@mooseyard.com>
Tue Jun 09 23:58:03 2009 -0700 (2009-06-09)
changeset 24 6856e071d25a
parent 16 c409dbc4f068
permissions -rw-r--r--
* 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.
jens@16
     1
//
jens@16
     2
//  MYDEREncoder.h
jens@16
     3
//  MYCrypto
jens@16
     4
//
jens@16
     5
//  Created by Jens Alfke on 5/29/09.
jens@16
     6
//  Copyright 2009 Jens Alfke. All rights reserved.
jens@16
     7
//
jens@16
     8
jens@16
     9
#import <Foundation/Foundation.h>
jens@16
    10
jens@16
    11
jens@16
    12
@interface MYDEREncoder : NSObject
jens@16
    13
{
jens@19
    14
    @private
jens@16
    15
    id _rootObject;
jens@16
    16
    NSMutableData *_output;
jens@16
    17
    NSError *_error;
jens@19
    18
    BOOL _forcePrintableStrings;
jens@16
    19
}
jens@16
    20
jens@16
    21
- (id) initWithRootObject: (id)object;
jens@16
    22
+ (NSData*) encodeRootObject: (id)rootObject error: (NSError**)outError;
jens@16
    23
jens@16
    24
@property (readonly) NSData* output;
jens@16
    25
@property (readonly, retain) NSError *error;
jens@16
    26
jens@16
    27
@end