[OpenSIPS-Devel] [OpenSIPS/opensips] 39dd04: Extend STR_NULL and str_init() to set a type expli...

Maksym Sobolyev noreply at github.com
Fri Oct 9 04:51:42 EST 2020


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 39dd04d1bb9653e921849f49d8f6e3df4f7f7b0a
      https://github.com/OpenSIPS/opensips/commit/39dd04d1bb9653e921849f49d8f6e3df4f7f7b0a
  Author: Maksym Sobolyev <sobomax at sippysoft.com>
  Date:   2020-10-09 (Fri, 09 Oct 2020)

  Changed paths:
    M str.h
    M ut.h

  Log Message:
  -----------
  Extend STR_NULL and str_init() to set a type explicitly. This
allows those macros to be used elsewhere in the function body,
not only in variable declaration(s), i.e.:

void foobar(int baz)
{
    str localstr;

    if (random() == 42) {
       localstr = str_init(I_STR LUCKY_STR FIN_STR);
    } else {
        localstr = str_init(I_STR UNLUCKY_STR FIN_STR);
    }
    some_api(&localstr);
}

(cherry picked from commit 36e0281b7309e2be39e478c96575cadf9a35260b)
(cherry picked from commit 62b1b5320fc4e9b7e9d71ae8f069e7ea839f0b60)


  Commit: 1c73aee67e9d507694303fe3350b460fc1e1c51a
      https://github.com/OpenSIPS/opensips/commit/1c73aee67e9d507694303fe3350b460fc1e1c51a
  Author: Maksym Sobolyev <sobomax at sippysoft.com>
  Date:   2020-10-09 (Fri, 09 Oct 2020)

  Changed paths:
    M modules/auth/doc/auth_admin.xml

  Log Message:
  -----------
  Improve auth module examples:

o Use $var(xyz) consistently. $avp's take shared resources and
  aren't really justified in this use case;

o fix www_challenge / proxy_challenge second argument to match
  reality.

(cherry picked from commit d9574358d1670391c2b1cbe1d7ccbe37eb4defca)
(cherry picked from commit 008b5154a6007ad6c223fc4dad38bdaf8e0a2077)


Compare: https://github.com/OpenSIPS/opensips/compare/7daf0a04d2bc...1c73aee67e9d



More information about the Devel mailing list