Skip to content

Commit

Permalink
Merge branch 'fb-DSS-2764-Upgrade_Bouncy_Castle_to_1_78' into 'main'
Browse files Browse the repository at this point in the history
DSS-2764 Change OID in the system test

See merge request signserver/signserver!335
  • Loading branch information
mlundblad committed Apr 16, 2024
2 parents 21685d1 + 993e7cb commit 5b6e332
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ public void test09HashWithNotAllowedAlgorithm() throws Exception {
}

/**
* Test request a timestamp using a made-up dummy hash algorithm name
* Test request a timestamp using RSA OID for hash algorithm
*/
@Test
public void test10HashWithIllegalAlgorithm() throws Exception {
Expand All @@ -635,9 +635,9 @@ public void test10HashWithIllegalAlgorithm() throws Exception {
workerSession.removeWorkerProperty(WORKER1.getId(), TimeStampSigner.ACCEPTEDALGORITHMS);
workerSession.reloadConfiguration(WORKER1.getId());

// Dummy OID used for testing an invalid hashing algorithm
String DUMMY_OID = "1.42.42.42.42";
ASN1ObjectIdentifier oid = new ASN1ObjectIdentifier(DUMMY_OID);
// RSA OID used for testing an invalid hashing algorithm
String RSA_OID = "1.3.112.4.1.66";
ASN1ObjectIdentifier oid = new ASN1ObjectIdentifier(RSA_OID);
int status = testWithHash(oid, null, true);

assertEquals("Should not accept an invalid hash algorithm", PKIStatus.REJECTION, status);
Expand Down

0 comments on commit 5b6e332

Please sign in to comment.