]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/sasl.c
Fix typo in dec to bin conversion
[openldap] / libraries / liblutil / sasl.c
index 9e522dece0e4ecee9e56ab8e65a577c9a010fac4..50b5a29ddcfeae2b07c69e601e13cf1648702d5a 100644 (file)
@@ -1,7 +1,16 @@
 /* $OpenLDAP$ */
-/*
- * Copyright 2000-2003 The OpenLDAP Foundation, All Rights Reserved.
- * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ *
+ * Copyright 1998-2007 The OpenLDAP Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in the file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * <http://www.OpenLDAP.org/license.html>.
  */
 
 #include "portable.h"
@@ -20,6 +29,7 @@
 #endif
 
 #include <ldap.h>
+#include "ldap_pvt.h"
 #include "lutil_ldap.h"
 
 
@@ -39,6 +49,8 @@ lutil_sasl_freedefs(
        void *defaults )
 {
        lutilSASLdefaults *defs = defaults;
+
+       assert( defs != NULL );
        
        if (defs->mech) ber_memfree(defs->mech);
        if (defs->realm) ber_memfree(defs->realm);
@@ -138,16 +150,16 @@ static int interaction(
 
        if( challenge ) {
                if( interact->challenge ) {
-                       fprintf( stderr, "Challenge: %s\n", interact->challenge );
+                       fprintf( stderr, _("Challenge: %s\n"), interact->challenge );
                }
        }
 
        if( dflt ) {
-               fprintf( stderr, "Default: %s\n", dflt );
+               fprintf( stderr, _("Default: %s\n"), dflt );
        }
 
        snprintf( input, sizeof input, "%s: ",
-               interact->prompt ? interact->prompt : "Interact" );
+               interact->prompt ? interact->prompt : _("Interact") );
 
        if( noecho ) {
                interact->result = (char *) getpassphrase( input );
@@ -207,7 +219,7 @@ int lutil_sasl_interact(
        if( ld == NULL ) return LDAP_PARAM_ERROR;
 
        if( flags == LDAP_SASL_INTERACTIVE ) {
-               fputs( "SASL Interaction\n", stderr );
+               fputs( _("SASL Interaction\n"), stderr );
        }
 
        while( interact->id != SASL_CB_LIST_END ) {