]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use correct length for session_context_id and write a shorter value, to fit into it 29/head
authorPhil Mayers <p.mayers@imperial.ac.uk>
Tue, 25 Oct 2011 11:49:10 +0000 (12:49 +0100)
committerPhil Mayers <p.mayers@imperial.ac.uk>
Tue, 25 Oct 2011 11:49:10 +0000 (12:49 +0100)
src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c
src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.h

index 77e994aeced0db93bae933b4a10faa560d3f53e5..dc1cbb2faaf58b1de094887c6a6de7e6c30c545f 100644 (file)
@@ -1066,12 +1066,12 @@ static SSL_CTX *init_tls_ctx(EAP_TLS_CONF *conf)
                if (conf->session_id_name) {
                        snprintf(conf->session_context_id,
                                 sizeof(conf->session_context_id),
-                                "FreeRADIUS EAP-TLS %s",
+                                "FR eap %s",
                                 conf->session_id_name);
                } else {
                        snprintf(conf->session_context_id,
                                 sizeof(conf->session_context_id),
-                                "FreeRADIUS EAP-TLS %p", conf);
+                                "FR eap %p", conf);
                }
 
                /*
index ed22712c0018589be4e9fc249ab9e626740c1a44..d60b1b667edc048b19fc4f445921ccc57e955c3a 100644 (file)
@@ -65,7 +65,7 @@ typedef struct eap_tls_conf {
         int            session_timeout;
         int            session_cache_size;
        char            *session_id_name;
-       char            session_context_id[128];
+       char            session_context_id[SSL_MAX_SSL_SESSION_ID_LENGTH];
        time_t          session_last_flushed;
 
        char            *verify_tmp_dir;