ech-config 0.0.0 → 0.0.1
raw patch · 3 files changed
+21/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog.md +4/−0
- Network/TLS/ECH/Config.hs +16/−3
- ech-config.cabal +1/−1
ChangeLog.md view
@@ -1,5 +1,9 @@ # ChangeLog for ech-config +## 0.0.1++* Making Show more friendly to dnsext-*+ ## 0.0.0 * Initial release.
Network/TLS/ECH/Config.hs view
@@ -113,7 +113,7 @@ instance Show HpkeKeyConfig where show HpkeKeyConfig{..} =- "{"+ "(" ++ show config_id ++ ", " ++ showKEM_ID kem_id@@ -121,7 +121,7 @@ ++ show public_key ++ ", " ++ show cipher_suites- ++ "}"+ ++ ")" where showKEM_ID 0x0000 = "KEM_Reserved" showKEM_ID 0x0010 = "DHKEM(P-256, HKDF-SHA256)"@@ -181,7 +181,20 @@ , public_name :: String , extensions :: [ECHConfigExtension] }- deriving (Eq, Ord, Show)+ deriving (Eq, Ord)++instance Show ECHConfigContents where+ show ECHConfigContents{..} =+ init (show key_config)+ ++ ", "+ ++ show maximum_name_length+ ++ ", "+ ++ "\""+ ++ public_name+ ++ "\""+ ++ ", "+ ++ show extensions+ ++ ")" instance SizeOf ECHConfigContents where sizeof ECHConfigContents{..} =
ech-config.cabal view
@@ -1,6 +1,6 @@ cabal-version: >=1.10 name: ech-config-version: 0.0.0+version: 0.0.1 license: BSD3 license-file: LICENSE maintainer: kazu@iij.ad.jp