[AppleTls]: Use correct definition of `SecTrustResult`. (#4586)
authorMartin Baulig <mabaul@microsoft.com>
Thu, 23 Mar 2017 20:29:47 +0000 (16:29 -0400)
committerGitHub <noreply@github.com>
Thu, 23 Mar 2017 20:29:47 +0000 (16:29 -0400)
* [AppleTls]: Use correct definition of `SecTrustResult`.

We need all the values in this enum because `SecTrustResult.Unspecified`
means success - which currently has an integer value of 4, not 0.

* Oops, make it build.

* Don't make it public.

* Revert whitespace change.

mcs/class/System/Mono.AppleTls/Enums.cs

index 26835f523b0427b9a582a5cf42d1743f950e7eb1..3ec210767385686ed2e4fd4793c548815cef3e42 100644 (file)
@@ -16,7 +16,15 @@ namespace Mono.AppleTls {
        // typedef uint32_t SecTrustResultType;
        // values are defined in Security.framework/Headers/SecTrust.h 
        enum SecTrustResult {
+               Invalid,
+               Proceed,
+
+               Confirm,
+               Deny,
                Unspecified,
+               RecoverableTrustFailure,
+               FatalTrustFailure,
+               ResultOtherError,
        }
 }
 #endif