diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-03-17 21:34:17 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-03-17 21:34:17 -0800 |
| commit | 8c50435e9c8b35871b2837e74604b81527980407 (patch) | |
| tree | 8fd0632a0dcebd4310ba1641fdd85a2b3d747cc4 /src | |
| parent | 907ec60bc997462804ed3256152f192ae10d8887 (diff) | |
| download | tinyrad-8c50435e9c8b35871b2837e74604b81527980407.tar.gz tinyrad-8c50435e9c8b35871b2837e74604b81527980407.tar.bz2 tinyrad-8c50435e9c8b35871b2837e74604b81527980407.tar.xz tinyrad-8c50435e9c8b35871b2837e74604b81527980407.zip | |
libtinyrad: updating URL parser to allow empty secret
Diffstat (limited to 'src')
| -rw-r--r-- | src/tinyrad-url.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tinyrad-url.c b/src/tinyrad-url.c index 91b4bf0..00d432a 100644 --- a/src/tinyrad-url.c +++ b/src/tinyrad-url.c | |||
| @@ -259,7 +259,7 @@ int my_print_urldesc( TinyRadURLDesc * trudp) | |||
| 259 | printf(" scheme: %s\n", scheme); | 259 | printf(" scheme: %s\n", scheme); |
| 260 | printf(" host: %s\n", trudp->trud_host); | 260 | printf(" host: %s\n", trudp->trud_host); |
| 261 | printf(" port: %i\n", trudp->trud_port); | 261 | printf(" port: %i\n", trudp->trud_port); |
| 262 | printf(" secret: %s\n", trudp->trud_secret); | 262 | printf(" secret: %s\n", (((trudp->trud_secret)) ? trudp->trud_secret : "n/a")); |
| 263 | printf(" protocol: %s\n", ((trudp->trud_opts & TRAD_TCP)) ? "tcp" : "udp"); | 263 | printf(" protocol: %s\n", ((trudp->trud_opts & TRAD_TCP)) ? "tcp" : "udp"); |
| 264 | if ( ((trudp->trud_sockaddrs)) && ((trudp->trud_sockaddrs[0])) ) | 264 | if ( ((trudp->trud_sockaddrs)) && ((trudp->trud_sockaddrs[0])) ) |
| 265 | { | 265 | { |
| @@ -299,10 +299,10 @@ void my_usage(void) | |||
| 299 | printf(" -r, --resolve resolve URLs\n"); | 299 | printf(" -r, --resolve resolve URLs\n"); |
| 300 | printf("\n"); | 300 | printf("\n"); |
| 301 | printf("URL Syntax:\n"); | 301 | printf("URL Syntax:\n"); |
| 302 | printf(" radius://hostport/secret[?proto] use RFC2865 (udp/port 1812)\n"); | 302 | printf(" radius://hostport/[secret][?proto] use RFC2865 (udp/port 1812)\n"); |
| 303 | printf(" radius-acct://hostport/secret[?proto] use RFC2866 (udp/port 1813)\n"); | 303 | printf(" radius-acct://hostport/[secret][?proto] use RFC2866 (udp/port 1813)\n"); |
| 304 | printf(" radsec://hostport/[?proto] use RFC6614/RFC7360 (tcp/port 2083)\n"); | 304 | printf(" radsec://hostport/[?proto] use RFC6614/RFC7360 (tcp/port 2083)\n"); |
| 305 | printf(" radius-dynauth://hostport/secret[?proto] use RFC5176 (udp/port 3799)\n"); | 305 | printf(" radius-dynauth://hostport/[secret][?proto] use RFC5176 (udp/port 3799)\n"); |
| 306 | printf("\n"); | 306 | printf("\n"); |
| 307 | printf(" where:\n"); | 307 | printf(" where:\n"); |
| 308 | printf(" 'hostport' is a host name with an optional ':portnumber'\n"); | 308 | printf(" 'hostport' is a host name with an optional ':portnumber'\n"); |
