User should validate the server certificate, not the CA certificate
[mech_eap.git] / libeap / src / eap_peer / eap_config.h
index bd446c7..0dc8ea8 100644 (file)
@@ -785,8 +785,8 @@ struct eap_peer_config {
      * If non-null, specifies a callback method that can be used to
      * override the validity of a peer certificate.
      */
-    int (*validate_ca_cb)(int ok_so_far, X509* cert, void *ca_ctx);
-    void *validate_ca_ctx;
+    int (*server_cert_cb)(int ok_so_far, X509* cert, void *ca_ctx);
+    void *server_cert_ctx;
 };