]> git.tue.mpg.de Git - paraslash.git/commitdiff
Assume sideband and aes_ctr128 are always supported/requested.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 12 Mar 2020 21:08:16 +0000 (22:08 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 21 Oct 2021 17:52:40 +0000 (19:52 +0200)
Sideband connections and the AES-based stream cipher have become
mandatory in paraslash-0.6.

The server no longer needs to annouce the feature as 0.6.x clients
request it, regardless of whether it was announced or not. It needs
to still accept the option, though.

On the client side, we don't need to request the features any more
as the server just ignores the request.

client_common.c
command.c

index c25da96b169126ab36f5b6e7f95a2161d19a3aa9..16568b9cc42362381e4d57f1f3305340a406e720 100644 (file)
@@ -292,8 +292,7 @@ static int client_post_select(struct sched *s, void *context)
        case CL_RECEIVED_WELCOME: /* send auth command */
                if (!FD_ISSET(ct->scc.fd, &s->wfds))
                        return 0;
-               sprintf(buf, AUTH_REQUEST_MSG "%s sideband,aes_ctr128",
-                       ct->user);
+               sprintf(buf, AUTH_REQUEST_MSG "%s", ct->user);
                PARA_INFO_LOG("--> %s\n", buf);
                ret = write_buffer(ct->scc.fd, buf);
                if (ret < 0)
index 0a76f68ee03dfeadf2d48e0b5065594caecbfef0..f4eeb524deaf87c303fec3ff78d4a56c278a8cff 100644 (file)
--- a/command.c
+++ b/command.c
@@ -787,6 +787,11 @@ static int parse_auth_request(char *buf, int len, const struct user **u,
                *p = '\0';
                p++;
                create_argv(p, ",", &features);
+               /*
+                * Still accept sideband and AES feature requests (as a no-op)
+                * because some 0.6.x clients request them. The two checks
+                * below may be removed after 0.7.1.
+                */
                for (i = 0; features[i]; i++) {
                        if (strcmp(features[i], "sideband") == 0)
                                continue;
@@ -905,7 +910,7 @@ int handle_connect(int fd)
        /* send Welcome message */
        ret = write_va_buffer(fd, "This is para_server, version "
                PACKAGE_VERSION ".\n"
-               "Features: sideband,aes_ctr128\n"
+               "Features:\n"
        );
        if (ret < 0)
                goto net_err;