squash error codes before emitting error tokens
[mech_eap.orig] / util_radius.h
index 68561ce..4ab7b91 100644 (file)
@@ -156,6 +156,9 @@ gssEapRadiusMapError(OM_uint32 *minor,
 #define PW_GSS_ACCEPTOR_REALM_NAME          131
 #define PW_SAML_AAA_ASSERTION               132
 
+#define IS_RADIUS_ERROR(code)               ((code) >= ERROR_TABLE_BASE_rse && \
+                                             (code) <= ERROR_TABLE_BASE_rse + RSE_SOME_ERROR)
+
 #ifdef __cplusplus
 }
 #endif