Skip to content

Commit 68c144d

Browse files
Revert "Fixed revoke reason"
This reverts commit 2569ae1.
1 parent 2569ae1 commit 68c144d

3 files changed

Lines changed: 1 addition & 6 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,3 @@ ASALocalRun/
330330
.mfractor/
331331
.claude/settings.local.json
332332
sample change.txt
333-
.claude/settings.json

HydrantCAProxy/Client/Models/Enums/RevocationReasons.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ namespace Keyfactor.HydrantId.Client.Models.Enums
1616
[JsonConverter(typeof(StringEnumConverter))]
1717
public enum RevocationReasons
1818
{
19-
[EnumMember(Value = "0")] Unspecified = 0,
2019
[EnumMember(Value = "1")] KeyCompromise = 1,
2120
[EnumMember(Value = "3")] AffiliationChanged = 3,
2221
[EnumMember(Value = "4")] Superseded = 4,

HydrantCAProxy/RequestManager.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ public RevocationReasons GetMapRevokeReasons(uint keyfactorRevokeReason)
7878
RevocationReasons returnStatus;
7979
switch (keyfactorRevokeReason)
8080
{
81-
case 0:
82-
returnStatus = RevocationReasons.Unspecified;
83-
break;
8481
case 1:
8582
returnStatus = RevocationReasons.KeyCompromise;
8683
break;
@@ -95,7 +92,7 @@ public RevocationReasons GetMapRevokeReasons(uint keyfactorRevokeReason)
9592
break;
9693
default:
9794
Log.LogError("GetMapRevokeReasons: unsupported revoke reason {Reason}", keyfactorRevokeReason);
98-
throw new RevokeReasonNotSupportedException($"Revoke reason {keyfactorRevokeReason} is not supported. Supported values: 0 (Unspecified), 1 (KeyCompromise), 3 (AffiliationChanged), 4 (Superseded), 5 (CessationOfOperation).");
95+
throw new RevokeReasonNotSupportedException($"Revoke reason {keyfactorRevokeReason} is not supported. Supported values: 1 (KeyCompromise), 3 (AffiliationChanged), 4 (Superseded), 5 (CessationOfOperation).");
9996
}
10097

10198
Log.LogTrace("GetMapRevokeReasons: {Input} -> {Mapped}", keyfactorRevokeReason, returnStatus);

0 commit comments

Comments
 (0)