package com.datatheorem.android.trustkit;

// TODO(ad): Document this
public enum PinningValidationResult {
    SUCCESS,
    FAILED,
    FAILED_CERTIFICATE_CHAIN_NOT_TRUSTED,
    ERROR_INVALID_PARAMETERS,
    FAILED_USER_DEFINED_TRUST_ANCHOR,
    ERROR_COULD_NOT_GENERATE_SPKI_HASH // Not used in TrustKit Android
}

@@ -40,34 +40,8 @@
 t;%0A%0A
-// TODO(ad): Document this
 %0Apub
@@ -83,28 +83,320 @@
     
-SUCCESS,%0A    FAILED,
+// The server trust was successfully evaluated and contained at least one of the configured pins%0A    SUCCESS,%0A%0A    // The server trust was successfully evaluated but did not contain any of the configured pins%0A    FAILED,%0A%0A    // The server trust's evaluation failed: the server's certificate chain is not trusted
 %0A   
@@ -433,16 +433,44 @@
 TRUSTED,
+%0A%0A    // Not used on Android
 %0A    ERR
@@ -491,16 +491,44 @@
 AMETERS,
+%0A%0A    // Not used on Android
 %0A    FAI
@@ -557,16 +557,44 @@
 _ANCHOR,
+%0A%0A    // Not used on Android
 %0A    ERR
@@ -628,39 +628,7 @@
 HASH
- // Not used in TrustKit Android
 %0A%7D%0A

Document PinningValidationResult