Robert Relyea wrote:

> 
> Patrick wrote:
> 
>> Hello,
>>
>> I was reading
>> http://www.mozilla.org/projects/security/pki/nss/loadable_certs.html 
>> and the
>> "sample code for installing the module". @ questions about this:
>>
>> 1. Shouldn't it read:
>> ...
>> if (hasroot == PR_FALSE) {
>>       dll_path = yourFindrootCertModuleInYourInstallTree();
>>       SECMOD_AddNewModule("Root Certs",dll_path, 0, 0);
>> }
>>
>> instead of
>> if (hasroot) {
>>       dll_path = yourFindrootCertModuleInYourInstallTree();
>>       SECMOD_AddNewModule("Root Certs",dll_path, 0, 0);
>> }
>>
>> Don't you want to install "Root Certs" if there are no root cert module
>> already installed?
> 
> 
> Yes, there is a missing ! in the if statement (should have read 'if 
> (!hasroot) {' )


I just fixed that error.  (Thanks to Nelson for reminding me
to fix it.)

Wan-Teh


Reply via email to