1. 28 7月, 2000 2 次提交
    • D
      · a657546f
      Dr. Stephen Henson 提交于
      New ASN1_STRING_print_ex() and X509_NAME_print_ex()
      functions. These are intended to be replacements
      for the ancient ASN1_STRING_print() and X509_NAME_print()
      functions.
      
      The new functions support RFC2253 and various pretty
      printing options. It is also possible to display
      international characters if the terminal properly handles
      UTF8 encoding (Linux seems to tolerate this if the
      "unicode_start" script is run).
      
      Still needs to be documented, integrated into other
      utilities and extensively tested.
      a657546f
    • R
      Add the possibility to get hexdumps of unprintable data when using · ca1e465f
      Richard Levitte 提交于
      'openssl asn1parse'.  As a side effect, the functions ASN1_parse_dump
      and BIO_dump_indent are added.
      ca1e465f
  2. 27 7月, 2000 1 次提交
  3. 26 7月, 2000 1 次提交
  4. 11 7月, 2000 1 次提交
    • D
      Fix some typose in the i2d/d2i functions that · 094fe66d
      Dr. Stephen Henson 提交于
      call the i2c/c2i (they were not using the
      content length for the headers).
      
      Fix ASN1 long form tag encoding. This never
      worked but it was never tested since it is
      only used for tags > 30.
      
      New options to smime program to allow the
      PKCS#7 format to be specified and the content
      supplied externally.
      094fe66d
  5. 07 7月, 2000 1 次提交
    • D
      · a338e21b
      Dr. Stephen Henson 提交于
      New ASN1 functions that just deal with
      content octets, not tag+length.
      a338e21b
  6. 05 7月, 2000 1 次提交
    • R
      I got sick and tired of having to keep track of NIDs when such a thing · c2bbf9cf
      Richard Levitte 提交于
      could be done automagically, much like the numbering in libeay.num and
      ssleay.num.  The solution works as follows:
      
        - New object identifiers are inserted in objects.txt, following the
          syntax given in objects.README.
        - objects.pl is used to process obj_mac.num and create a new
          obj_mac.h.
        - obj_dat.pl is used to create a new obj_dat.h, using the data in
          obj_mac.h.
      
      This is currently kind of a hack, and the perl code in objects.pl
      isn't very elegant, but it works as I intended.  The simplest way to
      check that it worked correctly is to look in obj_dat.h and check the
      array nid_objs and make sure the objects haven't moved around (this is
      important!).  Additions are OK, as well as consistent name changes.
      c2bbf9cf
  7. 21 6月, 2000 2 次提交
    • D
      · 13083215
      Dr. Stephen Henson 提交于
      Fixes for Win32 build.
      
      This is mostly a work around for the old VC++ problem
      that it treats func() as func(void).
      
      Various prototypes had been added to 'compare' function
      pointers that triggered this. This could be fixed by removing
      the prototype, adding function pointer casts to every call or
      changing the passed function to use the expected arguments.
      I mostly did the latter.
      
      The mkdef.pl script was modified to remove the typesafe
      functions which no longer exist.
      
      Oh and some functions called OPENSSL_freeLibrary() were
      changed back to FreeLibrary(), wonder how that happened :-)
      13083215
    • D
      · 7ef82068
      Dr. Stephen Henson 提交于
      Handle ASN1_SET_OF and PKCS12_STACK_OF using function
      casts in the same way as STACK_OF.
      7ef82068
  8. 17 6月, 2000 1 次提交
    • D
      Safe stack reorganisation in terms of function casts. · 3aceb94b
      Dr. Stephen Henson 提交于
      After some messing around this seems to work but needs
      a few more tests. Working out the syntax for sk_set_cmp_func()
      (cast it to a function that itself returns a function pointer)
      was painful :-(
      
      Needs some testing to see what other compilers think of this
      syntax.
      
      Also needs similar stuff for ASN1_SET_OF etc etc.
      3aceb94b
  9. 16 6月, 2000 1 次提交
  10. 15 6月, 2000 1 次提交
  11. 13 6月, 2000 1 次提交
  12. 09 6月, 2000 1 次提交
    • R
      Using checks of the existence of HEADER_{foo}_H in other header files · ef33b970
      Richard Levitte 提交于
      was a really bad idea.  For example, the following:
      
      	#include <x509.h>
      	#include <bio.h>
      	#include <asn1.h>
      
      would make sure that things like ASN1_UTCTIME_print() wasn't defined
      unless you moved the inclusion of bio.h to above the inclusion of
      x509.h.  The reason is that x509.h includes asn1.h, and the
      declaration of ASN1_UTCTIME_print() depended on the definition of
      HEADER_BIO_H.  That's what I call an obscure bug.
      
      Instead, this change makes sure that whatever header files are needed
      for the correct process of one header file are included automagically,
      and that the definitions of, for example, BIO-related things are
      dependent on the absence of the NO_{foo} macros.  This is also
      consistent with the way parts of OpenSSL can be excluded at will.
      ef33b970
  13. 05 6月, 2000 1 次提交
  14. 02 6月, 2000 1 次提交
    • R
      There have been a number of complaints from a number of sources that names · 26a3a48d
      Richard Levitte 提交于
      like Malloc, Realloc and especially Free conflict with already existing names
      on some operating systems or other packages.  That is reason enough to change
      the names of the OpenSSL memory allocation macros to something that has a
      better chance of being unique, like prepending them with OPENSSL_.
      
      This change includes all the name changes needed throughout all C files.
      26a3a48d
  15. 01 6月, 2000 3 次提交
    • G
      "make update" + stripping the type-specific stack functions out of · 7edd2091
      Geoff Thorpe 提交于
      libeay.num and ssleay.num.
      7edd2091
    • G
      The previous commit to crypto/stack/*.[ch] pulled the type-safety strings · ccd86b68
      Geoff Thorpe 提交于
      yet tighter, and also put some heat on the rest of the library by
      insisting (correctly) that compare callbacks used in stacks are prototyped
      with "const" parameters. This has led to a depth-first explosion of
      compiler warnings in the code where 1 constification has led to 3 or 4
      more. Fortunately these have all been resolved to completion and the code
      seems cleaner as a result - in particular many of the _cmp() functions
      should have been prototyped with "const"s, and now are. There was one
      little problem however;
      
      X509_cmp() should by rights compare "const X509 *" pointers, and it is now
      declared as such. However, it's internal workings can involve
      recalculating hash values and extensions if they have not already been
      setup. Someone with a more intricate understanding of the flow control of
      X509 might be able to tighten this up, but for now - this seemed the
      obvious place to stop the "depth-first" constification of the code by
      using an evil cast (they have migrated all the way here from safestack.h).
      
      Fortunately, this is the only place in the code where this was required
      to complete these type-safety changes, and it's reasonably clear and
      commented, and seemed the least unacceptable of the options. Trying to
      take the constification further ends up exploding out considerably, and
      indeed leads directly into generalised ASN functions which are not likely
      to cooperate well with this.
      ccd86b68
    • G
      sk_***_new_null() seems to be there to avoid exactly this sort of thing · a4e31088
      Geoff Thorpe 提交于
      which is a cast between NULL and a function pointer.
      a4e31088
  16. 31 5月, 2000 1 次提交
  17. 29 5月, 2000 1 次提交
  18. 24 5月, 2000 1 次提交
  19. 19 5月, 2000 2 次提交
  20. 17 5月, 2000 3 次提交
  21. 14 5月, 2000 1 次提交
  22. 02 5月, 2000 1 次提交
  23. 09 4月, 2000 1 次提交
  24. 22 3月, 2000 1 次提交
  25. 14 3月, 2000 1 次提交
  26. 05 3月, 2000 1 次提交
  27. 03 3月, 2000 2 次提交
  28. 27 2月, 2000 1 次提交
  29. 26 2月, 2000 2 次提交
  30. 23 2月, 2000 1 次提交
  31. 22 2月, 2000 1 次提交