mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 03:45:25 +00:00
(feat) handling of c_hascertificate
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/* NGVCard+SOGo.m - this file is part of SOGo
|
||||
*
|
||||
* Copyright (C) 2009-2016 Inverse inc.
|
||||
* Copyright (C) 2009-2017 Inverse inc.
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -19,6 +19,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#import <Foundation/NSValue.h>
|
||||
#import <Foundation/NSTimeZone.h>
|
||||
|
||||
#import <NGExtensions/NGBase64Coding.h>
|
||||
@@ -1032,6 +1033,11 @@ convention:
|
||||
[fields setObject: [NSNull null] forKey: @"c_categories"];
|
||||
[fields setObject: @"vcard" forKey: @"c_component"];
|
||||
|
||||
// S/MIME certificate
|
||||
element = [self uniqueChildWithTag: @"key"];
|
||||
[fields setObject: [NSNumber numberWithInt: (element && ![element isVoid])]
|
||||
forKey: @"c_hascertificate"];
|
||||
|
||||
return fields;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2006-2016 Inverse inc.
|
||||
Copyright (C) 2006-2017 Inverse inc.
|
||||
|
||||
This file is part of SOGo.
|
||||
|
||||
@@ -58,7 +58,8 @@ static NSArray *folderListingFields = nil;
|
||||
@"c_screenname", @"c_o",
|
||||
@"c_mail", @"c_telephonenumber",
|
||||
@"c_categories",
|
||||
@"c_component", nil];
|
||||
@"c_component",
|
||||
@"c_hascertificate", nil];
|
||||
}
|
||||
|
||||
- (id) init
|
||||
|
||||
Reference in New Issue
Block a user