1. 14 6月, 2016 35 次提交
  2. 13 6月, 2016 5 次提交
    • P
      Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20160613-1' into staging · 2c96c379
      Peter Maydell 提交于
      usb: misc fixes.
      
      # gpg: Signature made Mon 13 Jun 2016 14:09:15 BST
      # gpg:                using RSA key 0x4CB6D8EED3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>"
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>"
      # Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138
      
      * remotes/kraxel/tags/pull-usb-20160613-1:
        vl: Eliminate usb_enabled()
        pxa2xx: Unconditionally enable USB controller
        hw/usb/dev-network.c: Use ldl_le_p() and stl_le_p()
        usb-host: add special case for bus+addr
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      2c96c379
    • P
      Merge remote-tracking branch 'remotes/berrange/tags/qcrypto-next-2016-06-13-v1' into staging · 55e5c3a2
      Peter Maydell 提交于
      Merge qcrypto-next 2016/06/13 v1
      
      # gpg: Signature made Mon 13 Jun 2016 12:43:22 BST
      # gpg:                using RSA key 0xBE86EBB415104FDF
      # gpg: Good signature from "Daniel P. Berrange <dan@berrange.com>"
      # gpg:                 aka "Daniel P. Berrange <berrange@redhat.com>"
      # Primary key fingerprint: DAF3 A6FD B26B 6291 2D0E  8E3F BE86 EBB4 1510 4FDF
      
      * remotes/berrange/tags/qcrypto-next-2016-06-13-v1:
        crypto: aes: always rename internal symbols
        crypto: assert that qcrypto_hash_digest_len is in range
        crypto: remove temp files on completion of secrets test
        TLS: provide slightly more information when TLS certificate loading fails
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      55e5c3a2
    • M
      crypto: aes: always rename internal symbols · c8d70e59
      Mike Frysinger 提交于
      OpenSSL's libcrypto always defines AES symbols with the same names as
      qemu's local aes code.  This is problematic when enabling at least curl
      as that frequently also uses libcrypto.  It might not be noticed when
      running, but if you try to statically link, everything falls down.
      
      An example snippet:
        LINK  qemu-nbd
      .../libcrypto.a(aes-x86_64.o): In function 'AES_encrypt':
      (.text+0x460): multiple definition of 'AES_encrypt'
      crypto/aes.o:aes.c:(.text+0x670): first defined here
      .../libcrypto.a(aes-x86_64.o): In function 'AES_decrypt':
      (.text+0x9f0): multiple definition of 'AES_decrypt'
      crypto/aes.o:aes.c:(.text+0xb30): first defined here
      .../libcrypto.a(aes-x86_64.o): In function 'AES_cbc_encrypt':
      (.text+0xf90): multiple definition of 'AES_cbc_encrypt'
      crypto/aes.o:aes.c:(.text+0xff0): first defined here
      collect2: error: ld returned 1 exit status
      .../qemu-2.6.0/rules.mak:105: recipe for target 'qemu-nbd' failed
      make: *** [qemu-nbd] Error 1
      
      The aes.h header has redefines already for FreeBSD, but go ahead and
      enable that for everyone since there's no real good reason to not use
      a namespace all the time.
      Signed-off-by: NMike Frysinger <vapier@chromium.org>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      c8d70e59
    • P
      crypto: assert that qcrypto_hash_digest_len is in range · b35c1f33
      Paolo Bonzini 提交于
      Otherwise unintended results could happen.  For example,
      Coverity reports a division by zero in qcrypto_afsplit_hash.
      While this cannot really happen, it shows that the contract
      of qcrypto_hash_digest_len can be improved.
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      b35c1f33
    • D
      crypto: remove temp files on completion of secrets test · e7ed11f0
      Daniel P. Berrange 提交于
      The secret object tests left some temporary files on disk
      when completing. Ensure they are unlink, and rename them
      to make it more obvious where they come from.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      e7ed11f0