summaryrefslogtreecommitdiffstats
path: root/src/tests/asn.1/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
* Remove ChangeLog files from the source tree. From now on, theSam Hartman2006-04-111-498/+0
| | | | | | | subversion commit log entry needs to include information that would have been in the changelog. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17893 dc483132-0cff-0310-8789-dd5450dbe970
* Fix additional cases where krb5.h is included before k5-int.h. In most cases,Ken Raeburn2005-11-181-0/+5
| | | | | | | | | | | it suffices to remove the inclusion of k5-int.h, sometimes including errno.h or another header. In a couple cases, include order has been changed, or k5-int.h has been included instead of krb5.h. ticket: 3236 status: resolved git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17494 dc483132-0cff-0310-8789-dd5450dbe970
* * trval.c (convert_nibble): Declare the argument with a typeKen Raeburn2005-06-011-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17226 dc483132-0cff-0310-8789-dd5450dbe970
* * debug.h (test): Macro renamed from "assert".Ken Raeburn2004-04-291-0/+5
| | | | | | * krb5_decode_test.c, krb5_encode_test.c: Callers updated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16283 dc483132-0cff-0310-8789-dd5450dbe970
* Sequence numbers are now unsigned. Implement lenient parser forTom Yu2003-05-181-0/+8
| | | | | | | | | | | sequence numbers which folds received negative sequence numbers into positive unsigned numbers. Constrain the space of initial sequence numbers to facilitate backwards compatibility. ticket: 1262 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15457 dc483132-0cff-0310-8789-dd5450dbe970
* Cleanup memory in asn.1 testsuite to allow for leak checkingEzra Peisach2003-05-121-0/+16
| | | | | | | | | | | | | | | | | | | | | | | * krb5_decode_test.c: Modify decode_run macro to take a cleanup handler to free allocated memory. Add static handlers to free krb5_alt_method, passwd_phrase_element and krb5_enc_data as the krb5 library does not handle at this time. * krb5_encode_test.c: Free krb5_context at end. Utilize the many ktest_empty and detroy functions to cleanup memory. * ktest.h, ktest.c: Add many ktest free and empty functions to cleanup allocated structures in tests. * utility.c (krb5_data_hex_parse): Free temporary data. With these changes, one can then test for memory leaks in the asn.1 and krb5_free functions. ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15413 dc483132-0cff-0310-8789-dd5450dbe970
* Implement encoders for etype_info2 and add support to s2kparams forSam Hartman2003-05-061-0/+7
| | | | | | | | | decoders. Ticket: 1454 Status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15393 dc483132-0cff-0310-8789-dd5450dbe970
* For sam_challenge do not encode optional strings if string not present.Ezra Peisach2002-11-071-0/+8
| | | | | | | | Previously, a string of length zero was transmitted. ticket: 1224 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14974 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Revert $(S)=>/ change, for Windows supportKen Raeburn2002-08-291-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14786 dc483132-0cff-0310-8789-dd5450dbe970
* Change $(S)=>/ and $(U)=>.. globallyKen Raeburn2002-08-231-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14761 dc483132-0cff-0310-8789-dd5450dbe970
* Don't conditionalize prototypes; delete macros supporting it. (Maybe overdone;Ken Raeburn2001-10-101-0/+5
| | | | | | don't worry about restoring them when importing new versions of code.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13792 dc483132-0cff-0310-8789-dd5450dbe970
* * trval.c: Include string.h for strcmp prototypeEzra Peisach2001-07-061-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13578 dc483132-0cff-0310-8789-dd5450dbe970
* assume ANSI C: delete no-volatile support, and most no-prototype supportKen Raeburn2001-04-261-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13201 dc483132-0cff-0310-8789-dd5450dbe970
* * trval.c: Add prototypes for trval() and trval2()Ezra Peisach2001-02-181-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13009 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode_test.c (main): Add new test cases for indefiniteTom Yu2000-10-261-0/+6
| | | | | | | length ticket and as_rep. Fix up calls to decode_run() to have the modifier be in the description parameter. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12817 dc483132-0cff-0310-8789-dd5450dbe970
* * ktest.c (ktest_make_sample_etype_info): Use KRB5_ETYPE_NO_SALTEzra Peisach2000-10-171-0/+20
| | | | | | | | | | | | | | | | | | | | | instead of -1. * ktest_equal.c (ktest_equal_krb5_etype_info_entry): Test for KRB5_ETYPE_NO_SALT. ktest_equal_array_of_octet() and ktest_equal_array_of_char take unsigned int lengths. * ktest_equal.h: Add len_unsigned_array macro for a prototype of a function taking an unsigned int count. ktest_equal_array_of_octet() is one of these. ktest_equal_array_of_char() takes an unsigned int as length. * trval.c (trval): Unsigned/signed int fix. * utility.c (asn1_krb5_data_unparse): Better test for krb5_data length being less than zero. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12789 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode_test.c (decode_run): If the ASN1 decoder returns anEzra Peisach2000-09-261-0/+8
| | | | | | | | | | | | | error, add one to the error count so there will be a non-zero exit. Sometimes, the decoded structure is complete enoght to pass the test, even with an ASN.1 error - which can easilly get missed in the output run. The indefinite lengths encryption key test (w/ trailing [2] integer) fails under linux and SGI - but works on other platforms - probably due to luck stack problems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12677 dc483132-0cff-0310-8789-dd5450dbe970
* * reference_encode.out, trval_reference.out: Test encoding ofEzra Peisach2000-08-071-0/+10
| | | | | | | | | | | negative lr_type field. * krb5_decode_test.c: Fix enc_kdc_rep_part tests to trully handle a negative lr_type in a krb5_last_req_entry structure. If KRB5_GENEROUS_LR_TYPE is defined, do a backwards compatibility test as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12609 dc483132-0cff-0310-8789-dd5450dbe970
* * utility.c: Add casts on types being sent to internal functionsEzra Peisach2000-07-291-0/+10
| | | | | | | | | | * krb5_encode_test.c: Declare internal functions as static. * ktest.c: Remove unused functions. Clean up compiler warnings. * trval.c: Add proper prototype for declared functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12590 dc483132-0cff-0310-8789-dd5450dbe970
* Change wsanchez@apple -> tritan@mitWilfredo Sanchez2000-06-011-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12331 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode_test.c (main): Add test case for zero-lengthTom Yu1999-11-011-0/+5
| | | | | | SequenceOfType. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11891 dc483132-0cff-0310-8789-dd5450dbe970
* lost date/name line in last checkinKen Raeburn1999-10-261-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11880 dc483132-0cff-0310-8789-dd5450dbe970
* * trval.c (print_tag_type): Use fputs when there's no formatting to doKen Raeburn1999-10-261-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11879 dc483132-0cff-0310-8789-dd5450dbe970
* log tritan's changesTom Yu1999-10-261-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11877 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode_test.c (main): Add additional test cases inTom Yu1999-07-111-0/+5
| | | | | | encryption_key to test negative integer handling. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11559 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode_test.c (main): Add test cases for encryption_key inTom Yu1999-07-041-0/+6
| | | | | | | order to test skipping of trailing fields in sequences, as well as handling of indefinite lengths in sequences. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11543 dc483132-0cff-0310-8789-dd5450dbe970
* trval.c: Now understands krb5 structure elementsTheodore Tso1999-01-291-0/+7
| | | | | | | krb5_encode_test.c: Pass trval type hints to trval2() so that datastructures get properly decoded. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11136 dc483132-0cff-0310-8789-dd5450dbe970
* trval.c: Added usage message, better options parsing, and support forTheodore Tso1999-01-221-0/+10
| | | | | | | | | | two new options: -hex, which will accept the asn.1 encoding in hex (i.e., from a packet dump), and -krb5, which instructs the trval to print out the krb5 interpretations of the data types. Trval will now also try to interpret the field names of known krb5 structures if -krb5 is specified. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11118 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-12-051-0/+5
| | | | | | to buildtop and thisconfigdir, respectively.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11087 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode_test.c (main): Add variant test cases onTom Yu1998-12-041-0/+7
| | | | | | | | enc_tkt_part to test bit string values that aren't exactly 32 bits, including 38, 40, 29, and 24 bits to test boundary conditions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11059 dc483132-0cff-0310-8789-dd5450dbe970
* POSIX states that getopt returns -1 when it is done parsing options,Theodore Tso1998-05-061-0/+5
| | | | | | not EOF. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10550 dc483132-0cff-0310-8789-dd5450dbe970
* * ktest_equal.h: Add prototypes for ktest_equal_sam_challenge andEzra Peisach1998-03-301-0/+10
| | | | | | | | | | | 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
* Remove trailing slash from thisconfigdir. Change directory syntaxTom Yu1998-02-181-0/+5
| | | | | | used in BUILDTOP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10464 dc483132-0cff-0310-8789-dd5450dbe970
* Mass makefile/configure.in build system revampTheodore Tso1998-02-121-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10424 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SRCS): Add $(srcdir)Ezra Peisach1997-08-171-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10176 dc483132-0cff-0310-8789-dd5450dbe970
* Remove AC_PROG_INSTALL as we do not instal lhere....\Ezra Peisach1997-03-201-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10019 dc483132-0cff-0310-8789-dd5450dbe970
* Merge of libhack_branchTom Yu1997-02-091-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9831 dc483132-0cff-0310-8789-dd5450dbe970
* krb5_encode_test.c (PRS): Add the -p option to krb5_encode_test toTheodore Tso1996-11-141-0/+17
| | | | | | | | | | | | | | | | | change the sample principal value (to test encoding of different krb5 principals). ktest.c (ktest_make_sample_principal): Use krb5_parse_principal so that sample principal can be configured for different purposes. krb5_decode_test.c (main): krb5_encode_test.c (main): Check return value from krb5_init_context to make sure it succeeded. Makefile.in (check): Set KRB5_CONFIG to $(TOPSRC)/config-files/krb5.conf so that the tests work. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9412 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode_test.c (main): For asn1_decode_enc_kdc_rep_part,Ezra Peisach1996-06-051-0/+5
| | | | | | starttime will equal authtime if not sent OTW. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8232 dc483132-0cff-0310-8789-dd5450dbe970
* cygnus merge: sscanf workaround; logs for sam testsKen Raeburn1996-05-041-0/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7897 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Add KRB5_RUN_FLAGSEzra Peisach1996-03-191-0/+6
| | | | | | * Makefile.in: Use the run flags. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7665 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode_test.c (main): In krb5_enc_tkt_part (optionals NULL)Ezra Peisach1996-03-031-0/+5
| | | | | | | test, set starttime to authtime. Matches change to lib/krb5/asn.1/krb5_decode.c. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7588 dc483132-0cff-0310-8789-dd5450dbe970
* * ktest_equal.c (ktest_equal_krb5_etype_info_entry()) :Chris Provenzano1995-11-151-0/+6
| | | | | | Only do emecmp() if ref->length > 0 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7108 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_encode_test.c (main): In case of an error in the encodingTheodore Tso1995-11-091-0/+11
| | | | | | | | | | | | routines, exit. Otherwise, calling the print routines will often lead to a coredump. * ktest.c (ktest_make_sample_etype_info): Set etype.length to -1 to mean that the optional salt string is missing. (This is change in the convention used by the ASN.1 encoder and decoder for this ASN.1 structure.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7068 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode_test.c (main): Add tests for decode_krb5_enc_dataTheodore Tso1995-11-081-2/+16
| | | | | | | | | | | | | | | and decode_krb5_pa_enc_ts. * krb5_encode_test.c (main): Add tests for encode_krb5_enc_data and encode_krb5_pa_enc_ts. * ktest.c (ktest_make_sample_pa_enc_ts): New functions to test {encode,decode}_krb5_pa_enc_ts(). * ktest_equal.c (ktest_equal_krb5_pa_enc_ts): New functions to test {encode,decode}_krb5_pa_enc_ts(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7052 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed signed/unsigned -Wall flameTheodore Tso1995-10-151-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6968 dc483132-0cff-0310-8789-dd5450dbe970
* Remove trval on a make cleanTheodore Tso1995-09-291-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6898 dc483132-0cff-0310-8789-dd5450dbe970
* * ktest.c, ktest_equal.c, ktest_equal.h :Chris Provenzano1995-09-061-0/+5
| | | | | | s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6729 dc483132-0cff-0310-8789-dd5450dbe970
* * ktest.c, ktest.h, ktest_equal.c, ktest_equal.h : Remove krb5_enctypeChris Provenzano1995-09-061-0/+4
| | | | | | references, and replace with krb5_keytype where appropriate git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6688 dc483132-0cff-0310-8789-dd5450dbe970
* Fix compilation errorsPaul Park1995-08-291-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6632 dc483132-0cff-0310-8789-dd5450dbe970