markus / MarkusAutoUpdate / src / NetSparkle / Enums / SecurityMode.cs @ ddc223b4
이력 | 보기 | 이력해설 | 다운로드 (1.61 KB)
1 | d8f5045e | taeseongkim | namespace NetSparkleUpdater.Enums |
---|---|---|---|
2 | { |
||
3 | /// <summary> |
||
4 | /// Controls the situations where files have to be signed with the private key. |
||
5 | /// If both a public key and a signature are present, they always have to be valid. |
||
6 | /// |
||
7 | /// We recommend using SecurityMode.Strict if at all possible. |
||
8 | /// |
||
9 | /// Note that <see cref="ReleaseNotesGrabber"/> needs to have |
||
10 | /// <see cref="ReleaseNotesGrabber.ChecksReleaseNotesSignature"/> set to true in order |
||
11 | /// to verify signatures. |
||
12 | /// </summary> |
||
13 | public enum SecurityMode |
||
14 | { |
||
15 | /// <summary> |
||
16 | /// All files (with or without signature) will be accepted. |
||
17 | /// This mode is strongly NOT recommended. It can cause critical security issues. |
||
18 | /// </summary> |
||
19 | Unsafe = 1, |
||
20 | |||
21 | /// <summary> |
||
22 | /// If there is a public key, the app cast and download file have to be signed. |
||
23 | /// If there isn't a public key, files without a signature will also be accepted. |
||
24 | /// This mode is a mix between Unsafe and Strict and can have some security issues if the |
||
25 | /// public key gets lost in the application. |
||
26 | /// </summary> |
||
27 | UseIfPossible = 2, |
||
28 | |||
29 | /// <summary> |
||
30 | /// The app cast and download file have to be signed. This means the public key must exist. This is the default mode. |
||
31 | /// </summary> |
||
32 | Strict = 3, |
||
33 | |||
34 | /// <summary> |
||
35 | /// Only verify the signature of software downloads (via an ISignatureVerifier). |
||
36 | /// Do not verify the signature of anything else: app casts, release notes, etc. |
||
37 | /// </summary> |
||
38 | OnlyVerifySoftwareDownloads = 4, |
||
39 | } |
||
40 | } |