]> git.sur5r.net Git - openldap/commitdiff
Import TLS fix from devel
authorKurt Zeilenga <kurt@openldap.org>
Sat, 23 Jun 2001 01:58:05 +0000 (01:58 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 23 Jun 2001 01:58:05 +0000 (01:58 +0000)
servers/slurpd/main.c

index 5a5a61fdb1d6fd146d4fd670a386de7db066792d..2a7868724e7e45cd387469ffc83cd85836ba0c71 100644 (file)
@@ -1,4 +1,8 @@
 /* $OpenLDAP$ */
+/*
+ * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
 /*
  * Copyright (c) 1996 Regents of the University of Michigan.
  * All rights reserved.
@@ -44,6 +48,13 @@ main(
     /* initialize thread package */
     ldap_pvt_thread_initialize();
 
+#ifdef HAVE_TLS
+       if( ldap_pvt_tls_init() || ldap_pvt_tls_init_def_ctx() ) {
+               fprintf( stderr, "TLS Initialization failed.\n" );
+               exit( EXIT_FAILURE);
+       }
+#endif
+
     /* 
      * Create and initialize globals.  init_globals() also initializes
      * the main replication queue.