X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Fliblutil%2Fsasl.c;h=ffbd29846e67b03fadbcd18010c79a319b3c4d32;hb=c3e28a5488a8011ef0352f48fca85c48679205ba;hp=9e522dece0e4ecee9e56ab8e65a577c9a010fac4;hpb=2ee7488d0b238c57ae4f7a18056d4e9ac8264ad1;p=openldap diff --git a/libraries/liblutil/sasl.c b/libraries/liblutil/sasl.c index 9e522dece0..ffbd29846e 100644 --- a/libraries/liblutil/sasl.c +++ b/libraries/liblutil/sasl.c @@ -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 . + * + * 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 + * . */ #include "portable.h" @@ -20,6 +29,7 @@ #endif #include +#include "ldap_pvt.h" #include "lutil_ldap.h" @@ -138,16 +148,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 +217,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 ) {