From 8505c3d3b428f6a31cb2f9665ebefeb3ec117f7c Mon Sep 17 00:00:00 2001 From: Julien Tanguy Date: Wed, 13 May 2015 11:07:46 +0200 Subject: Remove third party caveats [ci skip] --- src/Crypto/Macaroon.hs | 18 +++++++++--------- src/Crypto/Macaroon/Internal.hs | 1 - 2 files changed, 9 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/Crypto/Macaroon.hs b/src/Crypto/Macaroon.hs index f955ab8..bfcf8df 100644 --- a/src/Crypto/Macaroon.hs +++ b/src/Crypto/Macaroon.hs @@ -44,7 +44,7 @@ module Crypto.Macaroon ( -- , addThirdPartyCaveat ) where -import Crypto.Cipher.AES +-- import Crypto.Cipher.AES import Crypto.Hash import Data.Byteable import qualified Data.ByteString as BS @@ -81,13 +81,13 @@ addFirstPartyCaveat ident m = addCaveat (location m) ident BS.empty m -- |Add a third party Caveat to a Macaroon, using its location, identifier and -- verification key -addThirdPartyCaveat :: Key - -> Key - -> Location - -> Macaroon - -> Macaroon -addThirdPartyCaveat key cid loc m = addCaveat loc cid vid m - where - vid = encryptECB (initAES (signature m)) key +-- addThirdPartyCaveat :: Key +-- -> Key +-- -> Location +-- -> Macaroon +-- -> Macaroon +-- addThirdPartyCaveat key cid loc m = addCaveat loc cid vid m +-- where +-- vid = encryptECB (initAES (signature m)) key diff --git a/src/Crypto/Macaroon/Internal.hs b/src/Crypto/Macaroon/Internal.hs index 02b7963..116f5ed 100644 --- a/src/Crypto/Macaroon/Internal.hs +++ b/src/Crypto/Macaroon/Internal.hs @@ -15,7 +15,6 @@ module Crypto.Macaroon.Internal where import Control.DeepSeq -import Crypto.Cipher.AES import Crypto.Hash import Data.Byteable import qualified Data.ByteString as BS -- cgit v1.2.3