68f387 fix SECLEVEL 3 support

Authored and Committed by tmraz a year ago
    fix SECLEVEL 3 support
    fix some issues found in Coverity scan
    
        
file modified
+18 -13
file modified
+15 -4
file modified
+6 -2