diff --git a/src/apps/uclient/mainuclient.c b/src/apps/uclient/mainuclient.c index 2516f4d..a8f2b92 100644 --- a/src/apps/uclient/mainuclient.c +++ b/src/apps/uclient/mainuclient.c @@ -520,35 +520,47 @@ int main(int argc, char **argv) #endif #endif } + } + int use_cert = 0; + int use_ca_cert = 0; + if(cert_file[0] && pkey_file[0]) + { + use_cert = 1; + } + if(ca_cert_file[0]) + { + use_ca_cert = 1; + } + + if(use_cert) + { int sslind = 0; - for(sslind = 0; sslind