Revert r24826. Export krb5int_nfold from libk5crypto and link t_nfold
authorGreg Hudson <ghudson@mit.edu>
Sat, 16 Apr 2011 13:57:47 +0000 (13:57 +0000)
committerGreg Hudson <ghudson@mit.edu>
Sat, 16 Apr 2011 13:57:47 +0000 (13:57 +0000)
against libk5crypto, matching the approach used in most other library
unit tests.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24882 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/crypto_tests/Makefile.in
src/lib/crypto/crypto_tests/t_nfold.c
src/lib/crypto/libk5crypto.exports

index 23e6c06dec079ee722ee6cf729961a0bc8f2b988..555c90c645906cc0e2d6bf408bcbaed991c5ddd9 100644 (file)
@@ -71,11 +71,8 @@ check-unix:: t_nfold t_encrypt t_decrypt t_prf t_prng t_cmac t_hmac \
        diff t_cf2.output $(srcdir)/t_cf2.expected
 #      $(RUN_SETUP) $(VALGRIND) ./t_pkcs5
 
-t_nfold$(EXEEXT): t_nfold.$(OBJEXT) nfold.$(OBJEXT) $(SUPPORT_DEPLIB)
-       $(CC_LINK) -o $@ t_nfold.$(OBJEXT) ../krb/nfold$(DYNOBJEXT) $(SUPPORT_LIB)
-
-nfold.$(OBJEXT): $(srcdir)/../krb/nfold.c
-       $(CC) -c $(ALL_CFLAGS) $(srcdir)/../krb/nfold.c
+t_nfold$(EXEEXT): t_nfold.$(OBJEXT) $(CRYPTO_DEPLIB) $(SUPPORT_DEPLIB)
+       $(CC_LINK) -o $@ t_nfold.$(OBJEXT) -lkrb5 -lk5crypto -lcom_err $(SUPPORT_LIB)
 
 t_encrypt$(EXEEXT): t_encrypt.$(OBJEXT) $(CRYPTO_DEPLIB) $(SUPPORT_DEPLIB)
        $(CC_LINK) -o $@ t_encrypt.$(OBJEXT)  -lkrb5 -lk5crypto -lcom_err $(SUPPORT_LIB)
@@ -158,7 +155,7 @@ t_cf2$(EXEEXT): t_cf2.$(OBJEXT) $(SUPPORT_DEPLIB)
        $(CC_LINK) -o $@ t_cf2.$(OBJEXT)  -lkrb5 -lk5crypto -lcom_err $(SUPPORT_LIB)
 
 clean::
-       $(RM) t_nfold.o t_nfold nfold.$(OBJEXT) t_encrypt t_encrypt.o \
+       $(RM) t_nfold.o t_nfold t_encrypt t_encrypt.o \
                t_decrypt.o t_decrypt t_prng.o t_prng t_cmac.o t_cmac \
                t_hmac.o t_hmac t_pkcs5.o t_pkcs5 pbkdf2.o t_prf t_prf.o \
                aes-test.o aes-test vt.txt vk.txt kresults.out \
index 341a41ce7d9f53c7e5147d713ae6a7ec22f6700f..b94353c2213214b80558d94552086fa3b01a3d29 100644 (file)
@@ -29,8 +29,7 @@
 #include <string.h>
 #include <assert.h>
 
-void krb5int_nfold(unsigned int inbits, const unsigned char *in,
-                   unsigned int outbits, unsigned char *out);
+#include "crypto_int.h"
 
 #define ASIZE(ARRAY) (sizeof(ARRAY)/sizeof(ARRAY[0]))
 
index 2d91592ecaf862b2a5e938c1e6cd993ede1a77d8..b96833c9007c5673b575d638a485d2aa2a2d2aa7 100644 (file)
@@ -100,3 +100,4 @@ krb5int_aes_enc_key
 k5_sha256_final
 k5_sha256_init
 k5_sha256_update
+krb5int_nfold