Blame SOURCES/0014-IPA-Add-s2n-request-to-string-function.patch

bb7cd1
From 8820b7bba01312419171c4949a9f1c5c8c061a55 Mon Sep 17 00:00:00 2001
bb7cd1
From: Justin Stephenson <jstephen@redhat.com>
bb7cd1
Date: Mon, 20 Mar 2017 11:51:05 -0400
bb7cd1
Subject: [PATCH 14/15] IPA: Add s2n request to string function
bb7cd1
bb7cd1
Add a function to convert request_types to string allowing the
bb7cd1
ability to print request type information for ipa_s2n functions during
bb7cd1
IPA client operations.
bb7cd1
bb7cd1
Reviewed-by: Sumit Bose <sbose@redhat.com>
bb7cd1
---
bb7cd1
 src/providers/ipa/ipa_s2n_exop.c | 16 ++++++++++++++++
bb7cd1
 1 file changed, 16 insertions(+)
bb7cd1
bb7cd1
diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c
bb7cd1
index 07bbb2b4d252c8ca9ada4d890c36c903c9f75773..4fe20689fe4c0f2bb5217691dd05b37d2a1cc820 100644
bb7cd1
--- a/src/providers/ipa/ipa_s2n_exop.c
bb7cd1
+++ b/src/providers/ipa/ipa_s2n_exop.c
bb7cd1
@@ -979,6 +979,22 @@ done:
bb7cd1
     return ret;
bb7cd1
 }
bb7cd1
 
bb7cd1
+static const char *ipa_s2n_reqtype2str(enum request_types request_type)
bb7cd1
+{
bb7cd1
+    switch (request_type) {
bb7cd1
+    case REQ_SIMPLE:
bb7cd1
+        return "REQ_SIMPLE";
bb7cd1
+    case REQ_FULL:
bb7cd1
+        return "REQ_FULL";
bb7cd1
+    case REQ_FULL_WITH_MEMBERS:
bb7cd1
+        return "REQ_FULL_WITH_MEMBERS";
bb7cd1
+    default:
bb7cd1
+        break;
bb7cd1
+    }
bb7cd1
+
bb7cd1
+    return "Unknown request type";
bb7cd1
+}
bb7cd1
+
bb7cd1
 struct ipa_s2n_get_list_state {
bb7cd1
     struct tevent_context *ev;
bb7cd1
     struct ipa_id_ctx *ipa_ctx;
bb7cd1
-- 
bb7cd1
2.9.3
bb7cd1