summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-03-25 21:47:33 +0000
committerMartin Storsjö <martin@martin.st>2010-03-25 21:47:33 +0000
commitaa8bf2fb8062880e02c0b8ffeb3bd5fce0753733 (patch)
tree6748e4ac3bc4ad7306ecdf523c85c8a245d80b0d /libavformat/rtsp.h
parentb17d11c6329848b6f6e3af90baf2bcf044275ce9 (diff)
Make RTSP use the generic http authentication code
Still hardcoded to use Basic auth, without parsing the reply headers Originally committed as revision 22676 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.h')
-rw-r--r--libavformat/rtsp.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h
index d317eee44b..e9625bc65d 100644
--- a/libavformat/rtsp.h
+++ b/libavformat/rtsp.h
@@ -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 @@ typedef struct RTSPState {
* 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 ? */