]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use RDEBUG
authorAlan T. DeKok <aland@freeradius.org>
Tue, 11 Apr 2023 17:37:37 +0000 (13:37 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 12 Apr 2023 00:03:21 +0000 (20:03 -0400)
src/main/listen.c

index a282473ea7df231b93fc05747412094c92269617..a5e04d3618c82b968fb6bd1d0de24abccc51dbfd 100644 (file)
@@ -721,7 +721,7 @@ static const unsigned char radiusv11_require_protos[] = {
 /*
  *     On the server, get the ALPN list requested by the client.
  */
-static int radiusv11_server_alpn_cb(UNUSED SSL *ssl,
+static int radiusv11_server_alpn_cb(SSL *ssl,
                                    const unsigned char **out,
                                    unsigned char *outlen,
                                    const unsigned char *in,
@@ -732,6 +732,11 @@ static int radiusv11_server_alpn_cb(UNUSED SSL *ssl,
        listen_socket_t *sock = this->data;
        const unsigned char *server, *client;
        unsigned int server_len, i, j;
+       REQUEST *request;
+
+       request = (REQUEST *)SSL_get_ex_data(ssl, FR_TLS_EX_INDEX_REQUEST);
+       fr_assert(request != NULL);
+
 
        fr_assert(inlen > 0);
 
@@ -788,7 +793,7 @@ static int radiusv11_server_alpn_cb(UNUSED SSL *ssl,
                       fr_assert(s[0] == 10);
                       sock->radiusv11 = (s[10] == '1');
 
-                      DEBUG("(TLS) ALPN negotiated application protocol %.*s", (int) s[0], s + 1);
+                      RDEBUG("(TLS) ALPN negotiated application protocol %.*s", (int) s[0], s + 1);
                       return SSL_TLSEXT_ERR_OK;
                }
        }
@@ -796,7 +801,7 @@ static int radiusv11_server_alpn_cb(UNUSED SSL *ssl,
        /*
         *      No common ALPN.
         */
-       DEBUG("(TLS) ALPN failure - no protocols in common");
+       RDEBUG("(TLS) ALPN failure - no protocols in common");
        return SSL_TLSEXT_ERR_ALERT_FATAL;
 }