Return my_ok in case we changed the outcome of the verification routine.
authormgriego <mgriego>
Thu, 27 May 2004 22:10:17 +0000 (22:10 +0000)
committermgriego <mgriego>
Thu, 27 May 2004 22:10:17 +0000 (22:10 +0000)
Also fix compiler warnings about incompatible pointer types on the
SSL_get_ex_data calls.

src/modules/rlm_eap/types/rlm_eap_tls/cb.c

index 10323f4..4eb173c 100644 (file)
@@ -109,8 +109,8 @@ int cbtls_verify(int ok, X509_STORE_CTX *ctx)
         * and the application specific data stored into the SSL object.
         */
        ssl = X509_STORE_CTX_get_ex_data(ctx, SSL_get_ex_data_X509_STORE_CTX_idx());
-       handler = (char *)SSL_get_ex_data(ssl, 0);
-       conf = (char *)SSL_get_ex_data(ssl, 1);
+       handler = (EAP_HANDLER *)SSL_get_ex_data(ssl, 0);
+       conf = (EAP_TLS_CONF *)SSL_get_ex_data(ssl, 1);
 
        /*
         *      Get the Subject & Issuer
@@ -180,7 +180,7 @@ int cbtls_verify(int ok, X509_STORE_CTX *ctx)
                radlog(L_INFO, "--> issuer  = %s", issuer);
                radlog(L_INFO, "--> verify return:%d", my_ok);
        }
-       return ok;
+       return my_ok;
 }