Commit f3e3ebe5 authored by André Guerreiro's avatar André Guerreiro Committed by Albert Astals Cid

Load NSS root certs module

This change is needed to actually do certificate validation, because as it is NSS is trying to load the module which contains all the builtin root certs from the Firefox profile directory where it is usually missing. This way it will load the module from a system library directory.
parent dcefd7a2
......@@ -15,6 +15,7 @@
#include "SignatureHandler.h"
#include "goo/gmem.h"
#include <nss/secmod.h>
#include <dirent.h>
#include <Error.h>
......@@ -95,6 +96,8 @@ void SignatureHandler::init_nss()
} else {
//Make sure NSS root certificates module is loaded
SECMOD_AddNewModule("Root Certs", "", 0, 0);
delete certDBPath;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment