                                                  SSL_CONN_CONFIG(CAfile),
                                                  GNUTLS_X509_FMT_PEM);
      if(rc < 0) {
-@@ -580,7 +587,7 @@ gtls_connect_step1(struct connectdata *conn,
+@@ -578,7 +587,7 @@ gtls_connect_step1(struct connectdata *conn,
  #ifdef HAS_CAPATH
    if(SSL_CONN_CONFIG(CApath)) {
      /* set the trusted CA cert directory */

     return 0; /* connection has been closed */
 
   err = 0;
@@ -1334,4 +1345,45 @@ int Curl_gskit_check_cxn(struct connectdata *cxn)
   return -1;  /* connection status unknown */
 }
 
+static void *Curl_gskit_get_internals(struct ssl_connect_data *connssl,
+                                      CURLINFO info UNUSED_PARAM)
+{
+  return BACKEND->handle;
+}
+

 
     if(*certverifyresult != X509_V_OK) {
       if(SSL_CONN_CONFIG(verifypeer)) {
@@ -2945,8 +2960,8 @@ static CURLcode servercert(struct connectdata *conn,
   if(SSL_CONN_CONFIG(verifystatus)) {
     result = verifystatus(conn, connssl);
     if(result) {
