Skip to content

Commit

Permalink
Add option to not use a credential for PKCS12
Browse files Browse the repository at this point in the history
  • Loading branch information
swaterkamp committed Jan 30, 2019
1 parent c674d96 commit c7f4609
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gsa/src/web/pages/alerts/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ class AlertComponent extends React.Component {
method_data_smb_file_path_type: undefined,
method_data_verinice_server_report_format: select_verinice_report_id(
report_formats),
method_data_pkcs12_credential: undefined,
method_data_pkcs12_credential: UNSET_VALUE,
method_data_vfire_credential: undefined,
method_data_vfire_base_url: undefined,
method_data_vfire_call_description: undefined,
Expand Down
4 changes: 2 additions & 2 deletions gsa/src/web/pages/alerts/sourcefiremethodpart.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import TextField from 'web/components/form/textfield';
import FileField from 'web/components/form/filefield';

import PropTypes from 'web/utils/proptypes';
import {renderSelectItems} from 'web/utils/render';
import {renderSelectItems, UNSET_VALUE} from 'web/utils/render';
import withPrefix from 'web/utils/withPrefix';

const SourcefireMethodPart = ({
Expand Down Expand Up @@ -81,7 +81,7 @@ const SourcefireMethodPart = ({
<Divider>
<Select
name={prefix + 'pkcs12_credential'}
items={renderSelectItems(credentialOptions)}
items={renderSelectItems(credentialOptions, UNSET_VALUE)}
value={pkcs12Credential}
onChange={onCredentialChange}
/>
Expand Down

0 comments on commit c7f4609

Please sign in to comment.