X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ntsimulator%2Fsrc%2Futils%2Futils.c;h=49b181684b448136be27180732dc24edd2f505bf;hb=f2d8f1002fa93848c80a88e5658db4816cba3020;hp=3da659986b2d8f460c652dc7f1f9db2c0397aa4a;hpb=226e12e7c9b504dc32fcf71f97483bb97195643d;p=sim%2Fo1-interface.git diff --git a/ntsimulator/src/utils/utils.c b/ntsimulator/src/utils/utils.c index 3da6599..49b1816 100644 --- a/ntsimulator/src/utils/utils.c +++ b/ntsimulator/src/utils/utils.c @@ -210,7 +210,14 @@ void prepare_ves_message_curl(CURL *curl) free(ves_auth_method); char url[300]; - sprintf(url, "https://%s:%d/eventListener/v7", ves_ip, ves_port); + char ves_protocol[15] = "https"; + if( !strcmp(getenv("VES_HTTPS"), "false") ) + { + strcpy(ves_protocol ,"http" ); + printf("VES connection protocol %s enabled\n", ves_protocol); + } + + sprintf(url, "%s://%s:%d/eventListener/v7", ves_protocol, ves_ip, ves_port); curl_easy_setopt(curl, CURLOPT_URL, url); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);