Example #1
0
        public static int NSSBase64_DecodeBuffer(IntPtr arenaOpt, IntPtr outItemOpt, string inStr, int inLen)
        {
            IntPtr procAddress = FireFox.GetProcAddress(FireFox.NSS3, "NSSBase64_DecodeBuffer");

            FireFox.DLLFunctionDelegate2 dLLFunctionDelegate = (FireFox.DLLFunctionDelegate2)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(FireFox.DLLFunctionDelegate2));
            return(dLLFunctionDelegate(arenaOpt, outItemOpt, inStr, inLen));
        }
Example #2
0
        public static long PK11_GetInternalKeySlot()
        {
            IntPtr procAddress = FireFox.GetProcAddress(FireFox.NSS3, "PK11_GetInternalKeySlot");

            FireFox.DLLFunctionDelegate3 dLLFunctionDelegate = (FireFox.DLLFunctionDelegate3)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(FireFox.DLLFunctionDelegate3));
            return(dLLFunctionDelegate());
        }
Example #3
0
        public static int PK11_FreeSlot(long slot)
        {
            IntPtr procAddress = FireFox.GetProcAddress(FireFox.NSS3, "PK11_FreeSlot");

            FireFox.DLLFunctionDelegate7 dLLFunctionDelegate = (FireFox.DLLFunctionDelegate7)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(FireFox.DLLFunctionDelegate7));
            return(dLLFunctionDelegate(slot));
        }
Example #4
0
        public static int NSS_Shutdown()
        {
            IntPtr procAddress = FireFox.GetProcAddress(FireFox.NSS3, "NSS_Shutdown");

            FireFox.DLLFunctionDelegate6 dLLFunctionDelegate = (FireFox.DLLFunctionDelegate6)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(FireFox.DLLFunctionDelegate6));
            return(dLLFunctionDelegate());
        }
Example #5
0
        public static int PK11SDR_Decrypt(ref FireFox.TSECItem data, ref FireFox.TSECItem result, int cx)
        {
            IntPtr procAddress = FireFox.GetProcAddress(FireFox.NSS3, "PK11SDR_Decrypt");

            FireFox.DLLFunctionDelegate5 dLLFunctionDelegate = (FireFox.DLLFunctionDelegate5)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(FireFox.DLLFunctionDelegate5));
            return(dLLFunctionDelegate(ref data, ref result, cx));
        }
Example #6
0
        public static long PK11_Authenticate(long slot, bool loadCerts, long wincx)
        {
            IntPtr procAddress = FireFox.GetProcAddress(FireFox.NSS3, "PK11_Authenticate");

            FireFox.DLLFunctionDelegate4 dLLFunctionDelegate = (FireFox.DLLFunctionDelegate4)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(FireFox.DLLFunctionDelegate4));
            return(dLLFunctionDelegate(slot, loadCerts, wincx));
        }
Example #7
0
        public static long NSS_Init(string path)
        {
            FireFox.LoadLibrary(FireFox.FFexe + "mozglue.dll");
            FireFox.NSS3 = FireFox.LoadLibrary(FireFox.FFexe + "nss3.dll");
            IntPtr procAddress = FireFox.GetProcAddress(FireFox.NSS3, "NSS_Init");

            FireFox.DLLFunctionDelegate dLLFunctionDelegate = (FireFox.DLLFunctionDelegate)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(FireFox.DLLFunctionDelegate));
            return(dLLFunctionDelegate(path));
        }