• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..22-Jul-2021-

Makefile.inH A D22-Jul-20213.2 KiB9966

READMEH A D22-Jul-20211.3 KiB2923

cammac.asn1H A D22-Jul-2021929 3125

debug.hH A D22-Jul-20211.7 KiB478

depsH A D22-Jul-20214.8 KiB7675

krb5.asn1H A D22-Jul-202112.9 KiB393333

krb5_decode_leak.cH A D22-Jul-202124.5 KiB687460

krb5_decode_test.cH A D22-Jul-202185.6 KiB1,309929

krb5_encode_test.cH A D22-Jul-202130.9 KiB871638

ktest.cH A D22-Jul-202146.4 KiB1,8731,617

ktest.hH A D22-Jul-20219.9 KiB215169

ktest_equal.cH A D22-Jul-202132.3 KiB1,095960

ktest_equal.hH A D22-Jul-20217.1 KiB159106

ldap_encode.outH A D22-Jul-2021447 21

ldap_trval.outH A D22-Jul-2021868 3128

make-vectors.cH A D22-Jul-202112.7 KiB334218

otp.asn1H A D22-Jul-20214 KiB11096

pkinit-agility.asn1H A D22-Jul-20213.6 KiB10089

pkinit.asn1H A D22-Jul-202110.6 KiB254230

pkinit_encode.outH A D22-Jul-20211.7 KiB98

pkinit_trval.outH A D22-Jul-20213.3 KiB10487

pkix.asn1H A D22-Jul-202122.7 KiB655491

reference_encode.outH A D22-Jul-202131.2 KiB8180

spake.asn1H A D22-Jul-20211 KiB4537

t_trval.cH A D22-Jul-20213.5 KiB10862

trval.cH A D22-Jul-202120.1 KiB770618

trval_reference.outH A D22-Jul-202155.7 KiB1,6371,477

utility.cH A D22-Jul-20213.6 KiB143101

utility.hH A D22-Jul-20212.4 KiB5811

README

1krb5_encode_test runs through all the functions declared in
2 src/include/krb5/asn.1/krb5_encode.h.  It passes various sample
3 inputs to each function and prints the result to standard
4 output.  This output should match the contents of the file
5 "reference_encode.out".
6
7 Each function is first run with a relatively simple, contrived
8 sample structure.  Then if the structure has any optional parts,
9 these parts are cleared and another run is made.
10
11 Some structures (namely, those containing a krb5_kdc_req_body)
12 have a third run, due to the fact that two of the kdc_req_body's
13 optional fields have mutually exclusive conditions under which
14 they may be omitted.
15
16
17krb5_decode_test runs through all the functions declared in
18 src/include/krb5/asn.1/krb5_decode.h.  It has the encodings in
19 reference_encode.out hard-coded into itself.  It sets up the
20 krb5 structures the same way krb5_encode_test does, then passes
21 its hard-coded encoding strings through the krb5 decoders.
22
23 The outputs of these functions are compared to the previously
24 set-up structures in memory, and the results are reported to
25 standard output.  If every line comes out prefixed by "OK: ",
26 then the decoders are working properly.  If any decoder produces
27 an anomalous output, then its output line will be prefixed by
28 "ERROR: "
29