eid-viewer
eid-viewer library
CertificateStore.h
1 //
2 // CertificateStore.h
3 // eID Viewer
4 //
5 // Created by buildslave on 29/04/15.
6 // Copyright (c) 2015 Fedict. All rights reserved.
7 //
8 
9 #import <Cocoa/Cocoa.h>
10 #import "binhandler.h"
11 #include <eid-viewer/certhelpers.h>
12 
13 typedef NS_ENUM(NSInteger, eIDDumpType)
14 {
15 eIDDumpTypeDer = DUMP_DER, eIDDumpTypePem = DUMP_PEM,};
16 
17 @interface CertificateStore:NSObject < NSOutlineViewDataSource, NSOutlineViewDelegate, binhandler >
18  @property NSMutableDictionary *
19  CertificateData;
20 @property NSOutlineView * ov;
21 @property AppDelegate * ui;
22 -(instancetype) initWithOutlineView:(NSOutlineView *) view;
23 -(NSData *) certificateForKey:(NSString *) key;
24 -(void) dumpFile:(int)
25  fd forKey:(NSString *)
26  key withFormat:(eIDDumpType) format;
27 
28 -(NSString *) fileNameForKey:(NSString *) key;
29 -(NSString *) keyForParent:(NSString *) key;
30 -(void) clear;
31 -(void) setValid:(eIDResult)
32  valid forKey:(NSString *) key;
33 
34 @end
Dump in PEM format.
Definition: certhelpers.h:42
Dump using ASN.1 Distinguished Encoding Rules (DER)
Definition: certhelpers.h:41
Definition: AppDelegate.h:12
Certificate helper functions. Linux/OSX only.
Definition: CertificateStore.h:17