Skip to content
Snippets Groups Projects
Select Git revision
  • b4/505-wire-up-sparse-via-meson
  • todo protected
  • next protected
  • seen protected
  • master default protected
  • pks-object-store-wo-the-repository
  • b4/pks-parse-options-integers
  • cc-lop-filter
  • b4/pks-drop-perl
  • b4/505-wire-up-sparse-via-meson-2
  • b4/pks-split-object-file
  • cc-lop-filter25
  • cc-lop-filter24
  • cc-lop-filter23
  • cc-lop-filter22
  • cc-lop-filter21
  • cc-lop-filter20
  • cc-lop-filter19
  • cc-lop-filter18
  • cc-lop-filter17
  • v2.49.0.gl1 protected
  • v2.49.0 protected
  • v2.49.0-rc2 protected
  • v2.49.0-rc1 protected
  • v2.49.0-rc0 protected
  • v2.48.1.gl1 protected
  • v2.48.1 protected
  • v2.48.0 protected
  • v2.48.0-rc2 protected
  • v2.48.0-rc1 protected
  • v2.46.3 protected
  • v2.40.4 protected
  • v2.41.3 protected
  • v2.42.4 protected
  • v2.43.6 protected
  • v2.44.3 protected
  • v2.45.3 protected
  • v2.47.2 protected
  • v2.48.0-rc0 protected
  • v2.47.1 protected
40 results

sha1

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Taylor Blau authored
    Our in-tree SHA-1 wrappers all define platform_SHA_CTX and related
    macros to point at the opaque "context" type, init, update, and similar
    functions for each specific implementation.
    
    In hash.h, we use these platform_ variables to set up the function
    pointers for, e.g., the_hash_algo->init_fn(), etc.
    
    But while these header files have a header-specific macro that prevents
    them declaring their structs / functions multiple times, they
    unconditionally define the platform variables, making it impossible to
    load multiple SHA-1 implementations at once.
    
    As a prerequisite for loading a separate SHA-1 implementation for
    non-cryptographic uses, only define the platform_ variables if they have
    not already been defined.
    
    Signed-off-by: default avatarTaylor Blau <me@ttaylorr.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    4c61a1d0
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Name Last commit Last update
    ..
    openssl.h