Re: Error: Initialization of secure memory
Yoann Vandoorselaere <[email protected]>
| Newsgroups | gmane.comp.security.ids.prelude.user |
|---|---|
| Message-ID | <1213368167.4027.8.camel@nobody> |
Hello Cavell, Le mercredi 11 juin 2008 à 15:17 -0500, cav a écrit : > Libprelude version - 0.9.16.2-2. So I upgraded to the latest version > from the Prelude IDS website, and re-installed all the required > packages. I am still getting the same error when i try to register the > sensor. > > Any help will be appreciated. Could you try setting the environement variable as specified in my previous mail, and tell us if you get any debug output: LIBPRELUDE_DEBUG=10 LIBPRELUDE_TLS_DEBUG=10 prelude-admin [...] > Additionally, attached is a patch that check for GnuTLS initialization failure within prelude-admin, could you please apply it and tell us whether you get any error message? Regards, -- Yoann Vandoorselaere | Responsable R&D / CTO | PreludeIDS Technologies Tel: +33 (0)8 70 70 21 58 Fax: +33(0)4 78 42 21 58 http://www.prelude-ids.com _______________________________________________ Prelude-user site list [email protected] http://lists.prelude-ids.org/mailman/listinfo/prelude-user
prelude-admin.diff
(text/x-patch, 717 B)
diff --git a/prelude-admin/prelude-admin.c b/prelude-admin/prelude-admin.c
index 29ca3a1..fb07d2e 100644
--- a/prelude-admin/prelude-admin.c
+++ b/prelude-admin/prelude-admin.c
@@ -2157,8 +2157,13 @@ int main(int argc, char **argv)
prelude_option_add(parentopt, NULL, PRELUDE_OPTION_TYPE_CLI, 'h', "help",
NULL, PRELUDE_OPTION_ARGUMENT_NONE, print_detailed_help, NULL);
+ ret = gnutls_global_init();
+ if ( ret < 0 ) {
+ fprintf(stderr, "TLS initialization failed: %s", gnutls_strerror(ret));
+ return -1;
+ }
+
ret = -1;
- gnutls_global_init();
#ifdef NEED_GNUTLS_EXTRA
gnutls_global_init_extra();