2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

extend ServerHello message with two fields (tls, tls_checkpeer)

This commit is contained in:
Laszlo Orban
2019-11-22 11:04:38 +01:00
parent f976a5d866
commit 33f6a16764
4 changed files with 47 additions and 4 deletions

View File

@@ -405,10 +405,18 @@ struct _ServerHello
*/
size_t n_servers;
char **servers;
/*
* true if server uses tls protocol
*/
protobuf_c_boolean tls;
/*
* true if client auth is required with signed cert
*/
protobuf_c_boolean tls_checkpeer;
};
#define SERVER_HELLO__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&server_hello__descriptor) \
, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL }
, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0,NULL, 0, 0 }
/* ClientMessage methods */