Replaced the username cookie with a compact auth option.

That option performs authentication of username, password in
a single go for clients that request Connection: Close.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-01-12 12:01:08 +01:00
parent 151f107591
commit 2e2310187d
3 changed files with 70 additions and 63 deletions
+7 -1
View File
@@ -50,6 +50,7 @@ enum {
HEADER_CSTP_ATYPE,
HEADER_DTLS_MTU,
HEADER_DTLS_CIPHERSUITE,
HEADER_CONNECTION,
};
enum {
@@ -76,7 +77,12 @@ struct http_req_st {
unsigned int next_header;
unsigned char cookie[COOKIE_SIZE];
unsigned int cookie_set;
unsigned int ocuser_cookie_set;
/* some CISCO clients reconnect for each request
* and is impossible to keep state for them. For
* that we ask username and password in one go for
* them.
*/
unsigned int needs_compact_auth;
unsigned char master_secret[TLS_MASTER_SIZE];
unsigned int master_secret_set;