* ktest_equal.h: Add prototypes for ktest_equal_sam_challenge and
authorEzra Peisach <epeisach@mit.edu>
Mon, 30 Mar 1998 18:54:19 +0000 (18:54 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 30 Mar 1998 18:54:19 +0000 (18:54 +0000)
ktest_equal_sam_response

* ktest.c (ktest_make_sample_sam_response): Remove unused variable.

* krb5_decode_test.c, krb5_decode_test.c (main): Declare main as
        int not void.

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

src/tests/asn.1/ChangeLog
src/tests/asn.1/krb5_decode_test.c
src/tests/asn.1/krb5_encode_test.c
src/tests/asn.1/ktest.c
src/tests/asn.1/ktest_equal.h

index 0ac48956ec63336d26c81bf281c3a24feb592731..1e0a00736cc4a3a236397149a59b3df1f67af60f 100644 (file)
@@ -1,3 +1,13 @@
+Mon Mar 30 13:51:58 1998  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * ktest_equal.h: Add prototypes for ktest_equal_sam_challenge and 
+       ktest_equal_sam_response
+
+       * ktest.c (ktest_make_sample_sam_response): Remove unused variable.
+
+       * krb5_decode_test.c, krb5_decode_test.c (main): Declare main as
+        int not void.
+
 Wed Feb 18 16:27:56 1998  Tom Yu  <tlyu@mit.edu>
 
        * Makefile.in: Remove trailing slash from thisconfigdir.  Fix up
index 0c9d507db7acfb51d8b2ae818eafa4342fa1110c..1df59f7a543e2f6de75c8292ac9915b772d8da63 100644 (file)
@@ -10,7 +10,7 @@
 krb5_context test_context;
 int error_count = 0;
 
-void main(argc, argv)
+int main(argc, argv)
        int argc;
        char **argv;
 {
@@ -497,6 +497,7 @@ void main(argc, argv)
   }
   
   exit(error_count);
+  return(error_count);
 }
 
 
index 9cc3e93e8fa46145f471bc98dc8d68f3ae1fdcff..95bdab6304721b8a62656c6ff090ba6f6e21358f 100644 (file)
@@ -11,6 +11,7 @@
 krb5_context test_context;
 int error_count = 0;
 int do_trval = 0;
+int trval2();
 
 void encoder_print_results(code, typestring, description)
        krb5_data *code;
@@ -82,7 +83,8 @@ void PRS(argc, argv)
        print_context_shortcut = 1;
 }
 
-void main(argc, argv)
+int
+main(argc, argv)
        int     argc;
        char    **argv;
 {
@@ -588,6 +590,7 @@ void main(argc, argv)
 #endif
 
   exit(error_count);
+  return(error_count);
 }
 
 
index a4a2e069a48e2eb7f0bc574f6d6a8cf046d20a20..8e60c181d362e76d2281ed9f5684de5eba1071e7 100644 (file)
@@ -716,8 +716,6 @@ krb5_error_code ktest_make_sample_sam_challenge(p)
 krb5_error_code ktest_make_sample_sam_response(p)
      krb5_sam_response * p;
 {
-  krb5_error_code retval;
-
   p->magic = KV5M_SAM_RESPONSE;
   p->sam_type = 42; /* information */
   p->sam_flags = KRB5_SAM_USE_SAD_AS_KEY; /* KRB5_SAM_* values */
index 9f9d5cb90355a827388ee8b293e2c8b1c5d50287..5ffa30925c3bad6572a5551d8d241172d0a691c3 100644 (file)
@@ -55,6 +55,9 @@ generic(ktest_equal_krb5_pwd_data,krb5_pwd_data);
 generic(ktest_equal_krb5_alt_method,krb5_alt_method);
 generic(ktest_equal_krb5_pa_enc_ts,krb5_pa_enc_ts);
 
+generic(ktest_equal_sam_challenge,krb5_sam_challenge);
+generic(ktest_equal_sam_response,krb5_sam_response);
+
 int ktest_equal_last_req
        KRB5_PROTOTYPE((krb5_last_req_entry **ref, krb5_last_req_entry **var));
 int ktest_equal_sequence_of_ticket