• Jay Berkenbilt authored
     
    Browse Code »
  • Jay Berkenbilt authored
     
    Browse Code »
  • Fixes a crash found by fuzzing.
    Dean Scarff authored
     
    Browse Code »
  • OPENSSL_IS_BORINGSSL is not actually set by configure, so it will be
    undefined until a BoringSSL header is included.  Hence the #ifdef logic
    in QPDFCrypto_openssl.h would usually never apply.
    
    This still worked because evp.h transitively included BoringSSL's
    cipher.h and digest.h, but the latter are the correct (documented)
    headers.
    
    By re-ordering the includes, we can ensure the macro is defined when we
    use it.
    
    Also: fix case in the header guards.
    Dean Scarff authored
     
    Browse Code »
  • - Checks explicitly for versions >= 1.1.0 with pkg-config
    - Refactor the fallback checks.  Previously they were copied
    from the gnutls logic, but could be slightly surprising (it's not
    obvious that they're for the case where pkg-config returns a false
    negative, and it's weird that the linker check overode the header check)
    - Fix the AC_SEARCH_LIBS check to try -lcrypto instead of -lopenssl
    (-lcrypto is the standard library OpenSSL ships the crypto symbols in).
    - Fix the AC_SEARCH_LIBS check to look for EVP_MD_CTX_new, which is not
    present in versions prior to 1.1.0.
    
    Fixes qpdf/qpdf#429 (although I haven't verified on cygwin)
    Dean Scarff authored
     
    Browse Code »