Skip to content

Commit 9923c72

Browse files
authored
Merge pull request #871 from mt-johan/feature/no-senderkid-req-for-pbmac1
Make PKIMessage.PKIHeader.senderKID optional for PBE/PBMAC1
2 parents 8b46ae7 + 395e6ca commit 9923c72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ejbca-common-web/src/org/ejbca/core/protocol/cmp/CmpResponseMessage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,8 @@ public boolean create() throws InvalidKeyException, NoSuchAlgorithmException, No
455455
myPKIBody = new PKIBody(23, myErrorContent); // 23 = error
456456
}
457457

458-
final boolean pbeProtected = (pbeKeyId != null) && (pbeKey != null) && (pbeDigestAlg != null) && (pbeMacAlg != null);
459-
final boolean pbmac1Protected = (pbmac1KeyId != null) && (pbmac1Key != null) && (pbmac1PrfAlg != null) && (pbmac1MacAlg != null);
458+
final boolean pbeProtected = (pbeKey != null) && (pbeDigestAlg != null) && (pbeMacAlg != null);
459+
final boolean pbmac1Protected = (pbmac1Key != null) && (pbmac1PrfAlg != null) && (pbmac1MacAlg != null);
460460
if (pbeProtected) {
461461
myPKIHeader.setProtectionAlg(new AlgorithmIdentifier(CMPObjectIdentifiers.passwordBasedMac));
462462
PKIHeader header = myPKIHeader.build();

0 commit comments

Comments
 (0)