|
@@ -107,12 +107,6 @@ type
|
|
|
class function Get(ATagNo: Int32): IAsn1UniversalType; static;
|
|
class function Get(ATagNo: Int32): IAsn1UniversalType; static;
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
- // Moved to ClpAsn1Encodings.pas (kept here as a backward-compatibility alias)
|
|
|
|
|
- TDerEncoding = ClpAsn1Encodings.TDerEncoding;
|
|
|
|
|
-
|
|
|
|
|
- // Moved to ClpAsn1Core.pas (kept here as a backward-compatibility alias)
|
|
|
|
|
- TAsn1Object = ClpAsn1Core.TAsn1Object;
|
|
|
|
|
-
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Abstract base class for ASN.1 octet strings.
|
|
/// Abstract base class for ASN.1 octet strings.
|
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -8235,7 +8229,7 @@ begin
|
|
|
System.SetLength(FCache, 1024);
|
|
System.SetLength(FCache, 1024);
|
|
|
|
|
|
|
|
LOriginalEntry := FCache[LIndex];
|
|
LOriginalEntry := FCache[LIndex];
|
|
|
- if (LOriginalEntry <> nil) and TArrayUtilities.AreEqual<Byte>(AContents, LOriginalEntry.Contents) then
|
|
|
|
|
|
|
+ if (LOriginalEntry <> nil) and (TArrayUtilities.AreEqual<Byte>(AContents, LOriginalEntry.Contents)) then
|
|
|
begin
|
|
begin
|
|
|
Result := LOriginalEntry;
|
|
Result := LOriginalEntry;
|
|
|
Exit;
|
|
Exit;
|
|
@@ -8252,7 +8246,7 @@ begin
|
|
|
LExchangedEntry := FCache[LIndex];
|
|
LExchangedEntry := FCache[LIndex];
|
|
|
if LExchangedEntry <> LOriginalEntry then
|
|
if LExchangedEntry <> LOriginalEntry then
|
|
|
begin
|
|
begin
|
|
|
- if (LExchangedEntry <> nil) and TArrayUtilities.AreEqual<Byte>(AContents, LExchangedEntry.Contents) then
|
|
|
|
|
|
|
+ if (LExchangedEntry <> nil) and (TArrayUtilities.AreEqual<Byte>(AContents, LExchangedEntry.Contents)) then
|
|
|
begin
|
|
begin
|
|
|
Result := LExchangedEntry;
|
|
Result := LExchangedEntry;
|
|
|
Exit;
|
|
Exit;
|
|
@@ -8487,7 +8481,7 @@ begin
|
|
|
LStemLength := System.Length(LStemContents);
|
|
LStemLength := System.Length(LStemContents);
|
|
|
// Compare the first LStemLength bytes of both arrays
|
|
// Compare the first LStemLength bytes of both arrays
|
|
|
Result := (System.Length(FContents) > LStemLength) and
|
|
Result := (System.Length(FContents) > LStemLength) and
|
|
|
- TArrayUtilities.AreEqual<Byte>(System.Copy(FContents, 0, LStemLength), System.Copy(LStemContents, 0, LStemLength));
|
|
|
|
|
|
|
+ (TArrayUtilities.AreEqual<Byte>(System.Copy(FContents, 0, LStemLength), System.Copy(LStemContents, 0, LStemLength)));
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
function TDerObjectIdentifier.ToString(): String;
|
|
function TDerObjectIdentifier.ToString(): String;
|
|
@@ -9201,7 +9195,7 @@ begin
|
|
|
System.SetLength(FCache, 64);
|
|
System.SetLength(FCache, 64);
|
|
|
|
|
|
|
|
LOriginalEntry := FCache[LIndex];
|
|
LOriginalEntry := FCache[LIndex];
|
|
|
- if (LOriginalEntry <> nil) and TArrayUtilities.AreEqual<Byte>(AContents, LOriginalEntry.Contents) then
|
|
|
|
|
|
|
+ if (LOriginalEntry <> nil) and (TArrayUtilities.AreEqual<Byte>(AContents, LOriginalEntry.Contents)) then
|
|
|
begin
|
|
begin
|
|
|
Result := LOriginalEntry;
|
|
Result := LOriginalEntry;
|
|
|
Exit;
|
|
Exit;
|
|
@@ -9219,7 +9213,7 @@ begin
|
|
|
LExchangedEntry := FCache[LIndex];
|
|
LExchangedEntry := FCache[LIndex];
|
|
|
if LExchangedEntry <> LOriginalEntry then
|
|
if LExchangedEntry <> LOriginalEntry then
|
|
|
begin
|
|
begin
|
|
|
- if (LExchangedEntry <> nil) and TArrayUtilities.AreEqual<Byte>(AContents, LExchangedEntry.Contents) then
|
|
|
|
|
|
|
+ if (LExchangedEntry <> nil) and (TArrayUtilities.AreEqual<Byte>(AContents, LExchangedEntry.Contents)) then
|
|
|
begin
|
|
begin
|
|
|
Result := LExchangedEntry;
|
|
Result := LExchangedEntry;
|
|
|
Exit;
|
|
Exit;
|
|
@@ -13211,4 +13205,3 @@ begin
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
end.
|
|
end.
|
|
|
-
|
|
|