Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port LDAP code to swift and fix memory leaks #520

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 56 additions & 82 deletions CryptoLib/CryptoLib.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@
@property (nonatomic, strong) NSString *identifier;
@property (nonatomic, strong) NSData *cert;
@property (nonatomic, strong) NSDate *validTo;
@property (nonatomic, strong) NSArray<NSString*> *policyIdentifiers;

@end
File renamed without changes.
2 changes: 0 additions & 2 deletions CryptoLib/CryptoLib/CryptoLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ FOUNDATION_EXPORT const unsigned char CryptoLibVersionString[];
#import <CryptoLib/Decrypt.h>
#import <CryptoLib/CdocParser.h>
#import <CryptoLib/AbstractSmartToken.h>
#import <CryptoLib/MoppLdapConfiguration.h>
#import <CryptoLib/OpenLdap.h>
13 changes: 0 additions & 13 deletions CryptoLib/CryptoLib/LDAPResponse.h

This file was deleted.

51 changes: 0 additions & 51 deletions CryptoLib/CryptoLib/LDAPResponse.m

This file was deleted.

33 changes: 0 additions & 33 deletions CryptoLib/CryptoLib/Ldap/Attribute.h

This file was deleted.

61 changes: 0 additions & 61 deletions CryptoLib/CryptoLib/Ldap/Attribute.m

This file was deleted.

48 changes: 0 additions & 48 deletions CryptoLib/CryptoLib/Ldap/AttributeSet.m

This file was deleted.

34 changes: 0 additions & 34 deletions CryptoLib/CryptoLib/Ldap/MoppLdapConfiguration.h

This file was deleted.

39 changes: 0 additions & 39 deletions CryptoLib/CryptoLib/Ldap/MoppLdapConfiguration.m

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//
// AttributeSet.h
// MoppLdapConfiguration.swift
// CryptoLib
//
/*
* Copyright 2017 - 2024 Riigi Infosüsteemi Amet
*
Expand All @@ -20,14 +21,16 @@
*
*/

#import <Foundation/Foundation.h>
#import "Addressee.h"
#import "ldap.h"

@interface AttributeSet : NSObject
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSMutableArray *values;
- (id)initWithParser:(LDAP*)ldap ldapMessage:(LDAPMessage*)ldapMessage;
@end
import Foundation

public class MoppLdapConfiguration {
var LDAPCERTS: [String] = []
var LDAPPERSONURL: String = ""
var LDAPCORPURL: String = ""

public init(ldapCerts: [String], ldapPersonURL: String, ldapCorpURL: String) {
self.LDAPCERTS = ldapCerts
self.LDAPPERSONURL = ldapPersonURL
self.LDAPCORPURL = ldapCorpURL
}
}
32 changes: 0 additions & 32 deletions CryptoLib/CryptoLib/Ldap/OpenLdap.h

This file was deleted.

Loading