Mercurial > libavformat.hg
diff rtsp.h @ 5889:4b42835727aa libavformat
Make RTSP use the generic http authentication code
Still hardcoded to use Basic auth, without parsing the reply headers
author | mstorsjo |
---|---|
date | Thu, 25 Mar 2010 21:47:33 +0000 |
parents | 4ddbc14bc768 |
children | f075d373e9be |
line wrap: on
line diff
--- a/rtsp.h Thu Mar 25 21:46:14 2010 +0000 +++ b/rtsp.h Thu Mar 25 21:47:33 2010 +0000 @@ -26,6 +26,7 @@ #include "rtspcodes.h" #include "rtpdec.h" #include "network.h" +#include "httpauth.h" /** * Network layer over which RTP/etc packet data will be transported. @@ -232,8 +233,11 @@ * of RTSPMessageHeader->real_challenge */ enum RTSPServerType server_type; - /** base64-encoded authorization lines (username:password) */ - char *auth_b64; + /** plaintext authorization line (username:password) */ + char auth[128]; + + /** authentication state */ + HTTPAuthState auth_state; /** The last reply of the server to a RTSP command */ char last_reply[2048]; /* XXX: allocate ? */