First version of XEP-0138 support
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -239,6 +239,9 @@ static void usage(int exit_code)
|
||||
" --enable-certfail Enable certfail handler.\n"
|
||||
" --legacy-ssl Use old style SSL.\n"
|
||||
" --legacy-auth Allow legacy authentication.\n"
|
||||
" --zlib Enable compression via zlib.\n"
|
||||
" --dont-flush When using zlib, don't flush after "
|
||||
"compression.\n"
|
||||
" --verbose Increase the verbosity level.\n"
|
||||
" --tcp-keepalive Configure TCP keepalive.\n\n"
|
||||
"Note: --disable-tls conflicts with --mandatory-tls or "
|
||||
@@ -273,6 +276,10 @@ int main(int argc, char **argv)
|
||||
flags |= XMPP_CONN_FLAG_LEGACY_SSL;
|
||||
else if (strcmp(argv[i], "--legacy-auth") == 0)
|
||||
flags |= XMPP_CONN_FLAG_LEGACY_AUTH;
|
||||
else if (strcmp(argv[i], "--zlib") == 0)
|
||||
flags |= XMPP_CONN_FLAG_ENABLE_COMPRESSION;
|
||||
else if (strcmp(argv[i], "--dont-flush") == 0)
|
||||
flags |= XMPP_CONN_FLAG_COMPRESSION_DONT_FLUSH;
|
||||
else if (strcmp(argv[i], "--verbose") == 0)
|
||||
verbosity++;
|
||||
else if (strcmp(argv[i], "--tcp-keepalive") == 0)
|
||||
|
||||
Reference in New Issue
Block a user