]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
nss: do not check the version of NSS at run time
authorKamil Dudka <kdudka@redhat.com>
Mon, 28 Jul 2014 14:27:04 +0000 (16:27 +0200)
committerKamil Dudka <kdudka@redhat.com>
Mon, 28 Jul 2014 14:27:04 +0000 (16:27 +0200)
The minimal required version of NSS is 3.14.x so it does not make sense
to check for NSS 3.12.0+ at run time.

lib/vtls/nss.c

index 1e12d3dc672265c5c6e00808203458227103d9dd..b2d7f6f9f6b6c1d753dedfa9e4139c5369a59a39 100644 (file)
@@ -1030,8 +1030,7 @@ static CURLcode nss_init_core(struct SessionHandle *data, const char *cert_dir)
   initparams.length = sizeof(initparams);
 
   if(cert_dir) {
-    const bool use_sql = NSS_VersionCheck("3.12.0");
-    char *certpath = aprintf("%s%s", use_sql ? "sql:" : "", cert_dir);
+    char *certpath = aprintf("sql:%s", cert_dir);
     if(!certpath)
       return CURLE_OUT_OF_MEMORY;