jens@16: // jens@16: // MYDEREncoder.h jens@16: // MYCrypto jens@16: // jens@16: // Created by Jens Alfke on 5/29/09. jens@16: // Copyright 2009 Jens Alfke. All rights reserved. jens@16: // jens@16: jens@16: #import jens@16: jens@16: jens@16: @interface MYDEREncoder : NSObject jens@16: { jens@19: @private jens@16: id _rootObject; jens@16: NSMutableData *_output; jens@16: NSError *_error; jens@19: BOOL _forcePrintableStrings; jens@16: } jens@16: jens@16: - (id) initWithRootObject: (id)object; jens@16: + (NSData*) encodeRootObject: (id)rootObject error: (NSError**)outError; jens@16: jens@16: @property (readonly) NSData* output; jens@16: @property (readonly, retain) NSError *error; jens@16: jens@16: @end