aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared/src/schemas/ServiceAction.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-04-22 00:53:48 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-05-16 00:55:02 +0200
commit1184eb13f0bbe4768bf3dbd6cd31adf10c6c8dfe (patch)
tree78e6c699d8a232c948b40f643299f7af95a29215 /packages/shared/src/schemas/ServiceAction.ts
parentfeat(renderer): Insecure connection warning (diff)
downloadsophie-1184eb13f0bbe4768bf3dbd6cd31adf10c6c8dfe.tar.gz
sophie-1184eb13f0bbe4768bf3dbd6cd31adf10c6c8dfe.tar.zst
sophie-1184eb13f0bbe4768bf3dbd6cd31adf10c6c8dfe.zip
feat: Certificate viewer
Show certificates with an interface modeled after firefox's certificate viewer so that they can be inspected before trusting. The current implementation assumes that each certificate has a unique fingerprint (collisions are astronomically unlikely). Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/shared/src/schemas/ServiceAction.ts')
-rw-r--r--packages/shared/src/schemas/ServiceAction.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/shared/src/schemas/ServiceAction.ts b/packages/shared/src/schemas/ServiceAction.ts
index cfaba08..c0f07d6 100644
--- a/packages/shared/src/schemas/ServiceAction.ts
+++ b/packages/shared/src/schemas/ServiceAction.ts
@@ -67,6 +67,10 @@ export const ServiceAction = /* @__PURE__ */ (() =>
67 z.object({ 67 z.object({
68 action: z.literal('dismiss-all-popups'), 68 action: z.literal('dismiss-all-popups'),
69 }), 69 }),
70 z.object({
71 action: z.literal('download-certificate'),
72 fingerprint: z.string().nonempty(),
73 }),
70 ]))(); 74 ]))();
71 75
72/* 76/*