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

Maksym Sobolyev noreply at github.com
Fri Oct 9 04:49:32 EST 2020


  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 62b1b5320fc4e9b7e9d71ae8f069e7ea839f0b60
      https://github.com/OpenSIPS/opensips/commit/62b1b5320fc4e9b7e9d71ae8f069e7ea839f0b60
  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)


  Commit: 008b5154a6007ad6c223fc4dad38bdaf8e0a2077
      https://github.com/OpenSIPS/opensips/commit/008b5154a6007ad6c223fc4dad38bdaf8e0a2077
  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)


Compare: https://github.com/OpenSIPS/opensips/compare/1b65ba3db311...008b5154a600



More information about the Devel mailing list