[OpenSIPS-Devel] [OpenSIPS/opensips] 98faa6: Extend STR_NULL and str_init() to set a type expli...
Maksym Sobolyev
noreply at github.com
Fri Oct 9 04:47:32 EST 2020
Branch: refs/heads/3.1
Home: https://github.com/OpenSIPS/opensips
Commit: 98faa6bbc16871785f9a1ea9fd339968bed14771
https://github.com/OpenSIPS/opensips/commit/98faa6bbc16871785f9a1ea9fd339968bed14771
Author: Maksym Sobolyev <sobomax at sippysoft.com>
Date: 2020-10-09 (Fri, 09 Oct 2020)
Changed paths:
M str.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: dd8a951ca203da26f84a6968fc668419a6ef3d1c
https://github.com/OpenSIPS/opensips/commit/dd8a951ca203da26f84a6968fc668419a6ef3d1c
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/6c6930bc4a82...dd8a951ca203
More information about the Devel
mailing list