Skip to content

Metadata + fix for digest realm on certain devices#381

Closed
MDalprato wants to merge 15 commits intoagsh:masterfrom
Arteco-Global:fix_pre_master
Closed

Metadata + fix for digest realm on certain devices#381
MDalprato wants to merge 15 commits intoagsh:masterfrom
Arteco-Global:fix_pre_master

Conversation

@MDalprato
Copy link
Contributor

Added support for live metadata info from the onvif device.
Fixed an issue during the discovery of devices.

MDalprato and others added 15 commits September 10, 2025 15:07
Missing 'return' so the code continued on and tried to parse garbage.
Note, SHA256 is not available on older NodeJS versions so we need to import a JS SHA256 library in a future commit

Also this fails with mixed-mode ONVIF NVTs where the Authorizaition Header has multiple options eg

'Digest realm="PROXY", nonce="638987102484070019", algorithm=MD5, qop="auth", Digest realm="PROXY", nonce="638987102484070019", algorithm=SHA-256, qop="auth"'

The Regex breaks with "cannot read properties of null (reading 'slice')
This is described in the ONVIF Spec and tested with a HikVision camera in MD5+AND_SHA256 mode
The try/catch for crypto.createHash would have had the sme result, but this makes the code clearer
…autenticazione e migliorare la robustezza del parsing.
New analytics & fix for onvif discovery for some hikvision nvrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants