diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2024-07-19 22:03:44 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2024-07-19 22:03:44 +0200 |
commit | aa1b5c547329036bc9a5fa54d8f609c435da6389 (patch) | |
tree | 36f069eb4e9a6b1873f8f1c09630f8f7c944dc21 | |
parent | aa48a173cb2619dc59efbfd8f8bbc036fddfd675 (diff) |
Handle extended identity in "cat-file identity"
-rw-r--r-- | main/Main.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/Main.hs b/main/Main.hs index 236e729..ccda7cc 100644 --- a/main/Main.hs +++ b/main/Main.hs @@ -159,7 +159,7 @@ main = do forM_ (signedSignature signed) $ \sig -> do putStr $ "SIG " BC.putStrLn $ showRef $ storedRef $ sigKey $ fromStored sig - "identity" -> case validateIdentityF (wrappedLoad <$> refs) of + "identity" -> case validateExtendedIdentityF (wrappedLoad <$> refs) of Just identity -> do let disp :: Identity m -> IO () disp idt = do @@ -169,7 +169,7 @@ main = do case idOwner idt of Nothing -> return () Just owner -> do - mapM_ (putStrLn . ("OWNER " ++) . BC.unpack . showRefDigest . refDigest . storedRef) $ idDataF owner + mapM_ (putStrLn . ("OWNER " ++) . BC.unpack . showRefDigest . refDigest . storedRef) $ idExtDataF owner disp owner disp identity Nothing -> putStrLn $ "Identity verification failed" |