Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package belle-sip for openSUSE:Factory checked in at 2023-08-28 17:16:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/belle-sip (Old) and /work/SRC/openSUSE:Factory/.belle-sip.new.1766 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "belle-sip" Mon Aug 28 17:16:47 2023 rev:38 rq:1106248 version:5.2.98 Changes: -------- --- /work/SRC/openSUSE:Factory/belle-sip/belle-sip.changes 2023-06-28 21:33:36.365947323 +0200 +++ /work/SRC/openSUSE:Factory/.belle-sip.new.1766/belle-sip.changes 2023-08-28 17:16:48.048067059 +0200 @@ -1,0 +2,5 @@ +Mon Aug 28 07:48:39 UTC 2023 - Paolo Stivanin <[email protected]> + +- Update to 5.2.98 (no changelog) + +------------------------------------------------------------------- Old: ---- belle-sip-5.2.73.tar.bz2 New: ---- belle-sip-5.2.98.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ belle-sip.spec ++++++ --- /var/tmp/diff_new_pack.jz7tFP/_old 2023-08-28 17:16:49.404115755 +0200 +++ /var/tmp/diff_new_pack.jz7tFP/_new 2023-08-28 17:16:49.408115898 +0200 @@ -20,7 +20,7 @@ %define soname libbellesip %define sover 1 Name: belle-sip -Version: 5.2.73 +Version: 5.2.98 Release: 0 Summary: C object-oriented SIP Stack License: GPL-3.0-or-later ++++++ belle-sip-5.2.73.tar.bz2 -> belle-sip-5.2.98.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/include/CMakeLists.txt new/belle-sip-5.2.98/include/CMakeLists.txt --- old/belle-sip-5.2.73/include/CMakeLists.txt 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/include/CMakeLists.txt 2023-07-27 15:48:34.000000000 +0200 @@ -53,6 +53,13 @@ wakelock.h ) +# Fix for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108667 +if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" + AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12.1.0 + AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 14) + set_source_files_properties(mainloop.h PROPERTIES COMPILE_OPTIONS "-Wno-error=maybe-uninitialized") +endif() + set(BELLE_SIP_HEADER_FILES ) foreach(HEADER_FILE ${HEADER_FILES}) list(APPEND BELLE_SIP_HEADER_FILES "${CMAKE_CURRENT_LIST_DIR}/belle-sip/${HEADER_FILE}") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/include/belle-sip/bodyhandler.h new/belle-sip-5.2.98/include/belle-sip/bodyhandler.h --- old/belle-sip-5.2.73/include/belle-sip/bodyhandler.h 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/include/belle-sip/bodyhandler.h 2023-07-27 15:48:34.000000000 +0200 @@ -20,6 +20,13 @@ #ifndef belle_sip_body_handler_h #define belle_sip_body_handler_h +enum belle_sip_body_handler_direction{ + BELLE_SIP_BODY_HANDLER_RECV, + BELLE_SIP_BODY_HANDLER_SEND, +}; + +typedef enum belle_sip_body_handler_direction belle_sip_body_handler_direction_t; + BELLE_SIP_BEGIN_DECLS #define BELLE_SIP_BODY_HANDLER(obj) BELLE_SIP_CAST(obj,belle_sip_body_handler_t) @@ -100,7 +107,7 @@ #define BELLE_SIP_FILE_BODY_HANDLER(obj) BELLE_SIP_CAST(obj, belle_sip_file_body_handler_t) -BELLESIP_EXPORT belle_sip_file_body_handler_t *belle_sip_file_body_handler_new(const char *filepath, belle_sip_body_handler_progress_callback_t progress_cb, void *data); +BELLESIP_EXPORT belle_sip_file_body_handler_t *belle_sip_file_body_handler_new(const char *filepath, belle_sip_body_handler_progress_callback_t progress_cb, void *data, belle_sip_body_handler_direction_t direction); /** * @brief Buffering file body handler creation @@ -109,7 +116,7 @@ * what remains in buffer when the end function is called is delivered through a last call to rcv_chunk * The original purpose of this is to be able to deliver modulo(16) size chunks to the file transfer decryption function */ -BELLESIP_EXPORT belle_sip_file_body_handler_t *belle_sip_buffering_file_body_handler_new(const char *filepath, const size_t buffer_size, belle_sip_body_handler_progress_callback_t progress_cb, void *data); +BELLESIP_EXPORT belle_sip_file_body_handler_t *belle_sip_buffering_file_body_handler_new(const char *filepath, const size_t buffer_size, belle_sip_body_handler_progress_callback_t progress_cb, void *data, belle_sip_body_handler_direction_t direction); BELLESIP_EXPORT size_t belle_sip_file_body_handler_get_file_size(belle_sip_file_body_handler_t *file_bh); BELLESIP_EXPORT void belle_sip_file_body_handler_set_user_body_handler(belle_sip_file_body_handler_t *file_bh, belle_sip_user_body_handler_t *user_bh); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/src/belle_sip_internal.h new/belle-sip-5.2.98/src/belle_sip_internal.h --- old/belle-sip-5.2.73/src/belle_sip_internal.h 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/src/belle_sip_internal.h 2023-07-27 15:48:34.000000000 +0200 @@ -690,6 +690,7 @@ belle_http_response_t *response; belle_sip_channel_t *channel; int auth_attempt_count; + int redirect_count; int background_task_id; int cancelled; int resubmitted; /* Indicates whether this request has been resubmitted to a new channel after the first one was closed by the server.*/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/src/belle_sip_resolver.c new/belle-sip-5.2.98/src/belle_sip_resolver.c --- old/belle-sip-5.2.73/src/belle_sip_resolver.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/src/belle_sip_resolver.c 2023-07-27 15:48:34.000000000 +0200 @@ -704,6 +704,7 @@ dns_res_enable_search(ctx->R, search_enabled); /*belle_sip_message("resolver_process_data(): revents=%i",revents);*/ error = dns_res_check(ctx->R); + if (!error) { struct dns_rr rr; union dns_any any; @@ -1708,6 +1709,13 @@ if (ttl < BELLE_SIP_RESOLVER_CONTEXT(data)->min_ttl) BELLE_SIP_RESOLVER_CONTEXT(data)->min_ttl = ttl; if (srv_results){ belle_sip_list_t *elem; + + if (ctx->a_fallback_ctx){ + ctx->a_fallback_completed = TRUE; /* we don't need a/aaaa fallback anymore.*/ + belle_sip_resolver_context_cancel(ctx->a_fallback_ctx); + belle_sip_object_unref(ctx->a_fallback_ctx); + ctx->a_fallback_ctx = NULL; + } /* take a ref of each srv_results because the last A resolution may terminate synchronously and destroy the list before the loop terminate */ ctx->srv_results = belle_sip_list_copy(srv_results); @@ -1721,12 +1729,6 @@ srv_results = belle_sip_list_free_with_data(srv_results, belle_sip_object_unref); /* Since we have SRV results, we can cancel the srv timeout, and cancel the fallback a/aaaa resolution */ belle_sip_source_cancel((belle_sip_source_t*)ctx); - if (ctx->a_fallback_ctx){ - ctx->a_fallback_completed = TRUE; /* we don't need a/aaaa fallback anymore.*/ - belle_sip_resolver_context_cancel(ctx->a_fallback_ctx); - belle_sip_object_unref(ctx->a_fallback_ctx); - ctx->a_fallback_ctx = NULL; - } }else{ /* No SRV result. Possibly notify the a/aaaa fallback if already arrived*/ ctx->srv_completed = TRUE; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/src/bodyhandler.c new/belle-sip-5.2.98/src/bodyhandler.c --- old/belle-sip-5.2.73/src/bodyhandler.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/src/bodyhandler.c 2023-07-27 15:48:34.000000000 +0200 @@ -652,6 +652,7 @@ bctbx_vfs_file_t *file; belle_sip_user_body_handler_t *user_bh; belle_sip_body_handler_buffer_t buffer; + belle_sip_body_handler_direction_t direction; }; static void belle_sip_file_body_handler_destroy(belle_sip_file_body_handler_t *obj) { @@ -689,7 +690,8 @@ static void belle_sip_file_body_handler_begin_recv_transfer(belle_sip_body_handler_t *base) { belle_sip_file_body_handler_t *obj = (belle_sip_file_body_handler_t *)base; bctbx_vfs_t *vfs = bctbx_vfs_get_default(); - + if(obj->direction != BELLE_SIP_BODY_HANDLER_RECV) + bctbx_error("Attempting to receive a file with a body handler initialized for sending"); if (obj->filepath == NULL) return; obj->file = bctbx_file_open(vfs, obj->filepath, "w"); if (!obj->file) { @@ -705,6 +707,8 @@ belle_sip_file_body_handler_t *obj = (belle_sip_file_body_handler_t *)base; bctbx_vfs_t *vfs = bctbx_vfs_get_default(); + if(obj->direction != BELLE_SIP_BODY_HANDLER_SEND) + bctbx_error("Attempting to send a file with a body handler initialized for receiving"); if (obj->filepath == NULL) return; obj->file = bctbx_file_open(vfs, obj->filepath, "r"); if (!obj->file) { @@ -810,11 +814,11 @@ } BELLE_SIP_INSTANCIATE_CUSTOM_VPTR_END -belle_sip_file_body_handler_t *belle_sip_file_body_handler_new(const char *filepath, belle_sip_body_handler_progress_callback_t progress_cb, void *data) { +belle_sip_file_body_handler_t *belle_sip_file_body_handler_new(const char *filepath, belle_sip_body_handler_progress_callback_t progress_cb, void *data, belle_sip_body_handler_direction_t direction) { // Get file size if it exists int64_t expected_size = BCTBX_VFS_ERROR; struct stat statbuf; - if (stat(filepath, &statbuf) == 0) { + if (direction == BELLE_SIP_BODY_HANDLER_SEND && stat(filepath, &statbuf) == 0) { bctbx_vfs_t *vfs = bctbx_vfs_get_default(); bctbx_vfs_file_t *fp = bctbx_file_open(vfs, filepath, "r"); expected_size = bctbx_file_size(fp); @@ -823,6 +827,7 @@ belle_sip_file_body_handler_t *obj = belle_sip_object_new(belle_sip_file_body_handler_t); belle_sip_body_handler_init((belle_sip_body_handler_t*)obj, progress_cb, data); + obj->direction = direction; obj->filepath = belle_sip_strdup(filepath); obj->user_bh = NULL; if (expected_size != BCTBX_VFS_ERROR) { @@ -839,8 +844,8 @@ return obj; } -belle_sip_file_body_handler_t *belle_sip_buffering_file_body_handler_new(const char *filepath, const size_t buffer_size, belle_sip_body_handler_progress_callback_t progress_cb, void *data) { - belle_sip_file_body_handler_t *obj = belle_sip_file_body_handler_new(filepath, progress_cb, data); +belle_sip_file_body_handler_t *belle_sip_buffering_file_body_handler_new(const char *filepath, const size_t buffer_size, belle_sip_body_handler_progress_callback_t progress_cb, void *data, belle_sip_body_handler_direction_t direction) { + belle_sip_file_body_handler_t *obj = belle_sip_file_body_handler_new(filepath, progress_cb, data, direction); obj->buffer.size=buffer_size; obj->buffer.data=(uint8_t *)belle_sip_malloc(buffer_size); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/src/dialog.c new/belle-sip-5.2.98/src/dialog.c --- old/belle-sip-5.2.73/src/dialog.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/src/dialog.c 2023-07-27 15:48:34.000000000 +0200 @@ -725,6 +725,7 @@ /* do not need to do anything because not set yet or set by previous invite transaction obj->needs_ack=FALSE;*/ } } else if (strcmp(belle_sip_request_get_method(req),"BYE")==0){ + int may_kill_last_transaction = FALSE; /*15.1.1 UAC Behavior A BYE request is constructed as would any other request within a @@ -742,11 +743,20 @@ /*what should we do with other reponse >300 ?? */ if (code>=200 || (code==0 && belle_sip_transaction_get_state(transaction)==BELLE_SIP_TRANSACTION_TERMINATED)){ obj->needs_ack=FALSE; /*no longuer need ACK*/ - if (obj->terminate_on_bye) delete_dialog=TRUE; - }else if (!as_uas && code == 0){ + if (obj->terminate_on_bye) { + delete_dialog=TRUE; + may_kill_last_transaction = TRUE; + } + }else if ((!as_uas && code == 0)) { /* A client BYE transaction is being started */ - if (previous_transaction && belle_sip_transaction_get_state(previous_transaction) != BELLE_SIP_TRANSACTION_TERMINATED){ - belle_sip_warning("Forcibly terminating previous transaction as BYE is being sent."); + may_kill_last_transaction = TRUE; + } + if (may_kill_last_transaction && previous_transaction){ + belle_sip_transaction_state_t previous_transaction_state = belle_sip_transaction_get_state(previous_transaction); + if (belle_sip_transaction_state_is_transient(previous_transaction_state)){ + belle_sip_warning("Forcibly terminating previous transaction in state [%s] as BYE is being [%s].", + belle_sip_transaction_state_to_string(previous_transaction_state), + as_uas ? "received" : "sent"); /* Detach the dialog from the transaction, so that the dialog does not get updated for nothing * by the killed transaction. */ belle_sip_transaction_set_dialog(previous_transaction, NULL); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/src/http-provider.c new/belle-sip-5.2.98/src/http-provider.c --- old/belle-sip-5.2.73/src/http-provider.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/src/http-provider.c 2023-07-27 15:48:34.000000000 +0200 @@ -47,6 +47,50 @@ #define BELLE_HTTP_REQUEST_INVOKE_LISTENER(obj,method,arg) \ obj->listener ? BELLE_SIP_INVOKE_LISTENER_ARG(obj->listener,belle_http_request_listener_t,method,arg) : 0 +static void uri_copy_parts(belle_generic_uri_t *uri, const belle_generic_uri_t *original_uri){ + const char *username = belle_generic_uri_get_user(original_uri); + const char *passwd = belle_generic_uri_get_user_password(original_uri); + if (username) belle_generic_uri_set_user(uri, username); + if (passwd) belle_generic_uri_set_user_password(uri, passwd); + /* are there other uri parameters that shall be copied ? */ +} + +static int http_channel_context_handle_redirect(belle_http_channel_context_t *ctx, belle_http_request_t *req){ + const char *method = belle_http_request_get_method(req); + belle_http_response_t *resp = belle_http_request_get_response(req); + belle_sip_header_t *location; + belle_generic_uri_t *new_uri; + const char *location_value; + + if (req->redirect_count > 70){ + belle_sip_error("Too many redirection of this request, giveup."); + return -1; + } + + if (!(strcmp(method, "GET") == 0 || strcmp(method, "HEAD") == 0)){ + /* if not GET or HEAD, the redirect shall not be done automatically without user interaction */ + return -1; + } + location = belle_sip_message_get_header(BELLE_SIP_MESSAGE(resp), "Location"); + if (!location || ( location_value = belle_sip_header_get_unparsed_value(location)) == NULL) { + belle_sip_error("HTTP Redirect without location header."); + return -1; + } + new_uri = belle_generic_uri_parse(location_value); + if (new_uri == NULL){ + belle_sip_error("Cannot parse location header's uri [%s]", location_value); + return -1; + } + req->redirect_count++; + if (req->orig_uri) uri_copy_parts(new_uri, req->orig_uri); + belle_http_request_set_uri(req, new_uri); + /* reset the original URI, as it is being used for routing*/ + SET_OBJECT_PROPERTY(req, orig_uri, NULL); + belle_sip_message("belle_http_request_t[%p]: handling HTTP redirection to [%s]", req, location_value); + belle_http_provider_send_request(ctx->provider, req, NULL); + return 0; +} + static int http_channel_context_handle_authentication(belle_http_channel_context_t *ctx, belle_http_request_t *req){ const char *realm=NULL; belle_sip_auth_event_t *ev=NULL; @@ -181,7 +225,7 @@ return; } code=belle_http_response_get_status_code(response); - if (code!=401 && code!=407){ + if (code!=401 && code!=407 && code != 301 && code != 302 && code != 307){ /*else notify the app about the response headers received*/ ev.source=(belle_sip_object_t*)ctx->provider; ev.request=req; @@ -221,6 +265,8 @@ code=belle_http_response_get_status_code(response); if ((code==401 || code==407) && http_channel_context_handle_authentication(ctx,req)==0 ){ /*nothing to do, the request has been resubmitted with authentication*/ + }else if ((code == 301 || code == 302 || code == 307) && http_channel_context_handle_redirect(ctx, req) == 0) { + /* nothing to do, the request is automatically re-submitted to the new location */ }else{ /*else notify the app about the response received*/ ev.source=(belle_sip_object_t*)ctx->provider; @@ -443,7 +489,8 @@ host_value=belle_sip_strdup_printf("%s:%i",belle_generic_uri_get_host(uri),belle_generic_uri_get_port(uri)); else host_value=belle_sip_strdup(belle_generic_uri_get_host(uri)); - belle_sip_message_add_header(BELLE_SIP_MESSAGE(req),belle_sip_header_create("Host",host_value)); + + belle_sip_message_set_header(BELLE_SIP_MESSAGE(req),belle_sip_header_create("Host",host_value)); belle_sip_free(host_value); SET_OBJECT_PROPERTY(req,orig_uri,uri); belle_http_request_set_uri(req,new_uri); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/auth_helper_tester.c new/belle-sip-5.2.98/tester/auth_helper_tester.c --- old/belle-sip-5.2.73/tester/auth_helper_tester.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/auth_helper_tester.c 2023-07-27 15:48:34.000000000 +0200 @@ -276,4 +276,4 @@ test_suite_t authentication_helper_test_suite = { "Authentication helper", NULL, NULL, belle_sip_tester_before_each, belle_sip_tester_after_each, - sizeof(authentication_helper_tests) / sizeof(authentication_helper_tests[0]), authentication_helper_tests}; + sizeof(authentication_helper_tests) / sizeof(authentication_helper_tests[0]), authentication_helper_tests,0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/belle_generic_uri_tester.c new/belle-sip-5.2.98/tester/belle_generic_uri_tester.c --- old/belle-sip-5.2.73/tester/belle_generic_uri_tester.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/belle_generic_uri_tester.c 2023-07-27 15:48:34.000000000 +0200 @@ -141,4 +141,4 @@ }; test_suite_t generic_uri_test_suite = {"Generic uri", NULL, NULL, belle_sip_tester_before_each, - belle_sip_tester_after_each, sizeof(tests) / sizeof(tests[0]), tests}; + belle_sip_tester_after_each, sizeof(tests) / sizeof(tests[0]), tests, 0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/belle_http_tester.c new/belle-sip-5.2.98/tester/belle_http_tester.c --- old/belle-sip-5.2.73/tester/belle_http_tester.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/belle_http_tester.c 2023-07-27 15:48:34.000000000 +0200 @@ -353,12 +353,61 @@ if (resp){ bh=belle_sip_message_get_body_handler((belle_sip_message_t*)resp); BC_ASSERT_GREATER_STRICT((unsigned int)belle_sip_body_handler_get_size(bh),0,unsigned int,"%u"); + /* FIXME: we should wait the body to be received entirely before closing the file and exiting */ } belle_sip_object_unref(req); belle_sip_object_unref(l); if (outfile) fclose(outfile); } + +static void http_redirect_to_https(void){ + belle_http_request_listener_callbacks_t cbs={0}; + belle_http_request_listener_t *l; + belle_generic_uri_t *uri; + belle_http_request_t *req; + http_counters_t counters={0}; + const char *url="http://www.linphone.org/remote_provisioning.xml"; + belle_sip_body_handler_t *bh; + belle_http_response_t *resp; + FILE *outfile=fopen("provisioning.xml","w"); + + uri=belle_generic_uri_parse(url); + + req=belle_http_request_create("GET", + uri, + belle_sip_header_create("User-Agent","belle-sip/" PACKAGE_VERSION), + NULL); + cbs.process_response_headers=process_response_headers; + cbs.process_response=process_response; + cbs.process_io_error=process_io_error; + cbs.process_auth_requested=process_auth_requested; + l=belle_http_request_listener_create_from_callbacks(&cbs,&counters); + belle_sip_object_ref(req); + belle_sip_object_data_set(BELLE_SIP_OBJECT(req),"file",outfile,NULL); + belle_http_provider_send_request(prov,req,l); + BC_ASSERT_TRUE(wait_for(stack,&counters.two_hundred,1,20000)); + BC_ASSERT_EQUAL(counters.response_headers_count,1,int,"%d"); + resp=belle_http_request_get_response(req); + BC_ASSERT_PTR_NOT_NULL(resp); + if (outfile) fclose(outfile); + if (resp){ + bh=belle_sip_message_get_body_handler((belle_sip_message_t*)resp); + BC_ASSERT_GREATER_STRICT((unsigned int)belle_sip_body_handler_get_size(bh),0,unsigned int,"%u"); + FILE *body = fopen("provisioning.xml", "r"); + /* Assert that we apparently received the body */ + if (BC_ASSERT_PTR_NOT_NULL(body)){ + char tmp[512] = {0}; + BC_ASSERT_TRUE( fread(tmp, sizeof(tmp)-1, 1, body) > 0); + BC_ASSERT_TRUE(strstr(tmp, "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"") != NULL); + } + fclose(body); + } + belle_sip_object_unref(req); + belle_sip_object_unref(l); + +} + extern const char *test_http_proxy_addr; extern int test_http_proxy_port; @@ -391,7 +440,8 @@ TEST_NO_TAG("https POST with long body", https_post_long_body), TEST_NO_TAG("http GET with long user body", http_get_long_user_body), TEST_NO_TAG("https only", one_https_only_get), + TEST_NO_TAG("http redirect to https", http_redirect_to_https) }; test_suite_t http_test_suite = {"HTTP stack", http_before_all, http_after_all, NULL, - NULL, sizeof(http_tests) / sizeof(http_tests[0]), http_tests}; + NULL, sizeof(http_tests) / sizeof(http_tests[0]), http_tests, 0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/belle_sdp_tester.c new/belle-sip-5.2.98/tester/belle_sdp_tester.c --- old/belle-sip-5.2.73/tester/belle_sdp_tester.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/belle_sdp_tester.c 2023-07-27 15:48:34.000000000 +0200 @@ -1161,4 +1161,4 @@ }; test_suite_t sdp_test_suite = {"SDP", NULL, NULL, belle_sip_tester_before_each, belle_sip_tester_after_each, - sizeof(sdp_tests) / sizeof(sdp_tests[0]), sdp_tests}; + sizeof(sdp_tests) / sizeof(sdp_tests[0]), sdp_tests, 0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/belle_sip_core_tester.c new/belle-sip-5.2.98/tester/belle_sip_core_tester.c --- old/belle-sip-5.2.73/tester/belle_sip_core_tester.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/belle_sip_core_tester.c 2023-07-27 15:48:34.000000000 +0200 @@ -348,4 +348,4 @@ }; test_suite_t core_test_suite = {"Core", NULL, NULL, belle_sip_tester_before_each, belle_sip_tester_after_each, - sizeof(core_tests) / sizeof(core_tests[0]), core_tests}; + sizeof(core_tests) / sizeof(core_tests[0]), core_tests, 0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/belle_sip_dialog_tester.c new/belle-sip-5.2.98/tester/belle_sip_dialog_tester.c --- old/belle-sip-5.2.73/tester/belle_sip_dialog_tester.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/belle_sip_dialog_tester.c 2023-07-27 15:48:34.000000000 +0200 @@ -428,4 +428,4 @@ test_suite_t dialog_test_suite = {"Dialog", register_before_all, register_after_all, belle_sip_tester_before_each, belle_sip_tester_after_each, sizeof(dialog_tests) / sizeof(dialog_tests[0]), - dialog_tests}; + dialog_tests, 0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/belle_sip_fast_uri_tester.c new/belle-sip-5.2.98/tester/belle_sip_fast_uri_tester.c --- old/belle-sip-5.2.73/tester/belle_sip_fast_uri_tester.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/belle_sip_fast_uri_tester.c 2023-07-27 15:48:34.000000000 +0200 @@ -57,7 +57,7 @@ test_suite_t fast_sip_uri_test_suite = {"FAST SIP URI", NULL, NULL, belle_sip_tester_before_each, belle_sip_tester_after_each, - sizeof(uri_tests) / sizeof(uri_tests[0]), uri_tests}; + sizeof(uri_tests) / sizeof(uri_tests[0]), uri_tests, 0}; test_suite_t perf_sip_uri_test_suite = {"FAST SIP URI 2", NULL, NULL, belle_sip_tester_before_each, belle_sip_tester_after_each, - sizeof(tests) / sizeof(tests[0]), tests}; + sizeof(tests) / sizeof(tests[0]), tests, 0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/belle_sip_headers_tester.c new/belle-sip-5.2.98/tester/belle_sip_headers_tester.c --- old/belle-sip-5.2.73/tester/belle_sip_headers_tester.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/belle_sip_headers_tester.c 2023-07-27 15:48:34.000000000 +0200 @@ -1498,4 +1498,4 @@ }; test_suite_t headers_test_suite = {"Headers", NULL, NULL, belle_sip_tester_before_each, belle_sip_tester_after_each, - sizeof(headers_tests) / sizeof(headers_tests[0]), headers_tests}; + sizeof(headers_tests) / sizeof(headers_tests[0]), headers_tests, 0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/belle_sip_message_tester.c new/belle-sip-5.2.98/tester/belle_sip_message_tester.c --- old/belle-sip-5.2.73/tester/belle_sip_message_tester.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/belle_sip_message_tester.c 2023-07-27 15:48:34.000000000 +0200 @@ -1255,4 +1255,4 @@ }; test_suite_t message_test_suite = {"Message", NULL, NULL, belle_sip_tester_before_each, belle_sip_tester_after_each, - sizeof(message_tests) / sizeof(message_tests[0]), message_tests}; + sizeof(message_tests) / sizeof(message_tests[0]), message_tests, 0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/belle_sip_refresher_tester.c new/belle-sip-5.2.98/tester/belle_sip_refresher_tester.c --- old/belle-sip-5.2.73/tester/belle_sip_refresher_tester.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/belle_sip_refresher_tester.c 2023-07-27 15:48:34.000000000 +0200 @@ -1298,4 +1298,4 @@ }; test_suite_t refresher_test_suite = {"Refresher", NULL, NULL, belle_sip_tester_before_each, belle_sip_tester_after_each, - sizeof(refresher_tests) / sizeof(refresher_tests[0]), refresher_tests}; + sizeof(refresher_tests) / sizeof(refresher_tests[0]), refresher_tests, 0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/belle_sip_register_tester.c new/belle-sip-5.2.98/tester/belle_sip_register_tester.c --- old/belle-sip-5.2.73/tester/belle_sip_register_tester.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/belle_sip_register_tester.c 2023-07-27 15:48:34.000000000 +0200 @@ -1367,4 +1367,4 @@ test_suite_t register_test_suite = {"Register", register_before_all, register_after_all, NULL, NULL, sizeof(register_tests) / sizeof(register_tests[0]), - register_tests}; + register_tests, 0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/belle_sip_resolver_tester.c new/belle-sip-5.2.98/tester/belle_sip_resolver_tester.c --- old/belle-sip-5.2.73/tester/belle_sip_resolver_tester.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/belle_sip_resolver_tester.c 2023-07-27 15:48:34.000000000 +0200 @@ -22,9 +22,9 @@ #include "belle_sip_tester.h" #define IPV4_SIP_DOMAIN "sip.linphone.org" -#define IPV4_SIP_IP "91.121.209.194" +#define IPV4_SIP_IP "51.89.71.129" #define IPV4_CNAME "stun.linphone.org" -#define IPV4_CNAME_IP "54.37.202.229" +#define IPV4_CNAME_IP "51.89.71.129" #define IPV4_SIP_BAD_DOMAIN "dummy.linphone.org" #define IPV4_MULTIRES_DOMAIN "yahoo.fr" @@ -1167,4 +1167,4 @@ }; test_suite_t resolver_test_suite = {"Resolver", NULL, NULL, belle_sip_tester_before_each, belle_sip_tester_after_each, - sizeof(resolver_tests) / sizeof(resolver_tests[0]), resolver_tests}; + sizeof(resolver_tests) / sizeof(resolver_tests[0]), resolver_tests, 0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/belle_sip_uri_tester.c new/belle-sip-5.2.98/tester/belle_sip_uri_tester.c --- old/belle-sip-5.2.73/tester/belle_sip_uri_tester.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/belle_sip_uri_tester.c 2023-07-27 15:48:34.000000000 +0200 @@ -27,4 +27,4 @@ test_suite_t sip_uri_test_suite = {"SIP URI", NULL, NULL, belle_sip_tester_before_each, belle_sip_tester_after_each, - sizeof(uri_tests) / sizeof(uri_tests[0]), uri_tests}; + sizeof(uri_tests) / sizeof(uri_tests[0]), uri_tests, 0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/cast_test.c new/belle-sip-5.2.98/tester/cast_test.c --- old/belle-sip-5.2.73/tester/cast_test.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/cast_test.c 2023-07-27 15:48:34.000000000 +0200 @@ -59,4 +59,4 @@ }; test_suite_t cast_test_suite = {"Object inheritance", NULL, NULL, NULL, NULL, - sizeof(cast_tests) / sizeof(cast_tests[0]), cast_tests}; + sizeof(cast_tests) / sizeof(cast_tests[0]), cast_tests, 0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/object_tester.cc new/belle-sip-5.2.98/tester/object_tester.cc --- old/belle-sip-5.2.73/tester/object_tester.cc 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/object_tester.cc 2023-07-27 15:48:34.000000000 +0200 @@ -270,6 +270,6 @@ }; test_suite_t object_test_suite = {"Object", NULL, NULL, belle_sip_tester_before_each, belle_sip_tester_after_each, - sizeof(object_tests) / sizeof(object_tests[0]), object_tests}; + sizeof(object_tests) / sizeof(object_tests[0]), object_tests, 0}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.2.73/tester/resolve.c new/belle-sip-5.2.98/tester/resolve.c --- old/belle-sip-5.2.73/tester/resolve.c 2023-06-14 06:55:32.000000000 +0200 +++ new/belle-sip-5.2.98/tester/resolve.c 2023-07-27 15:48:34.000000000 +0200 @@ -38,6 +38,9 @@ printf("\t%s %s (ttl:%u)\n",name,port,belle_sip_resolver_results_get_ttl(results)); } } + if (ai_list == NULL){ + printf("\tno results.\n"); + } belle_sip_main_loop_quit(belle_sip_stack_get_main_loop(stack)); } ++++++ set_current_version.patch ++++++ --- /var/tmp/diff_new_pack.jz7tFP/_old 2023-08-28 17:16:50.740163732 +0200 +++ /var/tmp/diff_new_pack.jz7tFP/_new 2023-08-28 17:16:50.744163875 +0200 @@ -5,7 +5,7 @@ endif() -project(belle-sip VERSION 5.2.0 LANGUAGES C CXX) -+project(belle-sip VERSION 5.2.73 LANGUAGES C CXX) ++project(belle-sip VERSION 5.2.98 LANGUAGES C CXX) set(PACKAGE "${PROJECT_NAME}") set(PACKAGE_NAME "${PROJECT_NAME}")
