Implement complete server certificate verification

This commit is contained in:
Yihong Wu committed 2021-12-29 17:41:29 +08:00
1 parent 1c1560f6ca
commit f94ac6351e
30 files changed
+868 -411

No files matched your search

+1
View File
@@ -140,6 +140,7 @@ typedef struct CM_ACCOUNT
bool Startup; // Startup account
bool CheckServerCert; // Check the server certificate
bool RetryOnServerCert; // Retry on invalid server certificate
bool AddDefaultCA; // Use default trust store
X *ServerCert; // Server certificate
char old_server_name[MAX_HOST_NAME_LEN + 1]; // Old server name
bool Inited; // Initialization flag