Bug 458146. Add call to initialize mono crypto libs during micasad startup

This commit is contained in:
Jim Norman 2009-02-18 15:51:16 +00:00
parent d1642ea2cd
commit 63a6cc3358
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 18 08:49:01 MST 2009 - jnorman@novell.com
- Bug 458146. Add call to initialize Mono Crypto library during startup
-------------------------------------------------------------------
Wed Oct 15 14:51:32 MDT 2008 - jnorman@novell.com

View File

@ -25,6 +25,7 @@ using System.IO;
using System.Text;
using System.Threading;
using System.Diagnostics;
using System.Security.Cryptography;
using sscs.communication;
using sscs.constants;
using sscs.common;
@ -48,6 +49,10 @@ class SecretStoreClientService
Mono.Unix.Native.Syscall.exit(-1);
}
// init mono
byte[] initstring = {1,2,3}; //bug 458146
ProtectedData.Protect(initstring, null, DataProtectionScope.CurrentUser);
RegisterSignals();
Mono.Unix.Native.Syscall.umask( Mono.Unix.Native.FilePermissions.S_IRGRP |
Mono.Unix.Native.FilePermissions.S_IWGRP |