From 736979a9a2e93d6b60733ecef2ad2408c8ad39de Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sun, 18 Jun 2017 01:31:23 +0200 Subject: [PATCH] [evrtsp] Add POST rtsp method - used for device verification --- src/evrtsp/evrtsp.h | 2 ++ src/evrtsp/rtsp.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/evrtsp/evrtsp.h b/src/evrtsp/evrtsp.h index c7cd275c..7ee1f5ca 100644 --- a/src/evrtsp/evrtsp.h +++ b/src/evrtsp/evrtsp.h @@ -46,6 +46,7 @@ extern "C" { /* Response codes */ #define RTSP_OK 200 #define RTSP_UNAUTHORIZED 401 +#define RTSP_FORBIDDEN 403 struct evrtsp_connection; @@ -62,6 +63,7 @@ enum evrtsp_cmd_type { EVRTSP_REQ_SET_PARAMETER, EVRTSP_REQ_FLUSH, EVRTSP_REQ_TEARDOWN, + EVRTSP_REQ_POST, }; enum evrtsp_request_kind { EVRTSP_REQUEST, EVRTSP_RESPONSE }; diff --git a/src/evrtsp/rtsp.c b/src/evrtsp/rtsp.c index e623b165..8019f539 100644 --- a/src/evrtsp/rtsp.c +++ b/src/evrtsp/rtsp.c @@ -260,6 +260,10 @@ evrtsp_method(enum evrtsp_cmd_type type) method = "TEARDOWN"; break; + case EVRTSP_REQ_POST: + method = "POST"; + break; + default: method = NULL; break;