1. 15 Apr, 2015 1 commit
    • Daniel Kahn Gillmor's avatar
      accept PKCS#3 DH parameters with privateValueLength included · 2ed81733
      Daniel Kahn Gillmor authored
      library/dhm.c: accept (and ignore) optional privateValueLength for
      PKCS#3 DH parameters.
      
      PKCS#3 defines the ASN.1 encoding of a DH parameter set like this:
      
      ----------------
      DHParameter ::= SEQUENCE {
        prime INTEGER, -- p
        base INTEGER, -- g
        privateValueLength INTEGER OPTIONAL }
      
      The fields of type DHParameter have the following meanings:
      
           o    prime is the prime p.
      
           o    base is the base g.
      
           o    privateValueLength is the optional private-value
                length l.
      ----------------
      
      See: ftp://ftp.rsasecurity.com/pub/pkcs/ascii/pkcs-3.asc
      
      This optional parameter was added in PKCS#3 version 1.4, released
      November 1, 1993.
      
      dhm.c currently doesn't cope well with PKCS#3 files that have this
      optional final parameter included. i see errors like:
      
      ------------
      dhm_parse_dhmfile returned -0x33E6
      
      Last error was: -0x33E6 - DHM - The ASN.1 data is not formatted correctly : ASN1 - Actual length differs from expected lengt
      ------------
      
      You can generate PKCS#3 files with this final parameter with recent
      versions of certtool from GnuTLS:
      
       certtool --generate-dh-params > dh.pem
      2ed81733
  2. 06 Mar, 2015 1 commit
  3. 17 Feb, 2015 1 commit
  4. 16 Feb, 2015 1 commit
  5. 15 Feb, 2015 1 commit
  6. 10 Feb, 2015 1 commit
  7. 28 Jan, 2015 1 commit
  8. 23 Jan, 2015 4 commits
  9. 22 Jan, 2015 1 commit
  10. 09 Jul, 2014 2 commits
  11. 17 Jun, 2014 1 commit
  12. 14 Jun, 2014 1 commit
  13. 01 May, 2014 2 commits
  14. 30 Apr, 2014 1 commit
  15. 17 Apr, 2014 1 commit
  16. 04 Apr, 2014 1 commit
  17. 13 Mar, 2014 1 commit
  18. 06 Feb, 2014 1 commit
  19. 11 Oct, 2013 1 commit
  20. 18 Sep, 2013 1 commit
  21. 16 Sep, 2013 1 commit
  22. 15 Sep, 2013 1 commit
  23. 13 Sep, 2013 1 commit
  24. 04 Sep, 2013 3 commits
  25. 19 Apr, 2013 1 commit
  26. 16 Sep, 2012 1 commit
  27. 26 Apr, 2012 1 commit
  28. 20 Apr, 2012 1 commit
  29. 16 Apr, 2012 1 commit
  30. 11 Apr, 2012 1 commit
  31. 27 Nov, 2011 1 commit
  32. 09 May, 2011 1 commit
    • Paul Bakker's avatar
      - A error_strerror function() has been added to translate between error codes... · 9d781407
      Paul Bakker authored
       - A error_strerror function() has been added to translate between error codes and their description.
       - The error codes have been remapped and combining error codes is now done with a PLUS instead of an OR as error codes used are negative.
       - Descriptions to all error codes have been added.
       - Generation script for error.c has been created to automatically generate error.c from the available error definitions in the headers.
      
      
      9d781407
  33. 05 May, 2011 1 commit