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 b129632
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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
3 changes: 2 additions & 1 deletion gsad/src/gsad_gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -7393,7 +7393,8 @@ append_alert_method_data (GString *xml, params_t *data, const char *method,
{
if (strcmp (name, "defense_center_ip") == 0
|| strcmp (name, "defense_center_port") == 0
|| strcmp (name, "pkcs12_credential") == 0)
|| (strcmp (name, "pkcs12_credential") == 0
&& !str_equal (param->value, "0")))
xml_string_append (xml,
"<data><name>%s</name>%s</data>",
name,
Expand Down

0 comments on commit b129632

Please sign in to comment.