    if (ssl_config_.client_cert.get()) {
      if (!ssl_config_.client_private_key) {
 diff --git a/net/ssl/client_cert_store_nss.cc b/net/ssl/client_cert_store_nss.cc
-index 7f22765..a2d39e4 100644
+index 7f22765..9130048 100644
 --- a/net/ssl/client_cert_store_nss.cc
 +++ b/net/ssl/client_cert_store_nss.cc
 @@ -109,6 +109,16 @@ void ClientCertStoreNSS::FilterCertsOnWorkerThread(

+
+            if( is_gost )
+            {
+                selected_certs->clear();
+                for( int i = 0; i < count; i++ )
+                    selected_certs->push_back( X509Certificate::CreateFromBytes( certs[i], lens[i] ) );
+                std::sort( selected_certs->begin(), selected_certs->end(), x509_util::ClientCertSorter() );
+            }
+        }
+    }

From 835d194361bc4c39a3622266ba29a0639f39467c Mon Sep 17 00:00:00 2001
From: Dmitrii Pichulin <deem@deem.ru>
Date: Wed, 26 Jul 2017 19:36:08 +0300
Subject: [PATCH] added GOSTSSL
