1. 24 10月, 2016 12 次提交
  2. 23 10月, 2016 2 次提交
  3. 21 10月, 2016 22 次提交
  4. 20 10月, 2016 2 次提交
    • P
      Merge remote-tracking branch 'remotes/berrange/tags/pull-qcrypto-2016-10-20-1' into staging · da158a86
      Peter Maydell 提交于
      Merge qcrypto 2016/10/20 v1
      
      # gpg: Signature made Thu 20 Oct 2016 12:58:41 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/pull-qcrypto-2016-10-20-1:
        crypto: fix initialization of gcrypt threading
        crypto: fix initialization of crypto in tests
        qtest: fix make check complaint in crypto module
        crypto: add mode check in qcrypto_cipher_new() for cipher-builtin
        crypto: add CTR mode support
        crypto: extend mode as a parameter in qcrypto_cipher_supports()
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      da158a86
    • D
      crypto: fix initialization of gcrypt threading · 37316663
      Daniel P. Berrange 提交于
      The gcrypt threads implementation must be set before calling
      any other gcrypt APIs, especially gcry_check_version(),
      since that triggers initialization of the random pool. After
      that is initialized, changes to the threads impl won't be
      honoured by the random pool code. This means that gcrypt
      will think thread locking is needed and so try to acquire
      the random pool mutex, but this is NULL as no threads impl
      was set originally. This results in a crash in the random
      pool code.
      
      For the same reasons, we must set the gcrypt threads impl
      before calling gnutls_init, since that will also trigger
      gcry_check_version
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      37316663
  5. 19 10月, 2016 2 次提交