1. 13 Jul, 2012 1 commit
  2. 03 Feb, 2012 1 commit
  3. 07 Jun, 2010 1 commit
    • Niels Möller's avatar
      (enum spki_principal_flags): Renamed to... · 620770f5
      Niels Möller authored
      (enum spki_hash_flags): ...new enum. Renamed flags, and added
      SPKI_HASH_SHA256.
      (struct spki_hashes): Moved flags field here, and added sha256
      hash.
      (struct spki_principal): Deleted flags field.
      
      Rev: spki/certificate.h:1.2
      620770f5
  4. 05 Apr, 2007 1 commit
    • Niels Möller's avatar
      Moved in CVS tree. Converted to plain autoconf. · 8a352623
      Niels Möller authored
      Rev: spki/.bootstrap:1.1
      Rev: spki/.c-style:1.1
      Rev: spki/.cvsignore:1.1
      Rev: spki/AUTHORS:1.1
      Rev: spki/ChangeLog:1.1
      Rev: spki/Makefile.in:1.1
      Rev: spki/NEWS:1.1
      Rev: spki/README:1.1
      Rev: spki/TODO:1.1
      Rev: spki/certificate.c:1.1
      Rev: spki/certificate.h:1.1
      Rev: spki/config.make.in:1.1
      Rev: spki/configure.ac:1.1
      Rev: spki/index.css:1.1
      Rev: spki/index.html:1.1
      Rev: spki/names.c:1.1
      Rev: spki/parse-transport.c:1.1
      Rev: spki/parse.c:1.1
      Rev: spki/parse.h:1.1
      Rev: spki/process-types:1.1
      Rev: spki/reduce.c:1.1
      Rev: spki/spki-types.in:1.1
      Rev: spki/tag.c:1.1
      Rev: spki/tag.h:1.1
      Rev: spki/testsuite/.c-style:1.1
      Rev: spki/testsuite/.cvsignore:1.1
      Rev: spki/testsuite/.gdbinit:1.1
      Rev: spki/testsuite/.test-rules.make:1.1
      Rev: spki/testsuite/Makefile.in:1.1
      Rev: spki/testsuite/cdsa-cases/1.in:1.1
      Rev: spki/testsuite/cdsa-cases/1.out:1.1
      Rev: spki/testsuite/cdsa-cases/10.in:1.1
      Rev: spki/testsuite/cdsa-cases/10.out:1.1
      Rev: spki/testsuite/cdsa-cases/1000.in:1.1
      Rev: spki/testsuite/cdsa-cases/11.in:1.1
      Rev: spki/testsuite/cdsa-cases/11.out:1.1
      Rev: spki/testsuite/cdsa-cases/12.in:1.1
      Rev: spki/testsuite/cdsa-cases/12.out:1.1
      Rev: spki/testsuite/cdsa-cases/13.in:1.1
      Rev: spki/testsuite/cdsa-cases/13.out:1.1
      Rev: spki/testsuite/cdsa-cases/14.in:1.1
      Rev: spki/testsuite/cdsa-cases/14.out:1.1
      Rev: spki/testsuite/cdsa-cases/15.in:1.1
      Rev: spki/testsuite/cdsa-cases/15.out:1.1
      Rev: spki/testsuite/cdsa-cases/16.in:1.1
      Rev: spki/testsuite/cdsa-cases/16.out:1.1
      Rev: spki/testsuite/cdsa-cases/17.in:1.1
      Rev: spki/testsuite/cdsa-cases/17.out:1.1
      Rev: spki/testsuite/cdsa-cases/18.in:1.1
      Rev: spki/testsuite/cdsa-cases/18.out:1.1
      Rev: spki/testsuite/cdsa-cases/19.in:1.1
      Rev: spki/testsuite/cdsa-cases/19.out:1.1
      Rev: spki/testsuite/cdsa-cases/2.in:1.1
      Rev: spki/testsuite/cdsa-cases/2.out:1.1
      Rev: spki/testsuite/cdsa-cases/20.in:1.1
      Rev: spki/testsuite/cdsa-cases/20.out:1.1
      Rev: spki/testsuite/cdsa-cases/21.in:1.1
      Rev: spki/testsuite/cdsa-cases/21.out:1.1
      Rev: spki/testsuite/cdsa-cases/22.in:1.1
      Rev: spki/testsuite/cdsa-cases/22.out:1.1
      Rev: spki/testsuite/cdsa-cases/23.in:1.1
      Rev: spki/testsuite/cdsa-cases/23.ou1:1.1
      Rev: spki/testsuite/cdsa-cases/23.out:1.1
      Rev: spki/testsuite/cdsa-cases/24.in:1.1
      Rev: spki/testsuite/cdsa-cases/24.out:1.1
      Rev: spki/testsuite/cdsa-cases/25.in:1.1
      Rev: spki/testsuite/cdsa-cases/25.out:1.1
      Rev: spki/testsuite/cdsa-cases/26.in:1.1
      Rev: spki/testsuite/cdsa-cases/26.out:1.1
      Rev: spki/testsuite/cdsa-cases/27.in:1.1
      Rev: spki/testsuite/cdsa-cases/27.out:1.1
      Rev: spki/testsuite/cdsa-cases/28.in:1.1
      Rev: spki/testsuite/cdsa-cases/28.out:1.1
      Rev: spki/testsuite/cdsa-cases/29.in:1.1
      Rev: spki/testsuite/cdsa-cases/29.ou1:1.1
      Rev: spki/testsuite/cdsa-cases/29.out:1.1
      Rev: spki/testsuite/cdsa-cases/3.in:1.1
      Rev: spki/testsuite/cdsa-cases/3.out:1.1
      Rev: spki/testsuite/cdsa-cases/30.in:1.1
      Rev: spki/testsuite/cdsa-cases/30.out:1.1
      Rev: spki/testsuite/cdsa-cases/31.in:1.1
      Rev: spki/testsuite/cdsa-cases/31.out:1.1
      Rev: spki/testsuite/cdsa-cases/32.in:1.1
      Rev: spki/testsuite/cdsa-cases/32.ou1:1.1
      Rev: spki/testsuite/cdsa-cases/32.out:1.1
      Rev: spki/testsuite/cdsa-cases/33.in:1.1
      Rev: spki/testsuite/cdsa-cases/33.out:1.1
      Rev: spki/testsuite/cdsa-cases/34.in:1.1
      Rev: spki/testsuite/cdsa-cases/34.out:1.1
      Rev: spki/testsuite/cdsa-cases/35.in:1.1
      Rev: spki/testsuite/cdsa-cases/35.out:1.1
      Rev: spki/testsuite/cdsa-cases/36.in:1.1
      Rev: spki/testsuite/cdsa-cases/36.out:1.1
      Rev: spki/testsuite/cdsa-cases/37.in:1.1
      Rev: spki/testsuite/cdsa-cases/37.out:1.1
      Rev: spki/testsuite/cdsa-cases/38.in:1.1
      Rev: spki/testsuite/cdsa-cases/38.out:1.1
      Rev: spki/testsuite/cdsa-cases/39.in:1.1
      Rev: spki/testsuite/cdsa-cases/39.out:1.1
      Rev: spki/testsuite/cdsa-cases/4.in:1.1
      Rev: spki/testsuite/cdsa-cases/4.out:1.1
      Rev: spki/testsuite/cdsa-cases/40.in:1.1
      Rev: spki/testsuite/cdsa-cases/40.out:1.1
      Rev: spki/testsuite/cdsa-cases/41.in:1.1
      Rev: spki/testsuite/cdsa-cases/41.out:1.1
      Rev: spki/testsuite/cdsa-cases/42.in:1.1
      Rev: spki/testsuite/cdsa-cases/42.out:1.1
      Rev: spki/testsuite/cdsa-cases/43.in:1.1
      Rev: spki/testsuite/cdsa-cases/43.ou1:1.1
      Rev: spki/testsuite/cdsa-cases/43.out:1.1
      Rev: spki/testsuite/cdsa-cases/44.in:1.1
      Rev: spki/testsuite/cdsa-cases/44.out:1.1
      Rev: spki/testsuite/cdsa-cases/45.in:1.1
      Rev: spki/testsuite/cdsa-cases/45.out:1.1
      Rev: spki/testsuite/cdsa-cases/46.in:1.1
      Rev: spki/testsuite/cdsa-cases/46.out:1.1
      Rev: spki/testsuite/cdsa-cases/47.in:1.1
      Rev: spki/testsuite/cdsa-cases/47.out:1.1
      Rev: spki/testsuite/cdsa-cases/48.in:1.1
      Rev: spki/testsuite/cdsa-cases/48.out:1.1
      Rev: spki/testsuite/cdsa-cases/49.in:1.1
      Rev: spki/testsuite/cdsa-cases/49.out:1.1
      Rev: spki/testsuite/cdsa-cases/5.in:1.1
      Rev: spki/testsuite/cdsa-cases/5.out:1.1
      Rev: spki/testsuite/cdsa-cases/50.in:1.1
      Rev: spki/testsuite/cdsa-cases/50.out:1.1
      Rev: spki/testsuite/cdsa-cases/51.in:1.1
      Rev: spki/testsuite/cdsa-cases/51.out:1.1
      Rev: spki/testsuite/cdsa-cases/52.in:1.1
      Rev: spki/testsuite/cdsa-cases/52.out:1.1
      Rev: spki/testsuite/cdsa-cases/53.in:1.1
      Rev: spki/testsuite/cdsa-cases/53.out:1.1
      Rev: spki/testsuite/cdsa-cases/54.in:1.1
      Rev: spki/testsuite/cdsa-cases/54.out:1.1
      Rev: spki/testsuite/cdsa-cases/55.in:1.1
      Rev: spki/testsuite/cdsa-cases/55.out:1.1
      Rev: spki/testsuite/cdsa-cases/56.in:1.1
      Rev: spki/testsuite/cdsa-cases/56.out:1.1
      Rev: spki/testsuite/cdsa-cases/57.in:1.1
      Rev: spki/testsuite/cdsa-cases/57.out:1.1
      Rev: spki/testsuite/cdsa-cases/58.in:1.1
      Rev: spki/testsuite/cdsa-cases/58.out:1.1
      Rev: spki/testsuite/cdsa-cases/59.in:1.1
      Rev: spki/testsuite/cdsa-cases/59.out:1.1
      Rev: spki/testsuite/cdsa-cases/6.in:1.1
      Rev: spki/testsuite/cdsa-cases/6.out:1.1
      Rev: spki/testsuite/cdsa-cases/60.in:1.1
      Rev: spki/testsuite/cdsa-cases/60.out:1.1
      Rev: spki/testsuite/cdsa-cases/61.in:1.1
      Rev: spki/testsuite/cdsa-cases/61.out:1.1
      Rev: spki/testsuite/cdsa-cases/62.in:1.1
      Rev: spki/testsuite/cdsa-cases/62.out:1.1
      Rev: spki/testsuite/cdsa-cases/63.in:1.1
      Rev: spki/testsuite/cdsa-cases/63.out:1.1
      Rev: spki/testsuite/cdsa-cases/64.in:1.1
      Rev: spki/testsuite/cdsa-cases/64.out:1.1
      Rev: spki/testsuite/cdsa-cases/65.in:1.1
      Rev: spki/testsuite/cdsa-cases/65.out:1.1
      Rev: spki/testsuite/cdsa-cases/66.in:1.1
      Rev: spki/testsuite/cdsa-cases/66.out:1.1
      Rev: spki/testsuite/cdsa-cases/67.in:1.1
      Rev: spki/testsuite/cdsa-cases/67.out:1.1
      Rev: spki/testsuite/cdsa-cases/68.in:1.1
      Rev: spki/testsuite/cdsa-cases/68.out:1.1
      Rev: spki/testsuite/cdsa-cases/69.in:1.1
      Rev: spki/testsuite/cdsa-cases/69.out:1.1
      Rev: spki/testsuite/cdsa-cases/7.in:1.1
      Rev: spki/testsuite/cdsa-cases/7.out:1.1
      Rev: spki/testsuite/cdsa-cases/70.in:1.1
      Rev: spki/testsuite/cdsa-cases/70.out:1.1
      Rev: spki/testsuite/cdsa-cases/71.in:1.1
      Rev: spki/testsuite/cdsa-cases/71.out:1.1
      Rev: spki/testsuite/cdsa-cases/72.in:1.1
      Rev: spki/testsuite/cdsa-cases/72.out:1.1
      Rev: spki/testsuite/cdsa-cases/73.in:1.1
      Rev: spki/testsuite/cdsa-cases/73.out:1.1
      Rev: spki/testsuite/cdsa-cases/74.in:1.1
      Rev: spki/testsuite/cdsa-cases/74.out:1.1
      Rev: spki/testsuite/cdsa-cases/75.in:1.1
      Rev: spki/testsuite/cdsa-cases/75.out:1.1
      Rev: spki/testsuite/cdsa-cases/76.in:1.1
      Rev: spki/testsuite/cdsa-cases/76.out:1.1
      Rev: spki/testsuite/cdsa-cases/77.in:1.1
      Rev: spki/testsuite/cdsa-cases/77.out:1.1
      Rev: spki/testsuite/cdsa-cases/78.in:1.1
      Rev: spki/testsuite/cdsa-cases/78.out:1.1
      Rev: spki/testsuite/cdsa-cases/79.in:1.1
      Rev: spki/testsuite/cdsa-cases/79.out:1.1
      Rev: spki/testsuite/cdsa-cases/8.in:1.1
      Rev: spki/testsuite/cdsa-cases/8.out:1.1
      Rev: spki/testsuite/cdsa-cases/80.in:1.1
      Rev: spki/testsuite/cdsa-cases/80.out:1.1
      Rev: spki/testsuite/cdsa-cases/81.in:1.1
      Rev: spki/testsuite/cdsa-cases/81.out:1.1
      Rev: spki/testsuite/cdsa-cases/82.in:1.1
      Rev: spki/testsuite/cdsa-cases/82.out:1.1
      Rev: spki/testsuite/cdsa-cases/83.in:1.1
      Rev: spki/testsuite/cdsa-cases/83.out:1.1
      Rev: spki/testsuite/cdsa-cases/84.in:1.1
      Rev: spki/testsuite/cdsa-cases/84.out:1.1
      Rev: spki/testsuite/cdsa-cases/85.in:1.1
      Rev: spki/testsuite/cdsa-cases/85.out:1.1
      Rev: spki/testsuite/cdsa-cases/86.in:1.1
      Rev: spki/testsuite/cdsa-cases/86.out:1.1
      Rev: spki/testsuite/cdsa-cases/87.in:1.1
      Rev: spki/testsuite/cdsa-cases/87.out:1.1
      Rev: spki/testsuite/cdsa-cases/88.in:1.1
      Rev: spki/testsuite/cdsa-cases/88.out:1.1
      Rev: spki/testsuite/cdsa-cases/89.in:1.1
      Rev: spki/testsuite/cdsa-cases/89.out:1.1
      Rev: spki/testsuite/cdsa-cases/9.in:1.1
      Rev: spki/testsuite/cdsa-cases/9.out:1.1
      Rev: spki/testsuite/cdsa-cases/90.in:1.1
      Rev: spki/testsuite/cdsa-cases/90.out:1.1
      Rev: spki/testsuite/cdsa-cases/91.in:1.1
      Rev: spki/testsuite/cdsa-cases/91.out:1.1
      Rev: spki/testsuite/cdsa-reduce-test.c:1.1
      Rev: spki/testsuite/check-signature-test:1.1
      Rev: spki/testsuite/date-test.c:1.1
      Rev: spki/testsuite/delegate-test:1.1
      Rev: spki/testsuite/key-1:1.1
      Rev: spki/testsuite/key-1.pub:1.1
      Rev: spki/testsuite/key-2:1.1
      Rev: spki/testsuite/key-2.pub:1.1
      Rev: spki/testsuite/lookup-acl-test.c:1.1
      Rev: spki/testsuite/make-signature-test:1.1
      Rev: spki/testsuite/principal-test.c:1.1
      Rev: spki/testsuite/read-acl-test.c:1.1
      Rev: spki/testsuite/read-cert-test.c:1.1
      Rev: spki/testsuite/reduce-test:1.1
      Rev: spki/testsuite/setup-env:1.1
      Rev: spki/testsuite/tag-test.c:1.1
      Rev: spki/testsuite/testutils.c:1.1
      Rev: spki/testsuite/testutils.h:1.1
      Rev: spki/tools/.c-style:1.1
      Rev: spki/tools/.cvsignore:1.1
      Rev: spki/tools/.gdbinit:1.1
      Rev: spki/tools/Makefile.in:1.1
      Rev: spki/tools/misc.c:1.1
      Rev: spki/tools/misc.h:1.1
      Rev: spki/tools/sign.c:1.1
      Rev: spki/tools/sign.h:1.1
      Rev: spki/tools/spki-check-signature.c:1.1
      Rev: spki/tools/spki-delegate.c:1.1
      Rev: spki/tools/spki-make-signature.c:1.1
      Rev: spki/tools/spki-reduce.c:1.1
      Rev: spki/verify.c:1.1
      8a352623
  5. 11 Mar, 2003 1 commit
    • Niels Möller's avatar
      * certificate.c (parse_sequence): Changed return type to int. · 8d16d954
      Niels Möller authored
      Instead use a new struct spki_5_tuple_list ** argument for
      returning the list. The pint is to support sequences of the form
      (sequence (public-key ...)) that implies a subject, but result in
      an empty 5-tuple list.
      (spki_parse_sequence): Likewise.
      (spki_parse_sequence_no_signatures): Likewise.
      
      Rev: src/spki/certificate.c:1.27
      Rev: src/spki/certificate.h:1.27
      8d16d954
  6. 10 Mar, 2003 1 commit
    • Niels Möller's avatar
      (spki_parse_sequence_no_signatures): Use const for · 93f01f98
      Niels Möller authored
      the subject argument. Call spki_principal_normalize before
      returning.
      (spki_hash_verify): New function.
      (spki_parse_sequence): Implemented signature checks.
      
      Rev: src/spki/certificate.c:1.24
      Rev: src/spki/certificate.h:1.26
      93f01f98
  7. 08 Mar, 2003 1 commit
  8. 11 Feb, 2003 1 commit
  9. 28 Jan, 2003 1 commit
  10. 27 Jan, 2003 1 commit
  11. 22 Jan, 2003 1 commit
    • Niels Möller's avatar
      (struct spki_5_tuple): Deleted attribute next. · 3db3c038
      Niels Möller authored
      Added a reference counter.
      (struct spki_5_tuple_list): New struct.
      (struct spki_acl_db): Renamed attribute first_acl to acl. Now
      points at a spki_5_tuple_list.
      
      Rev: src/spki/certificate.h:1.21
      3db3c038
  12. 10 Jan, 2003 2 commits
  13. 08 Jan, 2003 1 commit
    • Niels Möller's avatar
      * certificate.h (struct spki_principal): New field verifier, for · 9847f129
      Niels Möller authored
      use by the application.
      
      * certificate.c (spki_principal_add_key): Initialize verifier
      field.
      (spki_principal_add_md5, spki_principal_add_sha1): Likewise.
      (spki_5_tuple_by_subject): Moved function from reduce.c, and made
      non-static.
      (spki_acl_by_subject_first): New function.
      (spki_acl_by_subject_next): New function.
      
      Rev: src/spki/certificate.c:1.19
      Rev: src/spki/certificate.h:1.18
      9847f129
  14. 04 Dec, 2002 1 commit
    • 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
  15. 27 Nov, 2002 1 commit
    • 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
  16. 22 Nov, 2002 1 commit
    • 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
  17. 19 Nov, 2002 1 commit
  18. 18 Nov, 2002 4 commits
  19. 17 Nov, 2002 1 commit
    • Niels Möller's avatar
      * certificate.c (spki_dup): Made function non-static. · 6cc66a36
      Niels Möller authored
      (parse_tag_body): Deleted function.
      (parse_acl_entry): Follow new parser function conventions. Use
      spki_parse_tag, spki_parse_skip and spki_parse_end.
      (spki_acl_parse): Adapt to new conventions.
      (parse_skip_optional): Deleted function.
      (spki_cert_parse_body): Use spki_parse_tag.
      
      Rev: src/spki/certificate.c:1.9
      Rev: src/spki/certificate.h:1.9
      6cc66a36
  20. 16 Nov, 2002 2 commits
    • Niels Möller's avatar
      * parse.h: New file. · 9e5bac1a
      Niels Möller authored
      * parse.c: New file.
      (spki_intern): Moved function here, from certificate.c.
      (spki_parse_type): Likewise, and renamed from spki_get_type.
      (spki_parse_end): New function.
      (spki_parse_principal): New function, replacing...
      * certificate.c (parse_principal): ... deleted function.
      (parse_tag): Deleted function.
      (parse_tag, parse_acl_entry): Rewrite to use spki_parse_principal.
      (spki_cert_parse_body): Likewise.
      
      Rev: src/spki/certificate.c:1.8
      Rev: src/spki/certificate.h:1.8
      Rev: src/spki/parse.c:1.1
      Rev: src/spki/parse.h:1.1
      9e5bac1a
    • Niels Möller's avatar
      (spki_get_type): Return SPKI_TYPE_END_OF_EXPR at · 07572c44
      Niels Möller authored
      end of expression.
      (parse_tag, parse_tag_body): Split parse_tag into two functions.
      (parse_valid): Placeholder for real function.
      (parse_version): New function.
      (parse_skip_optional): New function.
      (spki_cert_parse_body): New function.
      (spki_cert_parse): New function.
      
      Rev: src/spki/certificate.c:1.7
      Rev: src/spki/certificate.h:1.7
      07572c44
  21. 15 Nov, 2002 1 commit
    • Niels Möller's avatar
      (struct spki_hashes): New struct. · 61bebb23
      Niels Möller authored
      (enum spki_principal_flags): New enum.
      (struct spki_principal): Use flags to keep track of which hash
      values are known.
      (enum spki_5_tuple_flags): Renamed, was spki_flags.
      
      Rev: src/spki/certificate.h:1.6
      61bebb23
  22. 14 Nov, 2002 1 commit
  23. 13 Nov, 2002 3 commits
  24. 12 Nov, 2002 1 commit