Skip to content

Commit

Permalink
Minor fix to appease ipa install. The code in question was getting (d…
Browse files Browse the repository at this point in the history
…ogtagpki#364)

an algorithmId name with trailing whitespace, which was not recognized.

Co-authored-by: Jack Magne <[email protected]>
  • Loading branch information
jmagne and Jack Magne authored Mar 31, 2020
1 parent ba48744 commit 53de751
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,14 @@ public void setValue(String name, Locale locale,
}
if (name.equals(VAL_ALGORITHM)) {
try {
String newValue = value;
if(newValue != null) {
newValue = newValue.trim();
}
CMS.debug("SigningAlgDefault: setValue value: " + newValue);
info.set(X509CertInfo.ALGORITHM_ID,
new CertificateAlgorithmId(
AlgorithmId.get(value)));
AlgorithmId.get(newValue)));
} catch (Exception e) {
CMS.debug("SigningAlgDefault: setValue " + e.toString());
throw new EPropertyException(CMS.getUserMessage(
Expand Down

0 comments on commit 53de751

Please sign in to comment.