aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/otp-altdict.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/otp-altdict.c b/src/otp-altdict.c
index 89a8f41..d88bcc6 100644
--- a/src/otp-altdict.c
+++ b/src/otp-altdict.c
@@ -221,12 +221,6 @@ my_verbose(
221 221
222 222
223static int 223static int
224my_word_cmp_key(
225 const void * a,
226 const void * b );
227
228
229static int
230my_word_cmp_obj( 224my_word_cmp_obj(
231 const void * a, 225 const void * a,
232 const void * b ); 226 const void * b );
@@ -588,7 +582,7 @@ my_buff_process_word(
588 // search for S/KEY dictionary word 582 // search for S/KEY dictionary word
589 if (!(cnf->allow_dups)) 583 if (!(cnf->allow_dups))
590 { 584 {
591 if (bindle_bindex(word, otputil_skey_rfc1760_dict, 2048, sizeof(char *), 0, NULL, my_word_cmp_key) != -1) 585 if (otputil_skey_dict_value(word) != -1)
592 { 586 {
593 my_verbose(cnf, "word '%s': is contained in S/KEY dictionary\n", word); 587 my_verbose(cnf, "word '%s': is contained in S/KEY dictionary\n", word);
594 return(0); 588 return(0);
@@ -917,19 +911,6 @@ my_verbose(
917 911
918 912
919int 913int
920my_word_cmp_key(
921 const void * a,
922 const void * b )
923{
924 const char * const * obj;
925 const char * key;
926 key = a;
927 obj = b;
928 return(strcasecmp(key, *obj));
929}
930
931
932int
933my_word_cmp_obj( 914my_word_cmp_obj(
934 const void * a, 915 const void * a,
935 const void * b ) 916 const void * b )