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  eIDDumpTypeDer = DUMP_DER,
15  eIDDumpTypePem = DUMP_PEM,
16 };
17 
18 @interface CertificateStore : NSObject<NSOutlineViewDataSource,NSOutlineViewDelegate,binhandler>
19 @property NSMutableDictionary* CertificateData;
20 @property NSOutlineView* ov;
21 @property AppDelegate* ui;
22 -(instancetype)initWithOutlineView:(NSOutlineView*)view;
23 -(NSData*)certificateForKey:(NSString*)key;
24 -(void)dumpFile:(int)fd forKey:(NSString*)key withFormat:(eIDDumpType)format;
25 -(NSString*)fileNameForKey:(NSString*)key;
26 -(NSString*)keyForParent:(NSString*)key;
27 -(void)clear;
28 -(void)setValid:(eIDResult)valid forKey:(NSString*)key;
29 @end
Dump in PEM format.
Definition: certhelpers.h:40
Dump using ASN.1 Distinguished Encoding Rules (DER)
Definition: certhelpers.h:39
Definition: AppDelegate.h:12
Definition: binhandler.h:12
Certificate helper functions. Linux/OSX only.
Definition: CertificateStore.h:18