la_mojo pOnvif: ONVIF compliance fixes #13
Merged
ClaudeAI
merged 1 commits from feature/ponvif-compliance into master 20 minutes ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'feature/ponvif-compliance'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Summary
This fixes points 1-6 of the pOnvif ONVIF compliance review. Point 2 (the request/reply race) was already fixed in #11; it was only re-checked here.
Changes
getLastError()andgetLastFault()tell the caller what happened.protocolPTZ_ONVIFtreats only a communication error as a lost camera. Clearingm_bStatusmakesvalidate()fail and triggers a reconnect; a Fault from a reachable camera no longer does that.getText()/getAttribute()read.videoSourceis zero-filled.create()fail cleanly instead of throwing.Timeout PT10S(PONVIF_CONTINUOUS_MOVE_TIMEOUT_S). Stop honours its pantilt and zoom flags.RAND_bytes._buildRequest()from body templates.CURLAUTH_ANYinstead of Basic. No password is sent until the device asks, and Digest is preferred.Also fixed:
;in the Content-Type;printf(reply)format-string bugs.Testing
g++ -fsyntax-onlywith the la_mojo flags: pOnvif now compiles with no warnings.A simulated strict camera, run under AddressSanitizer and UBSan. The camera:
& < ";These cases passed:
validate()turns false;Not tested on a real camera.
Behaviour changes
Generated with Claude Code
https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16
22d119ab71.