]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Define PT-TLS SASL result codes
authorMartin Willi <martin@revosec.ch>
Wed, 27 Feb 2013 10:40:48 +0000 (11:40 +0100)
committerMartin Willi <martin@revosec.ch>
Thu, 28 Feb 2013 15:46:07 +0000 (16:46 +0100)
src/libpttls/pt_tls.h

index 8b2422540618150117063807c927e31bcb01b0b9..2300f8516da9de99a8eb7af8b184acf4fec5e004 100644 (file)
@@ -36,6 +36,7 @@
 #define PT_TLS_HEADER_LEN 16
 
 typedef enum pt_tls_message_type_t pt_tls_message_type_t;
+typedef enum pt_tls_sasl_result_t pt_tls_sasl_result_t;
 
 /**
  * Message types, as defined by NEA PT-TLS
@@ -52,6 +53,16 @@ enum pt_tls_message_type_t {
        PT_TLS_ERROR = 8,
 };
 
+/**
+ * Result code for a single SASL mechansim, as sent in PT_TLS_SASL_RESULT
+ */
+enum pt_tls_sasl_result_t {
+       PT_TLS_SASL_RESULT_SUCCESS = 0,
+       PT_TLS_SASL_RESULT_FAILURE = 1,
+       PT_TLS_SASL_RESULT_ABORT = 2,
+       PT_TLS_SASL_RESULT_MECH_FAILURE = 3,
+};
+
 /**
  * Read a PT-TLS message, create reader over Message Value.
  *