Skip to content

Commit bb621f2

Browse files
committed
Make Plugin class sealed and update file extension list
Marked the Plugin class as sealed to prevent inheritance. Commented out several file extensions in the WellKnownExtensions set, likely to restrict the plugin to more common certificate file types.
1 parent 160b066 commit bb621f2

File tree

1 file changed

+6
-6
lines changed
  • QuickLook.Plugin/QuickLook.Plugin.CertViewer

1 file changed

+6
-6
lines changed

QuickLook.Plugin/QuickLook.Plugin.CertViewer/Plugin.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace QuickLook.Plugin.CertViewer;
88

9-
public class Plugin : IViewer
9+
public sealed class Plugin : IViewer
1010
{
1111
private static readonly HashSet<string> WellKnownExtensions = new(StringComparer.OrdinalIgnoreCase)
1212
{
@@ -15,13 +15,13 @@ public class Plugin : IViewer
1515
".cer", // Certificate file (DER or PEM encoded, usually contains only the public certificate)
1616
".crt", // Certificate file (similar to .cer, common on UNIX/Linux)
1717
".pem", // PEM encoded certificate or key file (can contain certificate, private key, or CA chain)
18-
".snk", // Strong Name Key file (.NET strong name key pair)
19-
".pvk", // Private key file (usually used with .spc)
20-
".spc", // Software Publisher Certificate
18+
//".snk", // Strong Name Key file (.NET strong name key pair)
19+
//".pvk", // Private key file (usually used with .spc)
20+
//".spc", // Software Publisher Certificate
2121
".mobileprovision", // Apple mobile device provisioning profile (contains certificates, public keys, etc.)
2222
".certSigningRequest", // Certificate Signing Request (usually .csr)
23-
".csr", // Certificate Signing Request
24-
".keystore", // Java keystore file (usually stores certificates and private keys)
23+
//".csr", // Certificate Signing Request
24+
//".keystore", // Java keystore file (usually stores certificates and private keys)
2525
};
2626

2727
private CertViewerControl _control;

0 commit comments

Comments
 (0)