[Live-devel] Authorization question

Ross Finlayson finlayson at live555.com
Fri Oct 19 06:19:47 PDT 2012


> in the method "RTSPServer::RTSPClientConnection::authenticationOK" is only checked  whether the "fAuthDB" is NULL. Would it not make sense to check if the "AuthDB" is empty ("fAuthDB->IsEmpty()")?

No, no special code is needed for this case.  If the authentication database exists, but is empty (i.e., no <username>,<password> pairs have yet been entered into it), then all commands will fail with "401 Unauthorized".  Which is as it should be.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20121019/159e2cfa/attachment.html>


More information about the live-devel mailing list