Skip to content

Commit

Permalink
Add empty_ok parameter to cert_identifier validator
Browse files Browse the repository at this point in the history
  • Loading branch information
oliwel committed Jan 12, 2021
1 parent f5920d4 commit 68b7443
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ sub _validate {

if (!$cert) {
##! 16: 'unknown identifier ' . $cert_identifier
return if ($self->param('empty_ok'));
validation_error("I18N_OPENXPKI_UI_VALIDATOR_CERT_IDENTIFIER_EXISTS_NO_SUCH_ID");
}

Expand Down Expand Up @@ -109,6 +110,11 @@ The certificate identifier
=over
=item empty_ok
Silently pass if no cert_identifier was given, useful when a workflow
has an alternative way to pass the identifier, e.g. via PEM block.
=item pki_realm
Can be the name of a realm or the special word I<_any>. If not given, default
Expand Down

0 comments on commit 68b7443

Please sign in to comment.