Get ex_data in proxy_verify_callback out of SSL_CTX.
authorMarcel Poul <marcel.poul@cern.ch>
Wed, 26 Sep 2012 11:18:53 +0000 (11:18 +0000)
committerMarcel Poul <marcel.poul@cern.ch>
Wed, 26 Sep 2012 11:18:53 +0000 (11:18 +0000)
emi.canl.canl-c/src/proxy/sslutils.c

index 8cc2c86..6d37d8b 100644 (file)
@@ -1842,7 +1842,7 @@ proxy_verify_callback(
         ssl = (SSL *)X509_STORE_CTX_get_app_data(ctx);
         if (ssl) {
             ssl_ctx = SSL_get_SSL_CTX(ssl);
-            pvd = (proxy_verify_desc *)SSL_get_ex_data(ssl,
+            pvd = (proxy_verify_desc *)SSL_CTX_get_ex_data(ssl_ctx,
                     PVD_SSL_EX_DATA_IDX);
         }
     }