Skip to content
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
2 changes: 2 additions & 0 deletions ASN1Decoder.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@
412A9E4D1F55C6500099110C /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand All @@ -371,6 +372,7 @@
412A9E4E1F55C6500099110C /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand Down
4 changes: 2 additions & 2 deletions ASN1Decoder/ASN1Identifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import Foundation


class ASN1Identifier : CustomStringConvertible {
public class ASN1Identifier : CustomStringConvertible {

enum Class : UInt8 {
case universal = 0x00
Expand Down Expand Up @@ -93,7 +93,7 @@ class ASN1Identifier : CustomStringConvertible {
return TagNumber(rawValue: rawValue & 0x1F) ?? .endOfContent
}

var description: String {
public var description: String {
if typeClass() == .universal {
return String(describing: tagNumber())
}
Expand Down
12 changes: 6 additions & 6 deletions ASN1Decoder/ASN1Object.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@
import Foundation


public class ASN1Object : CustomStringConvertible {
open class ASN1Object : CustomStringConvertible {

init() {
}

var rawValue: Data?
public internal(set) var rawValue: Data?

var identifier: ASN1Identifier?
public internal(set) var identifier: ASN1Identifier?

var value: Any?
public internal(set) var value: Any?

var sub: [ASN1Object]?
public internal(set) var sub: [ASN1Object]?

weak var parent: ASN1Object?
public internal(set) weak var parent: ASN1Object?


func sub(_ index: Int) -> ASN1Object? {
Expand Down
2 changes: 1 addition & 1 deletion ASN1Decoder/Asn1Decoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import Foundation


public class ASN1DERDecoder {
open class ASN1DERDecoder {

public static func decode(data: Data) throws -> [ASN1Object] {
var iterator = data.makeIterator()
Expand Down