1. 04 Dec, 2002 13 commits
    • Niels Möller's avatar
      *** empty log message *** · 29a52eee
      Niels Möller authored
      Rev: ChangeLog:1.568
      Rev: doc/TODO:1.132
      Rev: src/nettle/ChangeLog:1.153
      Rev: src/spki/testsuite/.cvsignore:1.6
      29a52eee
    • Niels Möller's avatar
      (test_main): Use %0s instead of %z. · 08d77819
      Niels Möller authored
      New test for %t.
      
      Rev: src/nettle/testsuite/sexp-format-test.c:1.4
      08d77819
    • Niels Möller's avatar
      *** empty log message *** · 1daad3a3
      Niels Möller authored
      Rev: src/nettle/ChangeLog:1.152
      Rev: src/nettle/TODO:1.5
      Rev: src/spki/ChangeLog:1.22
      Rev: src/spki/certificate.h:1.17
      1daad3a3
    • Niels Möller's avatar
      (format_length_string): Deleted function. · c767c166
      Niels Möller authored
      (format_string): Deleted function.
      (sexp_vformat): New %t specifier, formatting an optional display
      type. Deleted %z specifier. Instead, introduced a new modifier "0"
      that can be used with %s, %l and %t, which says that the data is
      NUL-terminated.
      
      Rev: src/nettle/sexp-format.c:1.5
      Rev: src/nettle/sexp.h:1.11
      c767c166
    • Niels Möller's avatar
      (rsa_keypair_to_sexp): Use %0s rather than %z, when · 865fbd48
      Niels Möller authored
      formatting s-expressions.
      
      Rev: src/nettle/rsa2sexp.c:1.4
      865fbd48
    • Niels Möller's avatar
      (nettle_buffer_grow): Fixed assertion. · eba9bf65
      Niels Möller authored
      Rev: src/nettle/buffer.c:1.4
      eba9bf65
    • Niels Möller's avatar
      * src/dsa.c (do_dsa_sign): Use %0s, not %z, when formatting · b72e618d
      Niels Möller authored
      s-expressions.
      (do_dsa_public_spki_key): Likewise.
      * src/spki.c (spki_pkcs5_encrypt): Likewise.
      (make_ssh_hostkey_tag): Likewise.
      (spki_hash_data): Likewise.
      * src/rsa_keygen.c (rsa_generate_key): Likewise.
      * src/rsa.c (do_rsa_public_spki_key): Likewise.
      * src/lsh.c (do_lsh_lookup): Likewise.
      * src/dsa_keygen.c (dsa_generate_key): Likewise.
      
      Rev: src/dsa.c:1.36
      Rev: src/dsa_keygen.c:1.23
      Rev: src/lsh.c:1.171
      Rev: src/rsa.c:1.24
      Rev: src/rsa_keygen.c:1.12
      Rev: src/spki.c:1.43
      b72e618d
    • Niels Möller's avatar
      (atom_prefix): Fixed assertion. · ca9ae88d
      Niels Möller authored
      (spki_tag_intersect): The ordering of a and b (with a having the
      "widest" type) was wrong.
      
      Rev: src/spki/tag.c:1.10
      ca9ae88d
    • Niels Möller's avatar
      (spki_5_tuple_by_subject): Use spki_principal_normalize · 047bd1a3
      Niels Möller authored
      for comparisons.
      
      Rev: src/spki/reduce.c:1.2
      047bd1a3
    • Niels Möller's avatar
      (spki_parse_fail): New function. Changed all parser · 9a6fd3f2
      Niels Möller authored
      functons to use it when they fail.
      (spki_parse_principal): Changed to parse a complete subject or
      issuer subexpression.
      (spki_parse_acl_entry): Use new spki_parse_principal.
      (spki_parse_cert): Likewise.
      (spki_parse_tag): Don't assert that expression is of the right
      type, simply call spki_parse_fail.
      
      Rev: src/spki/parse.c:1.10
      Rev: src/spki/parse.h:1.10
      9a6fd3f2
    • Niels Möller's avatar
      (spki_principal_normalize): New function, to be · 2ef01471
      Niels Möller authored
      used when comparing principals.
      (spki_5_tuple_fix_aliases): #if:ed out this function, as it didn't
      seem robust enough. Also #if:ed out all uses.
      
      Rev: src/spki/certificate.c:1.18
      2ef01471
    • Niels Möller's avatar
      (TS_PROGS): Added cdsa-reduce-test. · 6e39e5ed
      Niels Möller authored
      Rev: src/spki/testsuite/Makefile.am:1.10
      6e39e5ed
    • Niels Möller's avatar
      (filter_by_tag, filter_by_subject) · 6f8beacc
      Niels Möller authored
      (filter_by_date): New functions.
      (test_main): Process the red-test filter expressions. Omit some
      tests that seem broken, or use features that we haven't
      implemented yet. Don't ASSERT that the resulting 5-tuple list is
      non-empty, some test cases result in empty lists.
      
      Rev: src/spki/testsuite/cdsa-reduce-test.c:1.2
      6f8beacc
  2. 03 Dec, 2002 2 commits
    • Niels Möller's avatar
      New test program, using cdsa tests. · c15bc8a6
      Niels Möller authored
      Rev: src/spki/testsuite/cdsa-reduce-test.c:1.1
      c15bc8a6
    • Niels Möller's avatar
      * testsuite/cdsa-cases: New directory with test cases snarfed from · 65acd9f5
      Niels Möller authored
      cdsa.
      
      Rev: src/spki/testsuite/cdsa-cases/1.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/1.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/10.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/10.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/1000.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/11.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/11.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/12.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/12.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/13.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/13.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/14.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/14.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/15.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/15.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/16.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/16.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/17.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/17.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/18.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/18.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/19.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/19.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/2.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/2.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/20.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/20.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/21.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/21.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/22.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/22.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/23.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/23.ou1:1.1
      Rev: src/spki/testsuite/cdsa-cases/23.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/24.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/24.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/25.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/25.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/26.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/26.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/27.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/27.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/28.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/28.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/29.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/29.ou1:1.1
      Rev: src/spki/testsuite/cdsa-cases/29.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/3.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/3.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/30.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/30.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/31.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/31.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/32.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/32.ou1:1.1
      Rev: src/spki/testsuite/cdsa-cases/32.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/33.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/33.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/34.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/34.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/35.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/35.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/36.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/36.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/37.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/37.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/38.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/38.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/39.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/39.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/4.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/4.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/40.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/40.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/41.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/41.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/42.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/42.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/43.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/43.ou1:1.1
      Rev: src/spki/testsuite/cdsa-cases/43.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/44.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/44.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/45.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/45.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/46.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/46.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/47.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/47.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/48.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/48.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/49.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/49.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/5.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/5.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/50.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/50.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/51.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/51.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/52.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/52.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/53.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/53.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/54.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/54.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/55.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/55.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/56.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/56.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/57.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/57.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/58.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/58.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/59.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/59.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/6.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/6.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/60.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/60.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/61.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/61.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/62.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/62.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/63.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/63.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/64.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/64.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/65.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/65.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/66.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/66.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/67.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/67.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/68.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/68.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/69.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/69.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/7.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/7.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/70.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/70.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/71.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/71.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/72.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/72.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/73.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/73.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/74.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/74.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/75.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/75.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/76.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/76.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/77.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/77.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/78.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/78.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/79.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/79.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/8.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/8.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/80.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/80.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/81.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/81.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/82.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/82.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/83.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/83.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/84.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/84.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/85.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/85.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/86.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/86.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/87.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/87.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/88.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/88.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/89.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/89.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/9.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/9.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/90.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/90.out:1.1
      Rev: src/spki/testsuite/cdsa-cases/91.in:1.1
      Rev: src/spki/testsuite/cdsa-cases/91.out:1.1
      65acd9f5
  3. 27 Nov, 2002 7 commits
    • Niels Möller's avatar
      *** empty log message *** · bdfddf73
      Niels Möller authored
      Rev: src/spki/ChangeLog:1.21
      bdfddf73
    • Niels Möller's avatar
      * testsuite/lookup-acl-test.c (test_main): Updated for new acl · 9d5aa2a0
      Niels Möller authored
      syntax.
      * testsuite/read-acl-test.c (test_main): Likewise.
      
      * testsuite/read-cert-test.c (test_main): Need to initialize the
      cert.
      
      Rev: src/spki/testsuite/lookup-acl-test.c:1.3
      Rev: src/spki/testsuite/read-acl-test.c:1.6
      Rev: src/spki/testsuite/read-cert-test.c:1.5
      9d5aa2a0
    • Niels Möller's avatar
      (list_format, spki_tag_format): New functions. · 1f3f5cd6
      Niels Möller authored
      Rev: src/spki/tag.c:1.9
      Rev: src/spki/tag.h:1.5
      1f3f5cd6
    • Niels Möller's avatar
      * certificate.c (spki_acl_clear): New function. · 84c3921e
      Niels Möller authored
      (spki_principal_add_keyspki_principal_add_md5,
      spki_principal_add_sha1): Initialize alias field.
      (HASH_MATCH): New macro.
      (spki_principal_fix_aliases): New function.
      (spki_principal_by_key): Setup alias pointers if we add a key for
      which a hash is already known.
      (spki_principal_free_chain): New function.
      (spki_5_tuple_init): New function.
      (spki_5_tuple_fix_aliases): New function.
      (spki_acl_parse): Call spki_5_tuple_fix_aliases before returning.
      (format_valid, spki_acl_format): New functions.
      (spki_process_sequence_no_signatures): Bug fix in looping over the
      sequence. Call spki_5_tuple_fix_aliases before returning.
      (spki_date_since_ever): Represent a time far ago.
      (spki_date_for_ever): Represent a time far into the future.
      
      * certificate.h (struct spki_principal): New field, alias.
      (spki_date_since_ever, spki_date_for_ever): New constant globals.
      (SPKI_DATE_CMP): New macro.
      
      Rev: src/spki/certificate.c:1.17
      Rev: src/spki/certificate.h:1.16
      84c3921e
    • Niels Möller's avatar
      * Makefile.am (libspki_a_SOURCES): Added reduce.c. · a6f37b29
      Niels Möller authored
      * reduce.c: New file.
      (spki_5_tuple_reduce): New function.
      
      Rev: src/spki/Makefile.am:1.8
      Rev: src/spki/reduce.c:1.1
      a6f37b29
    • Niels Möller's avatar
      (spki_iterator_first_sexp): New function, an alternative · 13f45747
      Niels Möller authored
      initializer.
      (spki_parse_acl_entry): Deleted initialization, the caller should
      initialize the 5-tuple. Updated the syntax to include a real
      subject expression.
      (spki_parse_cert): Deleted initialization, the caller should
      initialize the 5-tuple. Fixed syntax check of subject expressions.
      
      Rev: src/spki/parse.c:1.9
      Rev: src/spki/parse.h:1.9
      13f45747
    • Niels Möller's avatar
      New file. · b7cf5a98
      Niels Möller authored
      Rev: src/spki/ChangeLog:1.20
      Rev: src/spki/index.html:1.1
      b7cf5a98
  4. 22 Nov, 2002 14 commits
    • Niels Möller's avatar
      (enum spki_tag_type): Reordered types, ordered from more · db86d20d
      Niels Möller authored
      inclusive to less inclusive.
      (spki_tag_intersect): New function.
      
      Rev: src/spki/tag.c:1.8
      Rev: src/spki/tag.h:1.4
      db86d20d
    • Niels Möller's avatar
      *** empty log message *** · 8b85d782
      Niels Möller authored
      Rev: src/spki/ChangeLog:1.19
      8b85d782
    • Niels Möller's avatar
      (test_main): Enabled more tests, for · 5e4cf963
      Niels Möller authored
      set/set inclusions.
      
      Rev: src/spki/testsuite/tag-test.c:1.3
      5e4cf963
    • Niels Möller's avatar
      (test_main): Adapted to changed · 4c203c4b
      Niels Möller authored
      spki_acl_by_authorization_first and
      spki_acl_by_authorization_next.
      
      Rev: src/spki/testsuite/lookup-acl-test.c:1.2
      4c203c4b
    • Niels Möller's avatar
      (make_tag, release_tag): New functions. · d07c82d9
      Niels Möller authored
      Rev: src/spki/testsuite/testutils.c:1.3
      Rev: src/spki/testsuite/testutils.h:1.7
      d07c82d9
    • Niels Möller's avatar
      * certificate.h (struct spki_acl_db): Use nettle_realloc_func for · 361007f5
      Niels Möller authored
      custom allocation.
      
      * certificate.c (spki_realloc): Deleted function.
      (spki_acl_init): Use nettle_realloc.
      (acl_by_auth): Take a struct spki_tag argument.
      (spki_acl_by_authorization_next): Likewise.
      (spki_acl_by_authorization_first): Likewise.
      (spki_5_tuple_free_chain): Use spki_tag_release.
      
      Rev: src/spki/certificate.c:1.16
      Rev: src/spki/certificate.h:1.15
      361007f5
    • Niels Möller's avatar
      (spki_check_type): Deleted function. · c2a6e98d
      Niels Möller authored
      (spki_next_subexpr): Deleted function.
      (spki_parse_tag): Use spki_tag_compile to convert tag to internal
      representation.
      
      Rev: src/spki/parse.c:1.8
      Rev: src/spki/parse.h:1.8
      c2a6e98d
    • Niels Möller's avatar
      * tag.c (string_equal, string_prefix): New functions. · 6e8a362c
      Niels Möller authored
      (tag_list, tag_atom, tag_range): New functions, isolating type
      casts. Replaced typecasts in the rest of the code with function
      calls.
      (spki_tag_set_new): Normalize sets with a single element.
      (spki_tag_compile): Get the tag expressions in a list in the right
      order.
      (spki_tag_from_sexp): New function.
      (atom_prefix): New function.
      (atom_equal): Change dto use new string type.
      (set_includes, list_includes, spki_tag_includes): Rewrote to work
      with the tree representation of tags, rather than with plain strings.
      
      Rev: src/spki/tag.c:1.7
      Rev: src/spki/tag.h:1.3
      6e8a362c
    • Niels Möller's avatar
      Fixed minor compile-time bugs. · f7e73fe5
      Niels Möller authored
      Rev: src/spki/tag.c:1.6
      f7e73fe5
    • Niels Möller's avatar
      (struct spki_tag_range): Removed const. · 01c0d2b5
      Niels Möller authored
      (spki_tag_compile): Removed const.
      (spki_tag_compile): Cast &spki_tag_any to a non-const pointer when
      returning it.
      (spki_cons_nreverse): New function.
      (spki_tag_set_new): New function, normalizing sets inside sets.
      Also reordered functions, putting operations on strings and lists
      first.
      
      Rev: src/spki/ChangeLog:1.18
      Rev: src/spki/tag.c:1.5
      01c0d2b5
    • Niels Möller's avatar
      (struct spki_tag_range): Removed const. · db390344
      Niels Möller authored
      (spki_tag_compile): Removed const.
      (spki_tag_compile): Cast &spki_tag_any to a non-const pointer when
      returning it.
      
      Rev: src/spki/tag.c:1.4
      db390344
    • Niels Möller's avatar
      Include assert.h. · be674a1d
      Niels Möller authored
      Rev: src/nettle/ChangeLog:1.151
      Rev: src/nettle/buffer.c:1.3
      be674a1d
    • Niels Möller's avatar
      (test_main): Added more tests. · 8a5d77a1
      Niels Möller authored
      Rev: src/spki/testsuite/tag-test.c:1.2
      8a5d77a1
    • Niels Möller's avatar
      * tag.c (struct spki_tag, struct spki_cons, struct spki_string): · c5d24d8e
      Niels Möller authored
      New structs, used for representing a tag. Strings and tags are
      reference counted. Added a set of contructors and book-keeping
      functions.
      (enum spki_range_type): New enum.
      (spki_tag_classify): An list must start with a string.
      (spki_tag_compile): New function.
      (spki_tag_release): New function.
      
      * tag.c (set_includes): Fixed recovery if matching fails in the
      middle of one of the elements.
      (spki_tag_includes): For SPKI_TAG_ANY, advance past the (*)
      expression.
      
      Rev: src/spki/tag.c:1.3
      Rev: src/spki/tag.h:1.2
      c5d24d8e
  5. 21 Nov, 2002 4 commits