js: Treat a connection as a gpgme Context
authorMaximilian Krambach <maximilian.krambach@intevation.de>
Mon, 28 May 2018 14:52:50 +0000 (16:52 +0200)
committerMaximilian Krambach <maximilian.krambach@intevation.de>
Mon, 28 May 2018 14:52:50 +0000 (16:52 +0200)
commitd4adbf453d39659eee378b2be1d7125315d76083
treef560b50bacf8b64a019326c2cf4c72b43457adc8
parent7a73d88aba106d571f121dc3230864c81a76e5db
js: Treat a  connection as a gpgme Context

--

* After an operation a connection should be disconnected again.
  The "end of operation" is now assumed to be either an error as
  answer, or a message not including a "more"

* GPGME, GPGME_Key, GPGME_Keyring don't require a connection
  anymore
* Message.js: The Message.post() method will open a connection as
  required
12 files changed:
lang/js/BrowserTestExtension/tests/encryptDecryptTest.js
lang/js/BrowserTestExtension/tests/encryptTest.js
lang/js/BrowserTestExtension/tests/longRunningTests.js
lang/js/BrowserTestExtension/tests/signTest.js
lang/js/BrowserTestExtension/tests/startup.js
lang/js/src/Connection.js
lang/js/src/Key.js
lang/js/src/Keyring.js
lang/js/src/Message.js
lang/js/src/gpgmejs.js
lang/js/src/index.js
lang/js/unittests.js