Skip to content

Commit

Permalink
nss: do not check the version of NSS at run time
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kdudka committed Jul 28, 2014
1 parent f3bd3de commit 30b093f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/vtls/nss.c
Expand Up @@ -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;

Expand Down

0 comments on commit 30b093f

Please sign in to comment.