mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
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:
+7
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user