From 63a6cc335878873d25c81a80101a17b66286872c Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Wed, 18 Feb 2009 15:51:16 +0000 Subject: [PATCH] Bug 458146. Add call to initialize mono crypto libs during micasad startup --- CASA/CASA.changes | 5 +++++ CASA/micasad/init/Main.cs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/CASA/CASA.changes b/CASA/CASA.changes index 93cd8209..fdc5f096 100644 --- a/CASA/CASA.changes +++ b/CASA/CASA.changes @@ -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 diff --git a/CASA/micasad/init/Main.cs b/CASA/micasad/init/Main.cs index 1db1ebd5..c0677534 100644 --- a/CASA/micasad/init/Main.cs +++ b/CASA/micasad/init/Main.cs @@ -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 |