Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added sha256, sha384, sha512 authentication protocols in the Add SNMP Device interface #8960

Merged
merged 1 commit into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions http_src/vue/modal-add-snmp-device.vue
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ const selected_auth_protocol = ref(null);
const snmp_auth_protocols = ref([
{ id: "md5", label: "MD5" },
{ id: "sha", label: "SHA" },
{ id: "sha256", label: "SHA256" },
{ id: "sha384", label: "SHA384" },
{ id: "sha512", label: "SHA512" },
]);

const snmp_privacy_protocols = ref([
Expand Down
2 changes: 1 addition & 1 deletion scripts/lua/modules/http_lint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ local function validateSnmpLevel(level)
end

local function validateSnmpAuthProtocol(protocol)
local protocols = {"md5", "sha"}
local protocols = {"md5", "sha","sha256","sha384","sha512"}
return validateChoice(protocols, protocol)
end

Expand Down
Loading